Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.17 KB

File metadata and controls

35 lines (28 loc) · 1.17 KB

IoT Hub

Filters

  • Standard Value Filter (see filters)
  • ARM Resource Filters (see azure_genericarmfilter)
    • MetricFilter - Filter on metrics from Azure Monitor - (see IoT Hub Supported Metrics)
    • Tag Filter - Filter on tags for actions previously applied to resource
    • Marked-For-Op Filter - Filter on tag that indicates a scheduled operation for a resource

Actions

  • ARM Resource Actions (see azure_genericarmaction)

Example Policies

This policy will find all IoT Hubs with 1000 or more dropped messages over the last 72 hours

policies:
  - name: iothubs-dropping-messages
    resource: azure.iothub
    filters:
      - type: metric
        metric: d2c.telemetry.egress.dropped
        op: ge
        aggregation: total
        threshold: 1000
        timeframe: 72