Go to All Forums

JSON Assertion question.

Hi, first of all thanks for taking the time to read my question.

Anyways, let's dive onto the subject right away. I have a Monitor already set up and everything is working as expected. But I need to make a JSON assertion that allows me to receive alerts once the values within the JSON are different from zero for a given amount of time.

Here's the JSON output:

[
{
"CHANNEL": "BOT",
"COUNT": 0
},
{
"CHANNEL": "EMAIL",
"COUNT": 0
},
{
"CHANNEL": "FACEBOOK",
"COUNT": 0
},
{
"CHANNEL": "SMS",
"COUNT": 0
},
{
"CHANNEL": "TELEGRAM",
"COUNT": 0
},
{
"CHANNEL": "TWITTER",
"COUNT": 0
},
{
"CHANNEL": "WEBCHAT",
"COUNT": 0
},
{
"CHANNEL": "WHATSAPP",
"COUNT": 0
}
]

 

I need to make an assertion so that if "Count" from the Whatsapp Channel is higher than 0 for... Let's say, 20 seconds or any given amount of time that we set up in the future, triggers an alarm.

 

Thanks in advance, have a great day!

 

 

 

Reply 1
Replies (5)

Re: JSON Assertion question.

Hi,

       But I need to make a JSON assertion that allows me to receive alerts once the values within the JSON are different from zero for a given amount of time.

    Thanks for your requirement. To perform your above JSON assertion, we have been already working on the feature named 'Custom Metric'. 

This feature facilitates the user to send any JSON data to Site24x7, which will be persisted, allowing user to see reports and be alerted if any configured Custom Metric is violated.

Please check the Screenshots given below.

 Preview

 Create a Data Template for Custom Metric MonitorCustomMetric Template

Custom Metric Monitor configuration settings

 CustomMetric Monitor

Created Custom Metric Monitor, with Unique URL to post the data

CustomMetricSetup

Custom Metric Monitor Reports 

Reports

The feature its in Beta version, will update once it release GA version. If you need any clarification, please post your comments.

 

Thanks,

Muralikrishnan

   

Reply 1

Re: Re: JSON Assertion question.

Hi,

 

Thanks for taking the time to answer my question. I mean it.

 

However, I haven't been able to find the custom metrics monitor anywhere on the platform. Is it already working or is it a testing function? I'm not the owner but I have an admin account so that should be enough in order to see it, right? Hope you can help me find the custom metrics tab so that I can start setting it up.

 

Thanks in advance, have a great day.

 

EDIT: I just need to know if it's a Super Admin only feature.

Reply 0

Re: Re: Re: JSON Assertion question.

Hi,

    Currently the feature is not open to Customers. We are at final stage of testing the stability of the feature. So once we release the GA version, will update the Post.

Regards,

Muralikrishnan 

Reply 0

Re: Re: Re: Re: JSON Assertion question.

Hi,

Thanks for taking the time to answer my question.

Have a great day.

Reply 0