- 08 Jun 2021
- 1 دقيقة للقراءة
- المساهمون
- طباعة
- داكنضوء
- PDF
Forward alerts to custom applications through Webhook
- تحديث في 08 Jun 2021
- 1 دقيقة للقراءة
- المساهمون
- طباعة
- داكنضوء
- PDF
Serverless360 offers extensive capabilities to monitor Azure entities on their properties and metrics. They are:
Monitors would trigger alerts based on their configuration and notifications to the respective teams can be forwarded using the notification channels supported by Serverless360.
However a real time business scenario would demand to perform a custom follow up action, whenever an alert is triggered. Serverelss360 facilitates this custom cloud action integration using a Webhook notification channel.
How to integrate?
- Add Custom cloud application as a notification channel. Refer Webhook notification channel.
- Create and configure an alarm. Refer configure an alarm.
Alarm configuration would involve:
a. Defining alarm frequency
b. Associating resource and configuring threshold values
c. Configuring the notification channels through which alert should be sent.
Turn on the Webhook notification channel created at step 1
With the above configurations the custom cloud application endpoint will be invoked whenever an alert gets generated.
The sample payload passed on to the Webhook endpoint is illustrated below. The custom application should accept this payload to perform the follow up action
[
{
"ServiceName": "StagingPA",
"ResourceName": "maxpartition",
"ResourceType": "Queues",
"Errors": 4,
"Warnings": 0,
"Issues": [
{
"Type": "Healthy",
"IsComposite": false,
"CompositeKey": null,
"CompositeKeyType": null,
"Information": "Status: Active is Healthy"
},
{
"Type": "Error",
"IsComposite": false,
"CompositeKey": null,
"CompositeKeyType": null,
"Information": "Size In Bytes: 23552 > expected value 10"
},
{
"Type": "Warning",
"IsComposite": false,
"CompositeKey": null,
"CompositeKeyType": null,
"Information": "Message Count: 128 > expected value 10"
}
],
"State": 0,
"AlarmName": "QueuePerformanceMonitor",
"AlarmDescription": "Monitor to trigger custom action"
}
]
Try this capability at SaaS version of Serverles360, this feature is also available in On-Premise from version v1.3