- name: TotalJob
  description: The total number of jobs
  type: Metric
  verified: false
  visible: true
  tags:
  - alz
  properties:
    metricName: TotalJob
    metricNamespace: Microsoft.Automation/automationAccounts
    severity: 2
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: GreaterThan
    threshold: 0
    criterionType: StaticThresholdCriterion
    dimensions:
    - name: Status
      operator: Exclude
      values:
      - Completed
    autoMitigate: false
    enabled: true
  references:
  - name: Azure Automation Azure Monitor Metrics
    url: https://docs.microsoft.com/en-us/azure/azure-monitor/essentials/metrics-supported#microsoftautomationautomationaccounts
  deployments:
  - name: Deploy Automation Account TotalJob Alert
    template: Deploy-AA-TotalJob-Alert.json
    type: Policy
    tags:
    - alz
    properties:
      scope: Resource
      multiResource: false
  guid: 74e0e3b4-62aa-4503-b05d-c5c79a029ed6
- name: TotalUpdateDeploymentMachineRuns
  description: Total software update deployment machine runs in a software update
    deployment run
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-1665
  properties:
    metricName: TotalUpdateDeploymentMachineRuns
    metricNamespace: Microsoft.Automation/automationAccounts
    severity: 2
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Total
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    dimensions:
    - operator: include
      name: status
      values:
      - failed
    threshold: 0.0
    enabled: true
  guid: 49e7f58f-4910-4d2f-8589-573e8a65c6dd
- name: TotalUpdateDeploymentRuns
  description: Total software update deployment runs
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-1222
  properties:
    metricName: TotalUpdateDeploymentRuns
    metricNamespace: Microsoft.Automation/automationAccounts
    severity: 3
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Total
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    dimensions:
    - operator: include
      name: status
      values:
      - failed
    threshold: 0.0
    enabled: true
  guid: c521bf0d-efec-4d3a-8541-d8749915bfd4
