Policies and findings · GraphQL type

RuleBodyConfiguration type

The body of a CONFIGURATION rule. The query gathers the object's attributes and is parameterized by the id of the object being evaluated; its result becomes the input to the rule function, which decides whether the object is in the required state.

Fields

Field Name Description
graphqlQuery - String! The GraphQL query that is used to generate input to the rule function.
functionType - RuleFunctionType! The type of function that the rule is implemented in.
function - RuleFunction The function that implements the rule logic. Null when the function type is CUSTOM.

Used by

  • RuleBody union: A polymorphic body for a rule type.
  • RuleType enum: Describes how a rule gathers the input its function evaluates.

Example

Example

{
  "graphqlQuery": "xyz789",
  "functionType": "CUSTOM",
  "function": RuleFunctionOpa
}