{"files":{"SKILL.md":"---\nname: microsoft-insights-api\ndescription: \"Microsoft Insights API skill. Use when working with Microsoft Insights for subscriptions. Covers 6 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# Microsoft Insights API\nAPI version: 2018-04-16\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/scheduledQueryRules/{ruleName} -- gets an log search 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/scheduledQueryRules/{ruleName} | Creates or updates an log search rule. |\n| GET | /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName} | Gets an Log Search rule |\n| PATCH | /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName} | Update log search Rule. |\n| DELETE | /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName} | Deletes a Log Search rule |\n| GET | /subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules | List the Log Search rules within a subscription group. |\n| GET | /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules | List the Log Search rules within a resource group. |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"Update a scheduledQueryRule?\" -> PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}\n- \"Get scheduledQueryRule details?\" -> GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}\n- \"Partially update a scheduledQueryRule?\" -> PATCH /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}\n- \"Delete a scheduledQueryRule?\" -> DELETE /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}\n- \"List all scheduledQueryRules?\" -> GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules\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 Microsoft Insights API\n@base https://management.azure.com\n@version 2018-04-16\n@auth OAuth2\n@endpoints 6\n@toc subscriptions(6)\n\n@endpoint PUT /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}\n@desc Creates or updates an log search 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 Log Search rule\n@returns(201) Created alert rule\n\n@endpoint GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}\n@desc Gets an Log Search rule\n@required {ruleName: any # The name of the rule.}\n@returns(200) Successful request to get a Log Search rule\n\n@endpoint PATCH /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}\n@desc Update log search Rule.\n@required {ruleName: any # The name of the rule., parameters: map # The parameters of the rule to update.}\n@returns(200) Successful request to update an Log Search rule\n\n@endpoint DELETE /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules/{ruleName}\n@desc Deletes a Log Search rule\n@required {ruleName: any # The name of the rule.}\n@returns(200) Successful request to delete a  Log Search rule\n@returns(204) No Content. Resource not found\n\n@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Insights/scheduledQueryRules\n@desc List the Log Search rules within a subscription group.\n@optional {$filter: any # The filter to apply on the operation. For more information please see https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx}\n@returns(200) Successful request for a list of alert rules\n\n@endpoint GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Insights/scheduledQueryRules\n@desc List the Log Search rules within a resource group.\n@optional {$filter: any # The filter to apply on the operation. For more information please see https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx}\n@returns(200) Successful request for a list of alert rules\n\n@end\n"}}