Getting Alert Rules

You can update alert rules using the following API.

Request URL

POST https://http-collector-observability.sixthsense.rakuten.com/api-externalization/api/v1/rules/{ruleId}

Header

Header key - Authorization

Header value - Bearer {{access_token}} (Navigate to Settings > Access token > Show access token in the SixthSence portal.)

Request

ParametersDescription
ruleIdRule id of the alert rule.

Response

{
"data": {},
"message": "string",
"success": true
}

Example:

{
"message": "1 record(s) found",
"success": true,
"data": {
"ruleId": "MTlkN2NhNTktZTQ4Yy00Y2EwLWIwNWEtODlmMWJkNWM1ZDdhXzE2NzcwNzIzODMwNDM=",
"ruleName": "uio198",
"metricDisplayName": "Fmp time",
"aggregationType": "AVG",
"aggregationValue": 9000,
"period": 14,
"thresholdDisplayUnit": "min",
"thresholdDisplayValue": "1000",
"operation": "LT",
"silencePeriod": 100,
"recoveryPeriod": 0,
"lastUpdatedAt": 1677072391568,
"createdBy": "API USER",
"createdAt": 1677072383043,
"modifiedBy": "API USER",
"serviceId": "eyduYW1lJzonVGVzdEFwcCcsJ3RlYW1JRCc6NmY1MWNkYzgtMTcxNS00NzI5LTk4MTQtMTg4OGI4ZDFmMDhhLCd0eXBlJzonQid9.1",
"channels": null,
"filters": null,
"instances" : null
}
}