# Fetch supported metric templates for alert creation Returns supported metric templates with pattern and parameter metadata. ## Endpoint `GET /intelligence/api/alerts/getRuleDetails` ## Request ### Request URL `https://`[*{serverurl}*](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)`/intelligence/api/alerts/getRuleDetails` ### Scope `DesktopCentralCloud.DEX.READ` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` (Mandatory): `application/alertRuleDetails.v1+json` ### Sample Request ```curl curl --request GET \ --url https://appdomains/intelligence/api/alerts/getRuleDetails \ --header 'Accept: application/alertRuleDetails.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP 200 Response Body: `application/json` `JSON Array` - `JSON Object` ### HTTP 500 Response Body: `application/json` `JSON Object` - **errorCode** `string`: Internal server error code for get rule details operation - **errorMessage** `string`: Internal server error message for get rule details operation ### Possible Response Codes - **200**: HTTP code - **500**: HTTP code ### Sample Response: HTTP 200 Supported metric templates for alert rule configuration ```json [ { "metricKey": "301", "ruleName": "CPU Usage", "rulePattern": "CPU usage above {0} for {1}", "ruleStatus": true, "ruleParams": { "0": { "minimumValue": 1, "ruleUnit": "%", "ruleParamTemplateId": "7001", "unitOptions": [ "%" ], "maximumValue": 100, "paramValue": "90", "displayUnitCategory": "percentage" }, "1": { "minimumValue": 1, "ruleUnit": "minutes", "ruleParamTemplateId": "7002", "unitOptions": [ "seconds", "minutes" ], "maximumValue": 1440, "paramValue": "10", "displayUnitCategory": "time" } } } ] ``` ### Sample Response: HTTP 500 Unexpected failure while fetching rule templates ```json { "errorMessage": "Unable to fetch rule details due to internal error", "errorCode": "INTERNAL_ERROR" } ``` ## API Rate Limits ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.