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, type and properties.

section name

Example: less_than_20:

Type

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

  • type: dcm.policy.criteria.SeriesLessThan
  • type: dcm.policy.criteria.SeriesMoreThan

Properties

  • count: - Defines the number of consecutive periods to compare against the threshold to determine if a “breach” has occurred which requires the defined action to be triggered.
  • The default for type dcm.policy.criteria.SeriesMoreThan is 2
  • The default for type dcm.policy.criteria.SeriesLessThan is 2

Example: count: 30

  • threshold: - Defines the measurement threshold in percent.
  • The default for type dcm.policy.criteria.SeriesMoreThan is 95
  • The default for type dcm.policy.criteria.SeriesLessThan is 5

Example: threshold: 80

Example

    # Criteria specify the "criteria" which is used along with the measurements to determine when to perform the actions
    criteria:
      less_than_20:                          # The less_than_20 criteria label is referenced in the policy in a criterion: statement
        type: dcm.policy.criteria.SeriesLessThan
        properties:
            count: 3                         # 3 consecutive periods 
            threshold: 20                    # Threshold is 20% 

      more_than_80:                          # The more_than_80 criteria label is referenced in the policy in a criterion: statement 
        type: dcm.policy.criteria.SeriesMoreThan
        properties:
            count: 2                         # 2 consecutive periods
            threshold: 80                    # Threshold is 80%