# Sample trigger using ceilometer threshold alarm

type: CeilometerThresholdAlarm
version: 1.0

time_constraints:
  - name: a_time_constraint
    start: '* * * * * *'
    duration: 3600
    description: a time constraint
    timezone: 'Asia/Shanghai'

rule:
  meter_name: cpu_util
  comparison_operator: lt
  threshold: 15
  period: 60
  evaluation_periods: 1
  statistic: avg
  query:
    - field: resource_metadata.cluster
      op: eq
      type: ''
      value: cluster1

# Sample trigger using ceilometer threshold alarm

type: CeilometerThresholdAlarm
version: 1.0

time_constraints:
  - name: a_time_constraint
    start: '* * * * * *'
    duration: 3600
    description: a time constraint
    timezone: 'Asia/Shanghai'

rule:
  meter_name: cpu_util
  comparison_operator: lt
  threshold: 15
  period: 60
  evaluation_periods: 1
  statistic: avg
  query:
    - field: resource_metadata.cluster
      op: eq
      value: cluster1

Fix sample yaml for threshold alarm
Fix sample yaml for threshold alarm

This patch fixes the error in the sample yaml file. It is blocking the
alarm from being created.

Change-Id: Ie45ee12e84367de98f5f0785ca3026466a403472
