アラートルールの取得

以下の API を使用してアラートルールを更新できます。

リクエストURL

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

ヘッダー

ヘッダーキー:Authorization

ヘッダー値:Bearer {{access_token}} (SixthSenseポータルで [設定] > [アクセストークン] > [アクセストークンの表示] に移動)

リクエスト

パラメータ内容
ruleIdアラートルールのID

レスポンス

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

例:

{
"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
}
}