Definitions
Definitions are used to configure alerts on how to observe a metric.
Data model
created_at | string | Time when the definition was created (RFC3339). Read-only. | |
description | string | Additional text that is included in the alert notification. | |
dimensions | object | More filters depending on the source type. | |
evaluation_strategy | object | Criteria on how to alert. | |
id | string | A unique identifier for a definition. Read-only. | |
integration_ids | array | List of integrations used to notify when alert fires. Refer to Notification Service. | |
metric | string | The metric name to alert on for a specific source: domains, origins or stats. | |
name | string | The name of the alert definition. | |
object | string | The resource type. Read-only. [Default definition ] | |
service_id | string | The service on which the definition will alert on. | |
source | string | The source where the metric comes from. | |
updated_at | string | Time when the definition was last updated (RFC3339). Read-only. |
Domain derived metrics
In addition to the metrics provided by Domain Inspector,
when choosing "domains" as a source
, the following metric
can also be used.
origin_offload_bytes | number | The number of bytes offloaded to the edge. | |
status_404_rate | number | Fraction of responses with 404 codes delivered. If there are no responses, this value will be 0. | |
status_4xx_excl_404_rate | number | Fraction of responses with non-404 4xx codes delivered. If there are no responses, this value will be 0. | |
status_4xx_rate | number | Fraction of responses with 4xx codes delivered from domain. If there are no responses, this value will be 0. | |
status_5xx_rate | number | Fraction of responses with 5xx codes delivered from domain. If there are no responses, this value will be 0. | |
status_gte_400_rate | number | Fraction of responses with 4xx or 5xx codes delivered from domain. If there are no responses, this value will be 0. | |
status_lt_500_rate | number | Fraction of responses with non-5xx codes delivered from domain. If there are no responses, this value will be 0. |
Origin derived metrics
In addition to the metrics provided by Origin Inspector,
when choosing "origins" as a source
, the following metric
can also be used.
all_bandwidth | integer | The amount of bandwidth from your origin. | |
all_status_404_rate | number | Fraction of all responses with 404 codes delivered (Compute, WAF, and VCL). If there are no responses, this value will be 0. | |
all_status_4xx_excl_404_rate | number | Fraction of all responses with non-404 4xx codes delivered (Compute, WAF, and VCL). If there are no responses, this value will be 0. | |
all_status_4xx_rate | number | Fraction of all responses with 4xx codes delivered (Compute, WAF, and VCL). If there are no responses, this value will be 0. | |
all_status_5xx_rate | number | Fraction of all responses with 5xx codes delivered (Compute, WAF, and VCL). If there are no responses, this value will be 0. | |
all_status_gte_400_rate | number | Fraction of all responses with 4xx or 5xx codes delivered (Compute, WAF, and VCL). If there are no responses, this value will be 0. | |
all_status_lt_500_rate | number | Fraction of all responses with non-5xx codes delivered (Compute, WAF, and VCL). If there are no responses, this value will be 0. |
Evaluation strategy data model
Criteria on how to alert.
ignore_below | number | Threshold for the denominator value used in evaluations that calculate a rate or ratio. Usually used to filter out noise. | |
period | string | The length of time to evaluate whether the conditions have been met. The data is polled every minute. Required. | |
threshold | number | Threshold used to alert. Required. | |
type | string | Type of strategy to use to evaluate. Required. |
Stats derived metrics
In addition to the metrics provided by Historical Stats,
when choosing "stats" as a source
, the following metric
can also be used.
all_status_4xx_rate | number | Fraction of all responses with 4xx codes delivered (Compute and VCL). If there are no responses, this value will be 0. | |
all_status_5xx_rate | number | Fraction of all responses with 5xx codes delivered (Compute and VCL). If there are no responses, this value will be 0. | |
all_status_gte_400_rate | number | Fraction of all responses with 4xx or 5xx codes delivered (Compute and VCL). If there are no responses, this value will be 0. | |
all_status_lt_500_rate | number | Fraction of all responses with non-5xx codes delivered (Compute and VCL). If there are no responses, this value will be 0. | |
status_404_rate | number | Fraction of VCL responses with 404 codes delivered. If there are no responses, this value will be 0. | |
status_4xx_excl_404_rate | number | Fraction of VCL responses with non-404 4xx codes delivered. If there are no responses, this value will be 0. | |
status_4xx_rate | number | Fraction of VCL responses with 4xx codes delivered. If there are no responses, this value will be 0. | |
status_5xx_rate | number | Fraction of VCL responses with 5xx codes delivered. If there are no responses, this value will be 0. | |
status_gte_400_rate | number | Fraction of VCL responses with 4xx or 5xx codes delivered. If there are no responses, this value will be 0. | |
status_lt_500_rate | number | Fraction of VCL responses with non-5xx codes delivered. If there are no responses, this value will be 0. |