{"files":{"SKILL.md":"---\nname: monitormanagementclient\ndescription: \"MonitorManagementClient API skill. Use when working with MonitorManagementClient for subscriptions. Covers 6 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# MonitorManagementClient\nAPI version: 2016-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}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName} -- gets a classic metric alert rule\n3. Explore available endpoints below\n\n## Endpoints\n6 endpoints across 1 group. See references/api-spec.lap for full details.\n\n### Subscriptions\n| Method | Path | Description |\n|--------|------|-------------|\n| PUT | /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName} | Creates or updates a classic metric alert rule. |\n| DELETE | /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName} | Deletes a classic metric alert rule |\n| GET | /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName} | Gets a classic metric alert rule |\n| PATCH | /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName} | Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method. |\n| GET | /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules | List the classic metric alert rules within a resource group. |\n| GET | /subscriptions/{subscriptionId}/providers/Microsoft.Insights/alertrules | List the classic metric alert rules within a subscription. |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"Update a alertrule?\" -> PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}\n- \"Delete a alertrule?\" -> DELETE /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}\n- \"Get alertrule details?\" -> GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}\n- \"Partially update a alertrule?\" -> PATCH /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}\n- \"List all alertrules?\" -> GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules\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 2016-03-01\n@auth OAuth2\n@endpoints 6\n@toc subscriptions(6)\n\n@endpoint PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}\n@desc Creates or updates a classic metric alert rule.\n@required {ruleName: any # The name of the rule., parameters: map # The parameters of the rule to create or update.}\n@returns(200) Successful request to update an alert rule\n@returns(201) Created alert rule\n\n@endpoint DELETE /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}\n@desc Deletes a classic metric alert rule\n@required {ruleName: any # The name of the rule.}\n@returns(200) Successful request to delete an 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/alertrules/{ruleName}\n@desc Gets a classic metric alert rule\n@required {ruleName: any # The name of the rule.}\n@returns(200) Successful request to get an alert rule\n\n@endpoint PATCH /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules/{ruleName}\n@desc Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method.\n@required {ruleName: any # The name of the rule., alertRulesResource: any # Parameters supplied to the operation.}\n@returns(200) Successful request to update an alert rule\n@returns(201) Successful request to update an alert rule that resulted in a creation of the alert rule\n\n@endpoint GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/alertrules\n@desc List the classic metric alert rules within a resource group.\n@returns(200) Successful request for a list of alert rules\n\n@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/alertrules\n@desc List the classic metric alert rules within a subscription.\n@returns(200) Successful request for a list of alert rules\n\n@end\n"}}