-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Add Application Insights smart detection config api #5518
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 9 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c9766b7
add new version for proactive detection config
414b059
fixing api-version
f013ccb
alligning resource definition
3f9a71a
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
d88a6c0
fix workbook patch operation
daec4be
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
1d21250
reverting eric changes
4c9b4c6
Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs
40df904
change helpUri description
543c445
add to readme file
a40aaa1
Merge branch 'master' of https://github.com/aviled/azure-rest-api-specs
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
315 changes: 315 additions & 0 deletions
315
...source-manager/Microsoft.Insights/preview/2018-05-01/componentProactiveDetection_API.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,315 @@ | ||
| { | ||
| "swagger": "2.0", | ||
| "info": { | ||
| "title": "ApplicationInsightsManagementClient", | ||
| "description": "Azure Application Insights client for ProactiveDetection configurations of a component.", | ||
| "version": "2018-05-01-preview" | ||
| }, | ||
| "host": "management.azure.com", | ||
| "schemes": [ | ||
| "https" | ||
| ], | ||
| "consumes": [ | ||
| "application/json" | ||
| ], | ||
| "produces": [ | ||
| "application/json" | ||
| ], | ||
| "security": [ | ||
| { | ||
| "azure_auth": [ | ||
| "user_impersonation" | ||
| ] | ||
| } | ||
| ], | ||
| "securityDefinitions": { | ||
| "azure_auth": { | ||
| "type": "oauth2", | ||
| "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", | ||
| "flow": "implicit", | ||
| "description": "Azure Active Directory OAuth2 Flow.", | ||
| "scopes": { | ||
| "user_impersonation": "impersonate your user account" | ||
| } | ||
| } | ||
| }, | ||
| "paths": { | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs": | ||
| { | ||
| "get": { | ||
| "description": "Gets a list of ProactiveDetection configurations of an Application Insights component.", | ||
| "operationId": "ProactiveDetectionConfigurations_List", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ResourceNameParameter" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": | ||
| "A list containing 0 or more ProactiveDetection configurations of an Application Insights component.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ApplicationInsightsComponentProactiveDetectionConfigurationListResult" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "ProactiveDetectionConfigurationsList": { | ||
| "$ref": "./examples/ProactiveDetectionConfigurationsList.json" | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/ProactiveDetectionConfigs/{ConfigurationId}": | ||
| { | ||
| "get": { | ||
| "description": "Get the ProactiveDetection configuration for this configuration id.", | ||
| "operationId": "ProactiveDetectionConfigurations_Get", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ResourceNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ConfigurationId" | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "The ProactiveDetection configuration for this configuration id.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ApplicationInsightsComponentProactiveDetectionConfiguration" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "ProactiveDetectionConfigurationGet": { | ||
| "$ref": "./examples/ProactiveDetectionConfigurationGet.json" | ||
| } | ||
| } | ||
| }, | ||
| "put": { | ||
| "description": "Update the ProactiveDetection configuration for this configuration id.", | ||
| "operationId": "ProactiveDetectionConfigurations_Update", | ||
| "parameters": [ | ||
| { | ||
| "$ref": "#/parameters/ResourceGroupNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ApiVersionParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/SubscriptionIdParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ResourceNameParameter" | ||
| }, | ||
| { | ||
| "$ref": "#/parameters/ConfigurationId" | ||
| }, | ||
| { | ||
| "name": "ProactiveDetectionProperties", | ||
| "description": "Properties that need to be specified to update the ProactiveDetection configuration.", | ||
| "in": "body", | ||
| "required": true, | ||
| "schema": { | ||
| "$ref": "#/definitions/ApplicationInsightsComponentProactiveDetectionConfiguration" | ||
| } | ||
| } | ||
| ], | ||
| "responses": { | ||
| "200": { | ||
| "description": "The ProactiveDetection configuration that was successfully updated.", | ||
| "schema": { | ||
| "$ref": "#/definitions/ApplicationInsightsComponentProactiveDetectionConfiguration" | ||
| } | ||
| } | ||
| }, | ||
| "x-ms-examples": { | ||
| "ProactiveDetectionConfigurationUpdate": { | ||
| "$ref": "./examples/ProactiveDetectionConfigurationUpdate.json" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "definitions": { | ||
| "ApplicationInsightsComponentProactiveDetectionConfigurationListResult": { | ||
| "description": "A list of ProactiveDetection configurations.", | ||
| "type": "array", | ||
| "items": { | ||
| "$ref": "#/definitions/ApplicationInsightsComponentProactiveDetectionConfiguration" | ||
| } | ||
| }, | ||
| "ApplicationInsightsComponentProactiveDetectionConfiguration": { | ||
| "description": "A ProactiveDetection configuration definition.", | ||
| "type": "object", | ||
| "x-ms-azure-resource": true, | ||
| "properties": { | ||
| "id": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "Azure resource Id" | ||
| }, | ||
| "name": { | ||
| "type": "string", | ||
| "description": "Azure resource name" | ||
| }, | ||
| "type": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "Azure resource type" | ||
| }, | ||
| "location": { | ||
| "type": "string", | ||
| "description": "Resource location" | ||
| }, | ||
| "properties": { | ||
| "description": "Properties that define a ProactiveDetection configuration.", | ||
| "x-ms-client-flatten": true, | ||
| "$ref": "#/definitions/ApplicationInsightsComponentProactiveDetectionConfigurationProperties" | ||
| } | ||
| } | ||
| }, | ||
| "ApplicationInsightsComponentProactiveDetectionConfigurationProperties": { | ||
| "description": "Properties that define a ProactiveDetection configuration.", | ||
| "type": "object", | ||
| "properties": { | ||
| "Name": { | ||
| "type": "string", | ||
| "readOnly": false, | ||
| "description": "The rule name" | ||
| }, | ||
| "Enabled": { | ||
| "type": "boolean", | ||
| "readOnly": false, | ||
| "description": "A flag that indicates whether this rule is enabled by the user" | ||
| }, | ||
| "SendEmailsToSubscriptionOwners": { | ||
| "type": "boolean", | ||
| "readOnly": false, | ||
| "description": | ||
| "A flag that indicated whether notifications on this rule should be sent to subscription owners" | ||
| }, | ||
| "CustomEmails": { | ||
| "type": "array", | ||
| "readOnly": false, | ||
| "description": "Custom email addresses for this rule notifications", | ||
| "items": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "LastUpdatedTime": { | ||
| "type": "string", | ||
| "readOnly": false, | ||
| "description": "The last time this rule was updated" | ||
| }, | ||
| "RuleDefinitions": { | ||
| "type": "object", | ||
| "readOnly": false, | ||
| "description": | ||
| "Static definitions of the ProactiveDetection configuration rule (same values for all components).", | ||
| "properties": { | ||
| "Name": { | ||
| "type": "string", | ||
| "readOnly": false, | ||
| "description": "The rule name" | ||
| }, | ||
| "DisplayName": { | ||
| "type": "string", | ||
| "readOnly": false, | ||
| "description": "The rule name as it is displayed in UI" | ||
| }, | ||
| "Description": { | ||
| "type": "string", | ||
| "readOnly": false, | ||
| "description": "The rule description" | ||
| }, | ||
| "HelpUrl": { | ||
| "type": "string", | ||
| "readOnly": false, | ||
| "description": "URL which displays additional info about the proactive detection rule" | ||
| }, | ||
| "IsHidden": { | ||
| "type": "boolean", | ||
| "readOnly": false, | ||
| "description": "A flag indicating whether the rule is hidden (from the UI)" | ||
| }, | ||
| "IsEnabledByDefault": { | ||
| "type": "boolean", | ||
| "readOnly": false, | ||
| "description": "A flag indicating whether the rule is enabled by default" | ||
| }, | ||
| "IsInPreview": { | ||
| "type": "boolean", | ||
| "readOnly": false, | ||
| "description": "A flag indicating whether the rule is in preview" | ||
| }, | ||
| "SupportsEmailNotifications": { | ||
| "type": "boolean", | ||
| "readOnly": false, | ||
| "description": "A flag indicating whether email notifications are supported for detections for this rule" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }, | ||
| "parameters": { | ||
| "SubscriptionIdParameter": { | ||
| "name": "subscriptionId", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The Azure subscription ID." | ||
| }, | ||
| "ApiVersionParameter": { | ||
| "name": "api-version", | ||
| "in": "query", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "Client Api Version." | ||
| }, | ||
| "ResourceGroupNameParameter": { | ||
| "name": "resourceGroupName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The name of the resource group.", | ||
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "ResourceNameParameter": { | ||
| "name": "resourceName", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The name of the Application Insights component resource.", | ||
| "x-ms-parameter-location": "method" | ||
| }, | ||
| "ConfigurationId": { | ||
| "name": "ConfigurationId", | ||
| "in": "path", | ||
| "required": true, | ||
| "type": "string", | ||
| "description": "The ProactiveDetection configuration ID. This is unique within a Application Insights component.", | ||
| "x-ms-parameter-location": "method" | ||
| } | ||
| } | ||
| } | ||
37 changes: 37 additions & 0 deletions
37
...er/Microsoft.Insights/preview/2018-05-01/examples/ProactiveDetectionConfigurationGet.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2018-05-01-preview", | ||
| "subscriptionId": "subid", | ||
| "resourceGroupName": "my-resource-group", | ||
| "resourceName": "my-component", | ||
| "ConfigurationId": "slowpageloadtime" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "id": "/subscriptions/subid/resourceGroups/my-resource-group/providers/microsoft.insights/components/my-component/ProactiveDetectionConfigs/slowpageloadtime", | ||
| "type": "Microsoft.Insights/components/ProactiveDetectionConfigs", | ||
| "name": "slowpageloadtime", | ||
| "location": "South Central US", | ||
| "properties": { | ||
| "Name": "slowpageloadtime", | ||
| "Enabled": true, | ||
| "SendEmailsToSubscriptionOwners": true, | ||
| "CustomEmails": [ "[email protected]", "[email protected]" ], | ||
| "LastUpdatedTime": null, | ||
| "RuleDefinitions": { | ||
| "Name": "slowpageloadtime", | ||
| "DisplayName": "Slow page load time", | ||
| "Description": "Smart Detection rules notify you of performance anomaly issues.", | ||
| "HelpUrl": "https://docs.microsoft.com/en-us/azure/application-insights/app-insights-proactive-performance-diagnostics", | ||
| "IsHidden": false, | ||
| "IsEnabledByDefault": true, | ||
| "IsInPreview": false, | ||
| "SupportsEmailNotifications": true | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.