{"files":{"SKILL.md":"---\nname: monitormanagementclient\ndescription: \"MonitorManagementClient API skill. Use when working with MonitorManagementClient for subscriptions. Covers 8 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# MonitorManagementClient\nAPI version: 2018-03-01\n\n## Auth\nOAuth2\n\n## Base URL\nhttps://management.azure.com\n\n## Setup\n1. Configure auth: OAuth2\n2. GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/metricAlerts -- retrieve alert rule definitions in a subscription.\n3. Explore available endpoints below\n\n## Endpoints\n8 endpoints across 1 group. See references/api-spec.lap for full details.\n\n### Subscriptions\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /subscriptions/{subscriptionId}/providers/Microsoft.Insights/metricAlerts | Retrieve alert rule definitions in a subscription. |\n| GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts | Retrieve alert rule definitions in a resource group. |\n| GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName} | Retrieve an alert rule definition. |\n| PUT | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName} | Create or update an metric alert definition. |\n| PATCH | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName} | Update an metric alert definition. |\n| DELETE | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName} | Delete an alert rule definition. |\n| GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status | Retrieve an alert rule status. |\n| GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status/{statusName} | Retrieve an alert rule status. |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"List all metricAlerts?\" -> GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/metricAlerts\n- \"Get metricAlert details?\" -> GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}\n- \"Update a metricAlert?\" -> PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}\n- \"Partially update a metricAlert?\" -> PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}\n- \"Delete a metricAlert?\" -> DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}\n- \"List all status?\" -> GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status\n- \"Get status details?\" -> GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status/{statusName}\n- \"How to authenticate?\" -> See Auth section above\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Create/update endpoints return the modified resource on success\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api MonitorManagementClient\n@base https://management.azure.com\n@version 2018-03-01\n@auth OAuth2\n@endpoints 8\n@toc subscriptions(8)\n\n@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/metricAlerts\n@desc Retrieve alert rule definitions in a subscription.\n@returns(200) Successful request for a list of metric alerts\n\n@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts\n@desc Retrieve alert rule definitions in a resource group.\n@returns(200) Successful request for a list of metric alerts\n\n@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}\n@desc Retrieve an alert rule definition.\n@required {ruleName: any # The name of the rule.}\n@returns(200) Successful request for a list of metric alerts\n\n@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}\n@desc Create or update an metric alert definition.\n@required {ruleName: any # The name of the rule., parameters: map # The parameters of the rule to create or update.}\n@returns(200) OK\n\n@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}\n@desc Update an metric alert definition.\n@required {ruleName: any # The name of the rule., parameters: any # The parameters of the rule to update.}\n@returns(200) OK\n\n@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}\n@desc Delete an alert rule definition.\n@required {ruleName: any # The name of the rule.}\n@returns(200) Successful request to delete an metric alert rule\n@returns(204) No content: the request was successful, but the response is empty\n\n@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status\n@desc Retrieve an alert rule status.\n@required {ruleName: any # The name of the rule.}\n@returns(200) Successful request for a list of metric alerts\n\n@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/metricAlerts/{ruleName}/status/{statusName}\n@desc Retrieve an alert rule status.\n@required {ruleName: any # The name of the rule., statusName: any # The name of the status.}\n@returns(200) Successful request for a list of metric alerts\n\n@end\n"}}