ResourceFilter
Filter for resources. If matchResourceIdOnly is specified, alerts are selected if their resource ids match with the 'resourceId' specified in the filter. Otherwise, the system looks at all the resource's children. The possible set of children can be further filtered based on the childrenResourceKindKeyFilters
.
{
"childrenResourceKindFilters": [
"string"
],
"childrenResourceKindKeyFilters": [
{
"adapterKind": "string",
"resourceKind": "string"
}
],
"matchResourceIdOnly": false,
"relationship": "string",
"resourceId": "string"
}
If matchResourceIdOnly is set to false, this set allows the system to further filter children based on their Resource Kind keys. This filter is deprecated. Please use childrenResourceKindKeyFilters instead.
Filter based on children resource kind keys.
Deprecated, will be removed after couple of releases. Please use relationship instead. If set to true, the rule engine does not evaluate the resource's children. Default value is: false. NOTE: If set to true, childrenResourceKindKeyFilters
has to be empty.
Specifies whether the rule engine needs to evaluate only the resource itself, its direct children or all descendants. Acceptable values are: SELF, CHILD, DESCENDANT. Default value is: DESCENDANT.
NOTE: If set to SELF, childrenResourceKindKeyFilters
has to be empty.
Id of the resource that should be matched against the generated alert