Callback Alert Content Description
Network dial test supports pushing alert information generated by detection tasks to the callback address set by the specified notification group.
Callback Address Configuration
In Resource Monitoring - Notification Management , create a new notification group or edit an existing one, select the notification method as “Callback Interface,” and fill in the callback address (a publicly accessible URL) to which you want to push alert information.
Request Parameter Description
Alert Information
{
SessionID: "xxxxxxxxxxxxxxxxxxxxxxx",
ResourceType: "UNDT",
ResourceId: "xxxxxxxxxxxxxxxxxxxxxxx",
MetricName: "Lost",
AlarmTime: 1458733318,
RecoveryTime : 0,
Content:"Alert has been triggered for Network Dial Test monitoring, Detection Task: Callback Test 3 (bwdcmkq8wyryy), Detection Address: 8.8.8.8, Alert Level P0, Alert Type: First Alert, Alert Content: 【P0】Telecom-Shanghai-Shanghai to 8.8.8.8 Current Packet Loss: 100% Threshold: 50%"
}
Recovery Information
{
SessionID: "xxxxxxxxxxxxxxxxxxxxxxx",
ResourceType: "UNDT",
ResourceId: "xxxxxxxxxxxxxxxxxxxxxxx",
MetricName: "Lost",
AlarmTime: 0,
RecoveryTime : 1458733318,
Content:"Network Dial Test alert has recovered, Detection Task: “Callback Test 3 (bwdcmkq8wyryy)”, Detection Address: 8.8.8.8, Alert Content: Telecom-Shanghai-Shanghai to 8.8.8.8 Current Packet Loss: 0%, Alert has recovered"
}
Field Description
Field | Field Type | Description |
---|---|---|
SessionID | string | Unique identifier for this session |
ResourceType | string | UNDT: Network Dial Test (UCloud Global Network DialTest) |
ResourceId | string | Dial test task ID |
MetricName | string | Metric Name. Lost: packet loss rate; Rtt: latency. |
AlarmTime | int64 | Alert time |
RecoveryTime | int64 | Recovery time |
Content | string | Alert content |
Response
We need to receive a response like this to indicate that the user has successfully received the pushed information; otherwise, it will retry 2 more times:
{
SessionID: "xxxxxxxxxxxxxxxxxxxxxxx",
RetCode: 0
}