Microsoft Azure

Azure Monitor: Metric Alert API

Azure Monitor client to create/update/delete metric based alerts.

Developer tools#openapi#cloud

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

Azure Monitor client to create/update/delete metric based alerts.

Endpoints 8

MetricAlerts

  • GETMetricAlerts_ListBySubscription/subscriptions/:subscriptionId/providers/Microsoft.Insights/metricAlertsRetrieve alert rule definitions in a subscription.
  • GETMetricAlerts_ListByResourceGroup/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Insights/metricAlertsRetrieve alert rule definitions in a resource group.
  • GETMetricAlerts_Get/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Insights/metricAlerts/:ruleNameRetrieve an alert rule definition.
  • PUTMetricAlerts_CreateOrUpdate/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Insights/metricAlerts/:ruleNameCreate or update an metric alert definition.
  • DELETEMetricAlerts_Delete/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Insights/metricAlerts/:ruleNameDelete an alert rule definition.
  • PATCHMetricAlerts_Update/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Insights/metricAlerts/:ruleNameUpdate an metric alert definition.

MetricAlertsStatus

  • GETMetricAlertsStatus_List/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Insights/metricAlerts/:ruleName/statusRetrieve an alert rule status.
  • GETMetricAlertsStatus_ListByName/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.Insights/metricAlerts/:ruleName/status/:statusNameRetrieve an alert rule status.

API details

Base URL
https://management.azure.com
Authentication
OAuth 2.0 (implicit flow) with 1 scope
Operations
8 operations on 5 pathsGET 5PUT 1PATCH 1DELETE 1
Main resources
MetricAlerts 6MetricAlertsStatus 2
Response formats
application/json
Description format
Swagger 2.0, API version 2018-03-01

How to test the Azure Monitor: Metric Alert API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Azure Monitor: Metric Alert API collection, without the publisher's secrets.
  3. Add your credentialsThis API uses OAuth 2.0 (implicit flow) with 1 scope. Add yours in the collection's variables or an environment; the requests already reference it.
  4. Send a requestPick an endpoint, for example “MetricAlerts_ListBySubscription” (GET /subscriptions/:subscriptionId/providers/Microsoft.Insights/metricAlerts), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Azure Monitor: Metric Alert API?

Azure Monitor client to create/update/delete metric based alerts. It is listed under Developer tools and has 8 endpoints.

Who publishes the Azure Monitor: Metric Alert API?

It is listed from Microsoft Azure's public API description (an OpenAPI document), not published by Microsoft Azure on Swastik Codes. Anyone who controls azure.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Azure Monitor: Metric Alert API?

Requests go to https://management.azure.com. Endpoint paths are added to this base URL.

How do I authenticate with the Azure Monitor: Metric Alert API?

With OAuth 2.0 (implicit flow) with 1 scope.

How many endpoints does the Azure Monitor: Metric Alert API have?

8 operations on 5 paths (5 GET, 1 PUT, 1 PATCH, 1 DELETE). The largest groups are MetricAlerts, MetricAlertsStatus.

Is forking the Azure Monitor: Metric Alert API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.