ResourceFilter

ResourceFilter
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.

JSON Example
{
    "childrenResourceKindFilters": [
        "string"
    ],
    "childrenResourceKindKeyFilters": [
        {
            "adapterKind": "string",
            "resourceKind": "string"
        }
    ],
    "matchResourceIdOnly": false,
    "relationship": "string",
    "resourceId": "string"
}
array of string
childrenResourceKindFilters
Optional

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.

childrenResourceKindKeyFilters
Optional

Filter based on children resource kind keys.

boolean
matchResourceIdOnly
Optional

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.

string
relationship
Optional

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.

Possible values are : PARENT, CHILD, CONTAINS, CONTAINED_BY, REFERENCES, REFERENCED_BY, USES, USED_BY, SELF, DESCENDANT, ANCESTOR, TST, ALL,
string As uuid As uuid
resourceId
Required

Id of the resource that should be matched against the generated alert