- name: SearchLatency
  description: Average search latency for the search service
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-636
  - rag
  properties:
    metricName: SearchLatency
    metricNamespace: Microsoft.Search/searchServices
    severity: 3
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 5.0
    enabled: true
  guid: d3985fe5-c7f0-47a1-b52e-26098345a433
- name: ThrottledSearchQueriesPercentage
  description: Percentage of search queries that were throttled for the search service
  type: Metric
  verified: false
  visible: true
  tags:
  - auto-generated
  - agc-613
  - rag
  properties:
    metricName: ThrottledSearchQueriesPercentage
    metricNamespace: Microsoft.Search/searchServices
    severity: 3
    windowSize: PT5M
    evaluationFrequency: PT1M
    timeAggregation: Average
    operator: GreaterThan
    criterionType: StaticThresholdCriterion
    threshold: 10.0
    enabled: true
  guid: 7a044f2f-f38f-4f13-82eb-c7f49bf17ad0
- name: Activity Log Search Service Delete
  description: Activity Log Alert for Search Service Delete
  type: ActivityLog
  verified: false
  visible: true
  tags:
  - manual
  - rag
  properties:
    category: Administrative
    operationName: Microsoft.Search/searchServices/delete
    status:
    - succeeded
  references:
  - name: Activity Log Service Notifications
    url: https://learn.microsoft.com/azure/service-health/alerts-activity-log-service-notifications-portal
  - name: Best practices for setting up service health alerts
    url: https://www.microsoft.com/videoplayer/embed/RE2OtUa
  - name: Azure AI Search Alert Rules
    url: https://learn.microsoft.com/en-us/azure/search/monitor-azure-cognitive-search#azure-ai-search-alert-rules
  deployments:
  - name: Deploy Activity Log Search Service Delete Alert
    template: Deploy-ActivityLog-SearchService-Del.json
    type: Policy
    tags:
    - alz
    properties:
      scope: Subscription
      policyScope: managementGroup
      documented: false
      alertName: ActivitySearchServiceDelete
      enabled: true
  guid: 5611eb31-51c7-4279-ab8c-97dba0a2c044
