Criteria

Criteria are where you define how to evaluate the measurements in determining when to trigger an action. You define the desired criteria as sections inside the criteria: section and give them unique label names. Those names will be referenced later in the policies: section of the template.

Criteria are defined with a section name and a type.

section name

Example: status_failure:

Type

The type: specifies the type of “compare” to perform when evaluating the measurements with the criteria:

  • type: dcm.policy.criteria.True - Compares the results of the status measurements to True.
  • type: dcm.policy.criteria.False - Compares the results of the status measurements to False.

Example

    # Criteria specify the "criteria" which is used along with the measurements to determine when to perform the actions
    criteria:
      status_failure:                       # The status_failure criteria label is referenced in the policy in a criterion: statement
        type: dcm.policy.criteria.False     # "False" tells the policy to perform the action in the policy if the measurement result matches "False".