Use this data source to get information about a specific Cache Variable for a Global Event Orchestration.
resource "pagerduty_event_orchestration" "event_orchestration" {
name = "Test Event Orchestration"
}
data "pagerduty_event_orchestration_global_cache_variable" "cache_variable" {
event_orchestration = pagerduty_event_orchestration.event_orchestration.id
name = "example_cache_variable"
}
The following arguments are supported:
event_orchestration
- (Required) ID of the Global Event Orchestration to which this Cache Variable belongs.id
- (Optional) ID of the Cache Variable associated with the Global Event Orchestration. Specify either id
or name
. If both are specified id
takes precedence.name
- (Optional) Name of the Cache Variable associated with the Global Event Orchestration. Specify either id
or name
. If both are specified id
takes precedence.disabled
- Indicates whether the Cache Variable is disabled and would therefore not be evaluated.condition
- Conditions to be evaluated in order to determine whether or not to update the Cache Variable's stored value.
expression
- A PCL condition string.configuration
- A configuration object to define what and how values will be stored in the Cache Variable.
type
- The type of value to store into the Cache Variable. Can be one of: recent_value
or trigger_event_count
.source
- The path to the event field where the regex
will be applied to extract a value. You can use any valid PCL path. This field is only used when type
is recent_value
regex
- A RE2 regular expression that will be matched against the field specified via the source
argument. This field is only used when type
is recent_value
ttl_seconds
- The number of seconds indicating how long to count incoming trigger events for. This field is only used when type
is trigger_event_count