Get alert correlation policies of a client

This endpoint is used to fetch alert correlation policies of a client.

Leave Feedback

URL

GET https://{api-url}/api/v2/tenants/{tenantId}/policies/alertCorrelation

Sample URLs

https://{api-url}/api/v2/tenants/client_4/policies/alertCorrelation/
https://{api-url}/api/v2/tenants/client_4/policies/alertCorrelation/?pageNo=1&pageSize=100
https://api.opsramp.com/api/v2/tenants/msp_3/policies/alertCorrelation/

Parameters

FieldDefault Value
pageNo={pageNo}1
pageSize={pageSize}100

Sample responses

The sample response for a client with machine learning:

{
	"results": [
		{
			"id": "POLICY-AC-165c4ee5-8b31-4cba-b88e-f20e57ae8358",
			"name": "test_dependency_correlation_ap",
			"enabled": false,
			"precedence": 25,
			"type":"DEPENDENCY"
		},
		{
			"id": "POLICY-AC-7556bcf6-4cc2-44ba-ba1f-3ca5a211bcb3",
			"name": "test_algorithm_correlation_ap",
			"enabled": true,
			"precedence": 29,
			"type":"ALGORITHM"
		},
		{
			"id": "POLICY-AC-1556bcf6-7cc2-44ba-ba1f-8ca5a211bcb3",
			"name": "test_co-occurrence_correlation_ap",
			"enabled": true,
			"precedence": 30,
			"type":"CO_OCCURRENCE",
			"machineLearning": {
                               "accuracy": 98
                                           }
		}
	],
	"totalResults": 3,
	"orderBy": "precedence",
	"pageNo": 1,
	"pageSize": 100,
	"totalPages": 1,
	"nextPage": false,
	"previousPageNo": 0,
	"descendingOrder": false
}

The sample response for a client without machine learning:

{
	"results": [
		{
			"id": "POLICY-AC-165c4ee5-8b31-4cba-b88e-f20e57ae8358",
			"name": "test_dependency_correlation_ap",
			"enabled": false,
			"precedence": 25,
			"type":"DEPENDENCY"
		},
		{
			"id": "POLICY-AC-7556bcf6-4cc2-44ba-ba1f-3ca5a211bcb3",
			"name": "test_algorithm_correlation_ap",
			"enabled": true,
			"precedence": 29,
			"type":"ALGORITHM"
		},
		{
			"id": "POLICY-AC-1556bcf6-7cc2-44ba-ba1f-8ca5a211bcb3",
			"name": "test_co-occurrence_correlation_ap",
			"enabled": true,
			"precedence": 30,
			"type":"CO_OCCURRENCE"
		}
	],
	"totalResults": 3,
	"orderBy": "precedence",
	"pageNo": 1,
	"pageSize": 10,
	"totalPages": 1,
	"nextPage": false,
	"previousPageNo": 0,
	"descendingOrder": false
}

The sample response for a partner:

{
	"results": [
		{
			"id": "POLICY-AC-165c4ee5-8b31-4cba-b88e-f20e57ae8358",
			"name": "test_dependency_correlation_ap",
			"enabled": false,
			"precedence": 25,
			"type":"DEPENDENCY"
		},
		{
			"id": "POLICY-AC-7556bcf6-4cc2-44ba-ba1f-3ca5a211bcb3",
			"name": "test_algorithm_correlation_ap",
			"enabled": true,
			"precedence": 29,
			"type":"ALGORITHM"
		},
		{
			"id": "POLICY-AC-1556bcf6-7cc2-44ba-ba1f-8ca5a211bcb3",
			"name": "test_co-occurrence_correlation_ap",
			"enabled": true,
			"precedence": 30,
			"type":"CO_OCCURRENCE",
			"machineLearning": {
                                       "accuracy": 98
                                           }
		}
	],
	"totalResults": 3,
	"orderBy": "precedence",
	"pageNo": 1,
	"pageSize": 100,
	"totalPages": 1,
	"nextPage": false,
	"previousPageNo": 0,
	"descendingOrder": false
}