extractors:
  component: "{{ with .CommonLabels.component }}{{ . }}{{ end }}"
  provider_type: "{{ with .Alerts}}{{ (index . 0).Labels.provider_type }}{{ end }}"

prechecks:
  - match:
      component: (tidb|tikv|pd|tiflash)
      provider_type: free-tier
    source: event
    params:
      eventNames: PauseCluster|configchange-apply|ModifyClusterSize
      # seconds
      duration: 1800
  - match:
      component: dataflow-service
    source: api
    params:
      api: "localhost:3000/validate"