# Sample trigger using gnocchi aggregation by resources alarm

type: CeilometerAggResourceThresholdAlarm
version: 1.0

rule:
  metric: cpu_util
  comparison_operator: lt
  threshold: 15
  granularity: 60
  evaluation_periods: 1
  aggregation_method: avg
  repeat_actions: True

  resource_type: instance
  query:
    resource.metadata.host==a00bcefffc1f8b5e29ca924a968a6097431673db7f5567189bd53268
