Need to Delete Situational Alarms
search cancel

Need to Delete Situational Alarms

book

Article ID: 254091

calendar_today

Updated On:

Products

DX OI SaaS

Issue/Introduction

Can someone in Engr, please verify if this was done ?? We are still seeing new situations created in both prod and dev

We have just rolled out the feature to disable algorithmic situations - where user can enable/disable with API.

 

Environment

Release : SAAS

Resolution

Do these three steps:

1. POST -- verify enable_algorithm_cluster value is true.

(Curl command will give the list of currently saved tenant configurations for the tenant using the tenant admin bearer token.)

curl --location --request POST ' https://Hostname.com/oi/v2/api/clusteralarms/tenantConfigAttributes' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer bearer_id' \
--data-raw ''

2. PUT -- set from true to false value.

(With the below curl command you can update the tenant configuration using the tenant admin user. This will disable the algorithmic situations for your tenant. Replace the bearer token and tenantId accordingly.)

curl --location --request PUT 'https://Hostname.com/oi/v2/api/clusteralarms/tenantConfigAttributes' \
--header 'Authorization: Bearer bearer_id' \
--header 'Content-Type: application/json' \
--header 'Cookie: cookie_id' \
--data-raw '{
    "tenantId": "id_value",
    "configAttrList": [
        {
            "key": "enable_algorithm_cluster",
            "value": false,
            "type": "boolean"
        }
    ]
}'

3. Run POST again (#1) to ensure the value was set.