Returns the Alert Policy with the given name
policyName |
This call has no restrictions.
Field | Description | Type | Notes |
alert_policy | |||
policyName | String | ||
metricType | String | ||
metricName | String | ||
createdBy | String | ||
isEnabled | String | ||
isPerInstanceMetric | Defaults to false (i.e. metric value is inspected at VDC level). Set to true if the metric needs to be inspected at each node within the VDC. | String | |
period | Indicates the length of time to evaluate the metric to create each individual data point for a metric. If you choose one hour as the period, there is one data point every hour | Integer | |
periodUnits | String | ||
datapointsToConsider | Indicates the number of the most recent data points to consider to trigger alert | Integer | |
datapointsToAlert | Indicates the number of data points that must be breaching to trigger an alert | Integer | |
statistic | String |
Valid Values:
|
|
operator | String |
Valid Values:
|
|
condition |
0-* Elements |
||
thresholdUnits | String | ||
thresholdValue | String | ||
severityType |
Valid Values:
|
GET https://192.168.0.0:4443/vdc/alertpolicy/myRPOPolicy HTTP/1.1 Concept-Type: application/xml X-SDS-AUTH-TOKEN: <AUTH_TOKEN>
HTTP/1.1 200 OK Content-Type: application/xml <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <alert_policy> <policyName>myRPOPolicy</policyName> <metricType>Geo Replication Statistics</metricType> <metricName>RPO</metricName> <createdBy>USER</createdBy> <isEnabled>true</isEnabled> <isPerInstanceMetric>false</isPerInstanceMetric> <period>7000000</period> <periodUnits>MILLISECONDS</periodUnits> <datapointsToConsider>1</datapointsToConsider> <datapointsToAlert>1</datapointsToAlert> <statistic>MAX</statistic> <operator>GREATER_THAN</operator> <condition> <thresholdUnits>HOURS</thresholdUnits> <thresholdValue>1</thresholdValue> <severityType>WARNING</severityType> </condition> </alert_policy>