openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 16.4 kB
JSON
{"openapi":"3.0.0","info":{"description":"Azure Application Insights client for saved items.","title":"ApplicationInsightsManagementClient","version":"2015-05-01","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/applicationinsights/resource-manager/Microsoft.Insights/stable/2015-05-01/analyticsItems_API.json","version":"2.0"}],"x-providerName":"azure.com","x-serviceName":"applicationinsights-analyticsItems_API","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}":{"get":{"description":"Gets a list of Analytics Items defined within an Application Insights component.","operationId":"AnalyticsItems_List","parameters":[{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"AnalyticsItemList":{"value":"subid"}}},{"description":"The name of the resource group. The name is case insensitive.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._\\(\\)]+$"},"examples":{"AnalyticsItemList":{"value":"my-resource-group"}}},{"$ref":"#/components/parameters/ResourceNameParameter"},{"$ref":"#/components/parameters/ItemScopePathParameter"},{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"AnalyticsItemList":{"value":"2015-05-01"}}},{"$ref":"#/components/parameters/ItemScopeParameter"},{"$ref":"#/components/parameters/ItemTypeParameter"},{"$ref":"#/components/parameters/IncludeContentParameter"}],"responses":{"200":{"description":"A list containing 0 or more items associated with the Application Insights component.","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/ApplicationInsightsComponentAnalyticsItem"},"type":"array"},"examples":{"AnalyticsItemList":{"$ref":"#/components/examples/AnalyticsItemList"}}}}}}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/components/{resourceName}/{scopePath}/item":{"delete":{"description":"Deletes a specific Analytics Items defined within an Application Insights component.","operationId":"AnalyticsItems_Delete","parameters":[{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"AnalyticsItemDelete":{"value":"subid"}}},{"description":"The name of the resource group. The name is case insensitive.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._\\(\\)]+$"},"examples":{"AnalyticsItemDelete":{"value":"my-resource-group"}}},{"$ref":"#/components/parameters/ResourceNameParameter"},{"$ref":"#/components/parameters/ItemScopePathParameter"},{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"AnalyticsItemDelete":{"value":"2015-05-01"}}},{"$ref":"#/components/parameters/ItemIdParameter"},{"$ref":"#/components/parameters/ItemNameParameter"}],"responses":{"200":{"description":"The item has been successfully removed from the Application Insights component"}}},"get":{"description":"Gets a specific Analytics Items defined within an Application Insights component.","operationId":"AnalyticsItems_Get","parameters":[{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"AnalyticsItemGet":{"value":"subid"}}},{"description":"The name of the resource group. The name is case insensitive.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._\\(\\)]+$"},"examples":{"AnalyticsItemGet":{"value":"my-resource-group"}}},{"$ref":"#/components/parameters/ResourceNameParameter"},{"$ref":"#/components/parameters/ItemScopePathParameter"},{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"AnalyticsItemGet":{"value":"2015-05-01"}}},{"$ref":"#/components/parameters/ItemIdParameter"},{"$ref":"#/components/parameters/ItemNameParameter"}],"responses":{"200":{"description":"A single item associated with the Application Insights component.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationInsightsComponentAnalyticsItem"},"examples":{"AnalyticsItemGet":{"$ref":"#/components/examples/AnalyticsItemGet"}}}}}}},"put":{"description":"Adds or Updates a specific Analytics Item within an Application Insights component.","operationId":"AnalyticsItems_Put","parameters":[{"description":"The ID of the target subscription.","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","minLength":1},"examples":{"AnalyticsItemPut":{"value":"subid"}}},{"description":"The name of the resource group. The name is case insensitive.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._\\(\\)]+$"},"examples":{"AnalyticsItemPut":{"value":"my-resource-group"}}},{"$ref":"#/components/parameters/ResourceNameParameter"},{"$ref":"#/components/parameters/ItemScopePathParameter"},{"description":"The API version to use for this operation.","in":"query","name":"api-version","required":true,"schema":{"type":"string","minLength":1},"examples":{"AnalyticsItemPut":{"value":"2015-05-01"}}},{"$ref":"#/components/parameters/OverrideItemParameter"}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationInsightsComponentAnalyticsItem"}}},"description":"Properties that need to be specified to create a new item and add it to an Application Insights component.","required":true},"responses":{"200":{"description":"The new or updated item associated with the Application Insights component.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationInsightsComponentAnalyticsItem"},"examples":{"AnalyticsItemPut":{"$ref":"#/components/examples/AnalyticsItemPut"}}}}}}}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"AnalyticsItemList":{"value":[{"Content":"//Top 10 countries by traffic in the past 24 hours\nrequests \n | where timestamp > ago(24h) \n | summarize count() by client_CountryOrRegion\n | top 10 by count_ \n | render piechart","Id":"b753348d-333a-4678-a684-c0e9090713b7","Name":"1","Scope":"user","TimeModified":"2017-06-29T10:27:03Z","Type":"query","Version":"1.0"},{"Content":"//Top 10 countries by traffic in the past 24 hours\nrequests \n | where timestamp > ago(24h) \n | summarize count() by client_CountryOrRegion\n | top 10 by count_ \n | render piechart","Id":"0d2f1b19-04b2-4c93-bc6f-2466b23c5284","Name":"4","Scope":"user","TimeModified":"2017-06-29T10:27:13Z","Type":"query","Version":"1.0"},{"Content":"//Top 10 countries by traffic in the past 24 hours\nrequests \n | where timestamp > ago(24h) \n | summarize count() by client_CountryOrRegion\n | top 10 by count_ \n | render piechart","Id":"3d17bebb-0b20-4b58-9bbd-22aeed70be51","Name":"2","Scope":"user","TimeModified":"2018-02-10T23:21:05.9952874Z","Type":"query","Version":"1.0"},{"Content":"//Top 10 countries by traffic in the past 24 hours\nrequests \n | where timestamp > ago(24h) \n | summarize count() by client_CountryOrRegion\n | top 10 by count_ \n | render piechart","Id":"2be491c6-10d9-4cf6-9490-2a7ce7270c54","Name":"5","Scope":"user","TimeModified":"2017-06-29T10:27:17Z","Type":"query","Version":"1.0"},{"Content":"//Top 10 countries by traffic in the past 24 hours\nrequests \n | where timestamp > ago(24h) \n | summarize count() by client_CountryOrRegion\n | top 10 by count_ \n | render piechart","Id":"d8f83601-4a40-4dc1-8516-0a28dcb74420","Name":"8","Scope":"user","TimeCreated":"2018-02-10T23:20:19.0174631Z","TimeModified":"2018-02-10T23:20:19.0174631Z","Type":"query","Version":"1.0"},{"Content":"let newExceptionsTimeRange = 7d;\nlet timeRangeToCheckBefore = 7d;\nexceptions\n| where timestamp < ago(timeRangeToCheckBefore)\n| summarize count() by problemId\n| join kind= rightanti (\nexceptions\n| where timestamp >= ago(newExceptionsTimeRange)\n| extend stack = tostring(details[0].rawStack)\n| summarize count(), dcount(user_AuthenticatedId), min(timestamp), max(timestamp), any(stack) by problemId \n) on problemId \n| order by count_ desc\n","Id":"fd3afe4d-9139-4c76-9b47-81d0fada977b","Name":"Exceptions - New in the last 7 days","Scope":"user","TimeCreated":"2018-02-11T22:05:57.6019354Z","TimeModified":"2018-02-12T11:01:15.5687326Z","Type":"query","Version":"1.0"},{"Content":"let newExceptionsTimeRange = 1d;\nlet timeRangeToCheckBefore = 7d;\nexceptions\n| where timestamp < ago(timeRangeToCheckBefore)\n| summarize count() by problemId\n| join kind= rightanti (\nexceptions\n| where timestamp >= ago(newExceptionsTimeRange)\n| extend stack = tostring(details[0].rawStack)\n| summarize count(), dcount(user_AuthenticatedId), min(timestamp), max(timestamp), any(stack) by problemId \n) on problemId \n| order by count_ desc\n","Id":"3466c160-4a10-4df8-afdf-0007f3f6dee5","Name":"Exceptions - New in the last 24 hours","Scope":"shared","TimeCreated":"2018-02-12T11:44:39.2980634Z","TimeModified":"2018-02-14T13:13:19.3381394Z","Type":"query","Version":"1.0"}]},"AnalyticsItemGet":{"value":{"Content":"let newExceptionsTimeRange = 1d;\nlet timeRangeToCheckBefore = 7d;\nexceptions\n| where timestamp < ago(timeRangeToCheckBefore)\n| summarize count() by problemId\n| join kind= rightanti (\nexceptions\n| where timestamp >= ago(newExceptionsTimeRange)\n| extend stack = tostring(details[0].rawStack)\n| summarize count(), dcount(user_AuthenticatedId), min(timestamp), max(timestamp), any(stack) by problemId \n) on problemId \n| order by count_ desc\n","Id":"3466c160-4a10-4df8-afdf-0007f3f6dee5","Name":"Exceptions - New in the last 24 hours","Scope":"shared","TimeCreated":"2018-02-12T11:44:39.2980634Z","TimeModified":"2018-02-14T13:13:19.3381394Z","Type":"query","Version":"1.0"}},"AnalyticsItemPut":{"value":{"Content":"let newExceptionsTimeRange = 1d;\nlet timeRangeToCheckBefore = 7d;\nexceptions\n| where timestamp < ago(timeRangeToCheckBefore)\n| summarize count() by problemId\n| join kind= rightanti (\nexceptions\n| where timestamp >= ago(newExceptionsTimeRange)\n| extend stack = tostring(details[0].rawStack)\n| summarize count(), dcount(user_AuthenticatedId), min(timestamp), max(timestamp), any(stack) by problemId \n) on problemId \n| order by count_ desc\n","Id":"3466c160-4a10-4df8-afdf-0007f3f6dee5","Name":"Exceptions - New in the last 24 hours","Scope":"shared","TimeCreated":"2018-02-12T11:44:39.2980634Z","TimeModified":"2018-02-14T13:13:19.3381394Z","Type":"query","Version":"1.0"}}},"parameters":{"IncludeContentParameter":{"description":"Flag indicating whether or not to return the content of each applicable item. If false, only return the item information.","in":"query","name":"includeContent","required":false,"x-ms-parameter-location":"method","schema":{"type":"boolean"}},"ItemIdParameter":{"description":"The Id of a specific item defined in the Application Insights component","in":"query","name":"id","required":false,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"AnalyticsItemDelete":{"value":"3466c160-4a10-4df8-afdf-0007f3f6dee5"},"AnalyticsItemGet":{"value":"3466c160-4a10-4df8-afdf-0007f3f6dee5"}}},"ItemNameParameter":{"description":"The name of a specific item defined in the Application Insights component","in":"query","name":"name","required":false,"x-ms-parameter-location":"method","schema":{"type":"string"}},"ItemScopeParameter":{"description":"Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.","in":"query","name":"scope","required":false,"x-ms-enum":{"modelAsString":true,"name":"ItemScope"},"x-ms-parameter-location":"method","schema":{"type":"string","enum":["shared","user"],"default":"shared"}},"ItemScopePathParameter":{"description":"Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.","in":"path","name":"scopePath","required":true,"x-ms-enum":{"modelAsString":true,"name":"ItemScopePath"},"x-ms-parameter-location":"method","schema":{"type":"string","enum":["analyticsItems","myanalyticsItems"]},"examples":{"AnalyticsItemList":{"value":"analyticsItems"},"AnalyticsItemDelete":{"value":"analyticsItems"},"AnalyticsItemGet":{"value":"analyticsItems"},"AnalyticsItemPut":{"value":"analyticsItems"}}},"ItemTypeParameter":{"description":"Enum indicating the type of the Analytics item.","in":"query","name":"type","required":false,"x-ms-enum":{"modelAsString":true,"name":"ItemTypeParameter"},"x-ms-parameter-location":"method","schema":{"type":"string","enum":["none","query","function","folder","recent"],"default":"none"}},"OverrideItemParameter":{"description":"Flag indicating whether or not to force save an item. This allows overriding an item if it already exists.","in":"query","name":"overrideItem","required":false,"x-ms-parameter-location":"method","schema":{"type":"boolean"}},"ResourceNameParameter":{"description":"The name of the Application Insights component resource.","in":"path","name":"resourceName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"AnalyticsItemList":{"value":"my-component"},"AnalyticsItemDelete":{"value":"my-component"},"AnalyticsItemGet":{"value":"my-component"},"AnalyticsItemPut":{"value":"my-component"}}}},"securitySchemes":{"azure_auth":{"description":"Azure Active Directory OAuth2 Flow.","type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize","scopes":{"user_impersonation":"impersonate your user account"}}}}},"schemas":{"ApplicationInsightsComponentAnalyticsItem":{"description":"Properties that define an Analytics item that is associated to an Application Insights component.","properties":{"Content":{"description":"The content of this item","type":"string"},"Id":{"description":"Internally assigned unique id of the item definition.","type":"string"},"Name":{"description":"The user-defined name of the item.","type":"string"},"Properties":{"$ref":"#/components/schemas/ApplicationInsightsComponentAnalyticsItemProperties"},"Scope":{"description":"Enum indicating if this item definition is owned by a specific user or is shared between all users with access to the Application Insights component.","enum":["shared","user"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"ItemScope"}},"TimeCreated":{"description":"Date and time in UTC when this item was created.","readOnly":true,"type":"string"},"TimeModified":{"description":"Date and time in UTC of the last modification that was made to this item.","readOnly":true,"type":"string"},"Type":{"description":"Enum indicating the type of the Analytics item.","enum":["query","function","folder","recent"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"ItemType"}},"Version":{"description":"This instance's version of the data model. This can change as new features are added.","readOnly":true,"type":"string"}},"type":"object"},"ApplicationInsightsComponentAnalyticsItemProperties":{"description":"A set of properties that can be defined in the context of a specific item type. Each type may have its own properties.","properties":{"functionAlias":{"description":"A function alias, used when the type of the item is Function","type":"string"}},"type":"object"}}}}