Skip to content

Alert Policy

Replaces the content of the Alert Policy Object.

ToolDescription
f5xc-api-statistics-alert-policy-createCreate Alert Policy.
f5xc-api-statistics-alert-policy-getGET Alert Policy.
f5xc-api-statistics-alert-policy-listList Alert Policy.
f5xc-api-statistics-alert-policy-updateReplace Alert Policy.
f5xc-api-statistics-alert-policy-deleteDELETE Alert Policy.
ParameterDescriptionExample
metadata.namespaceNamespace-
nameName-
namespaceNamespace-
metadata.nameName-
ParameterDescriptionExample
response_formatThe format in which the configuration object is to be fetched. This could be for example-
label_filterA LabelSelectorType expression that every item in list response will satisfy.-
report_fieldsThe report_fields parameter-
report_status_fieldsThe report_status_fields parameter-

This resource includes mutually exclusive configuration options:

OptionDescriptionRecommended
spec.notification_parameters.custom-
spec.notification_parameters.default-
spec.notification_parameters.individual-
spec.notification_parameters.ves_io_group-
OptionDescriptionRecommended
spec.routes[].dont_send-
spec.routes[].send-
OptionDescriptionRecommended
spec.routes[].alertname-
spec.routes[].alertname_regex-
spec.routes[].any-
spec.routes[].custom-
spec.routes[].group-
spec.routes[].severity-
OptionDescriptionRecommended
spec.routes[].custom.alertname.exact_match-
spec.routes[].custom.alertname.regex_match-

Ask Claude to help you work with Alert Policy resources:

“Create a alert-policy named ‘example’ in the ‘production’ namespace”

“List all alert-policys in the ‘production’ namespace”

“Get details of the alert-policy named ‘example’ in namespace ‘production‘“

Terminal window
# List resources
curl -X GET "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/alert_policys" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}" \
-H "Content-Type: application/json"
# Get specific resource
curl -X GET "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/alert_policys/<name>" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}" \
-H "Content-Type: application/json"
# Create resource
curl -X POST "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/alert_policys" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}" \
-H "Content-Type: application/json" \
-d @alert_policy.json
# Delete resource
curl -X DELETE "https://${TENANT}.console.ves.volterra.io/api/config/namespaces/${NAMESPACE}/alert_policys/<name>" \
-H "Authorization: APIToken ${F5XC_API_TOKEN}"