cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

summary alert

anassNasser
7-Bedrock

summary alert

hi community, 

 

i want to make a summary of alert of an equipement that is composed by 3 devices, that means if a have an alert on 1 device or more i should calculate the sum of alert of all of them. 

PS : i want to know also if an alert appear or disapper.

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi,

 

Check this service, maybe it will help you:

 

var params = {
maxItems: undefined /* NUMBER */,
onlyUnacknowledged: undefined /* BOOLEAN */,
query: undefined /* QUERY */,
name: undefined /* THINGNAME */,
property: undefined /* STRING */,
onlyAcknowledged: undefined /* BOOLEAN */
};

// result: INFOTABLE dataShape: AlertSummary
var result = Resources["AlertFunctions"].QueryAlertSummaryForThing(params);

 

Regards,

Raluca Edu

View solution in original post

2 REPLIES 2

Hi,

 

Check this service, maybe it will help you:

 

var params = {
maxItems: undefined /* NUMBER */,
onlyUnacknowledged: undefined /* BOOLEAN */,
query: undefined /* QUERY */,
name: undefined /* THINGNAME */,
property: undefined /* STRING */,
onlyAcknowledged: undefined /* BOOLEAN */
};

// result: INFOTABLE dataShape: AlertSummary
var result = Resources["AlertFunctions"].QueryAlertSummaryForThing(params);

 

Regards,

Raluca Edu

slangley
23-Emerald II
(To:raluca_edu)

Hi @anassNasser.

 

If the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

Top Tags