Skip to content
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

[App Insights/Operational Insights] New Data Plane API versions, bug fixes, and cleanup #3084

Merged
merged 11 commits into from
Jun 12, 2018
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"title": "Get A Specific Events By Type & ID",
"description": "Gets a specific event by type and id.",
"parameters": {
"subscriptionId": "c512b59c-4005-40e2-b13d-ac29cfb46af4",
"resourceGroupName": "test-rg",
"applicationName": "azure-insights",
"apiVersion": "2018-04-20",
"eventType": "traces",
"eventId": "dc76df01-0141-11e8-9894-e3e7c1eeabad"
},
"responses": {
"200": {
"body": {
"@odata.context": "https://api.applicationinsights.io/v1/apps/DEMO_APP/events/traces/$metadata#traces",
"value": [
{
"id": "dc76df01-0141-11e8-9894-e3e7c1eeabad",
"type": "trace",
"count": 1,
"timestamp": "2018-01-24T20:04:32.243Z",
"customDimensions": null,
"customMeasurements": null,
"operation": {
"name": "GET /FabrikamProd/Employees/Create",
"id": "HPFy1bNlyQ0=",
"parentId": "|HPFy1bNlyQ0=.c642e1f1_",
"syntheticSource": "Application Insights Availability Monitoring"
},
"session": {
"id": "97915c9e-2ba3-4258-82f5-84233de21127"
},
"user": {
"id": "emea-ru-msa-edge_97915c9e-2ba3-4258-82f5-84233de21127",
"accountId": null,
"authenticatedId": null
},
"cloud": {
"roleName": null,
"roleInstance": "AIConnect2"
},
"ai": {
"iKey": "5a2e4e0c-e136-4a15-9824-90ba859b0a89",
"appName": "fabrikamprod",
"appId": "cf58dcfd-0683-487c-bc84-048789bca8e5",
"sdkVersion": "sd:2.4.1-442"
},
"trace": {
"message": "New Request Received",
"severityLevel": 0
},
"application": {
"version": null
},
"client": {
"model": null,
"os": null,
"type": "PC",
"browser": null,
"ip": "51.140.105.0",
"city": "London",
"stateOrProvince": "England",
"countryOrRegion": "United Kingdom"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,272 @@
{
"title": "Get Events By Type",
"description": "Gets events of a specific type",
"parameters": {
"subscriptionId": "c512b59c-4005-40e2-b13d-ac29cfb46af4",
"resourceGroupName": "test-rg",
"applicationName": "azure-insights",
"apiVersion": "2018-04-20",
"eventType": "traces",
"event-top": 5
},
"responses": {
"200": {
"body": {
"@odata.context": "https://api.applicationinsights.io/v1/apps/DEMO_APP/events/$metadata#traces",
"@ai.messages": [
{
"code": "AddedLimitToQuery",
"message": "The query was limited to last 12 hours, since no other limit for timestamp field was specified"
}
],
"value": [
{
"id": "dc76df01-0141-11e8-9894-e3e7c1eeabad",
"type": "trace",
"count": 1,
"timestamp": "2018-01-24T20:04:32.243Z",
"customDimensions": null,
"customMeasurements": null,
"operation": {
"name": "GET /FabrikamProd/Employees/Create",
"id": "HPFy1bNlyQ0=",
"parentId": "|HPFy1bNlyQ0=.c642e1f1_",
"syntheticSource": "Application Insights Availability Monitoring"
},
"session": {
"id": "97915c9e-2ba3-4258-82f5-84233de21127"
},
"user": {
"id": "emea-ru-msa-edge_97915c9e-2ba3-4258-82f5-84233de21127",
"accountId": null,
"authenticatedId": null
},
"cloud": {
"roleName": "",
"roleInstance": "AIConnect2"
},
"ai": {
"iKey": "5a2e4e0c-e136-4a15-9824-90ba859b0a89",
"appName": "fabrikamprod",
"appId": "cf58dcfd-0683-487c-bc84-048789bca8e5",
"sdkVersion": "sd:2.4.1-442"
},
"trace": {
"message": "New Request Received",
"severityLevel": 0
},
"application": {
"version": ""
},
"client": {
"model": null,
"os": null,
"type": "PC",
"browser": null,
"ip": "51.140.105.0",
"city": "London",
"stateOrProvince": "England",
"countryOrRegion": "United Kingdom"
}
},
{
"id": "ca54b09b-0141-11e8-8c76-4de3c2c29f12",
"type": "trace",
"count": 1,
"timestamp": "2018-01-24T20:04:22.799Z",
"customDimensions": null,
"customMeasurements": null,
"operation": {
"name": "GET /FabrikamProd/Employees/Create",
"id": "fYhtYFzAYv4=",
"parentId": "|fYhtYFzAYv4=.c642e1f0_",
"syntheticSource": "Application Insights Availability Monitoring"
},
"session": {
"id": "e0aca036-2ef0-4c41-adb9-5875625901ee"
},
"user": {
"id": "us-fl-mia-edge_e0aca036-2ef0-4c41-adb9-5875625901ee",
"accountId": null,
"authenticatedId": null
},
"cloud": {
"roleName": "",
"roleInstance": "AIConnect2"
},
"ai": {
"iKey": "5a2e4e0c-e136-4a15-9824-90ba859b0a89",
"appName": "fabrikamprod",
"appId": "cf58dcfd-0683-487c-bc84-048789bca8e5",
"sdkVersion": "sd:2.4.1-442"
},
"trace": {
"message": "New Request Received",
"severityLevel": 0
},
"application": {
"version": ""
},
"client": {
"model": null,
"os": null,
"type": "PC",
"browser": null,
"ip": "52.173.244.0",
"city": "Des Moines",
"stateOrProvince": "Iowa",
"countryOrRegion": "United States"
}
},
{
"id": "caf07b61-0141-11e8-bb21-bb0d564a046f",
"type": "trace",
"count": 1,
"timestamp": "2018-01-24T20:04:02.106Z",
"customDimensions": null,
"customMeasurements": null,
"operation": {
"name": "GET /",
"id": "EfIqgW6eLWQ=",
"parentId": "|EfIqgW6eLWQ=.1eb73a79_",
"syntheticSource": "Application Insights Availability Monitoring"
},
"session": {
"id": "323ab959-4c64-4de4-95e9-04334fbd7749"
},
"user": {
"id": "apac-hk-hkn-azr_323ab959-4c64-4de4-95e9-04334fbd7749",
"accountId": null,
"authenticatedId": null
},
"cloud": {
"roleName": "fabrikamfiberapp",
"roleInstance": "RD00155D467E8D"
},
"ai": {
"iKey": "5a2e4e0c-e136-4a15-9824-90ba859b0a89",
"appName": "fabrikamprod",
"appId": "cf58dcfd-0683-487c-bc84-048789bca8e5",
"sdkVersion": "sd:2.4.1-442"
},
"trace": {
"message": "New Request Received",
"severityLevel": 0
},
"application": {
"version": "AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3"
},
"client": {
"model": null,
"os": null,
"type": "PC",
"browser": null,
"ip": "52.175.39.0",
"city": "Hong Kong",
"stateOrProvince": "Central and Western District",
"countryOrRegion": "Hong Kong"
}
},
{
"id": "b8599222-0141-11e8-99cf-07437267f251",
"type": "trace",
"count": 1,
"timestamp": "2018-01-24T20:03:55.554Z",
"customDimensions": null,
"customMeasurements": null,
"operation": {
"name": "GET /",
"id": "7j5dSPYFB5A=",
"parentId": "|7j5dSPYFB5A=.1eb73a78_",
"syntheticSource": "Application Insights Availability Monitoring"
},
"session": {
"id": "b82a2630-5598-4291-a3db-976117f07490"
},
"user": {
"id": "us-il-ch1-azr_b82a2630-5598-4291-a3db-976117f07490",
"accountId": null,
"authenticatedId": null
},
"cloud": {
"roleName": "fabrikamfiberapp",
"roleInstance": "RD00155D467E8D"
},
"ai": {
"iKey": "5a2e4e0c-e136-4a15-9824-90ba859b0a89",
"appName": "fabrikamprod",
"appId": "cf58dcfd-0683-487c-bc84-048789bca8e5",
"sdkVersion": "sd:2.4.1-442"
},
"trace": {
"message": "New Request Received",
"severityLevel": 0
},
"application": {
"version": "AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3"
},
"client": {
"model": null,
"os": null,
"type": "PC",
"browser": null,
"ip": "52.237.156.0",
"city": "Chicago",
"stateOrProvince": "Illinois",
"countryOrRegion": "United States"
}
},
{
"id": "b8599221-0141-11e8-99cf-07437267f251",
"type": "trace",
"count": 1,
"timestamp": "2018-01-24T20:03:37.437Z",
"customDimensions": null,
"customMeasurements": null,
"operation": {
"name": "GET /",
"id": "xoAJ+fhhQQE=",
"parentId": "|xoAJ+fhhQQE=.1eb73a77_",
"syntheticSource": "Application Insights Availability Monitoring"
},
"session": {
"id": "b2066202-e8cd-47de-8c4c-d4d55f3653a4"
},
"user": {
"id": "emea-ru-msa-edge_b2066202-e8cd-47de-8c4c-d4d55f3653a4",
"accountId": null,
"authenticatedId": null
},
"cloud": {
"roleName": "fabrikamfiberapp",
"roleInstance": "RD00155D467E8D"
},
"ai": {
"iKey": "5a2e4e0c-e136-4a15-9824-90ba859b0a89",
"appName": "fabrikamprod",
"appId": "cf58dcfd-0683-487c-bc84-048789bca8e5",
"sdkVersion": "sd:2.4.1-442"
},
"trace": {
"message": "New Request Received",
"severityLevel": 0
},
"application": {
"version": "AutoGen_49c3aea0-4641-4675-93b5-55f7a62d22d3"
},
"client": {
"model": null,
"os": null,
"type": "PC",
"browser": null,
"ip": "51.140.79.0",
"city": "London",
"stateOrProvince": "England",
"countryOrRegion": "United Kingdom"
}
}
]
}
}
}
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"title": "Get intervaled request count",
"description": "Gets intervaled request count metric",
"parameters": {
"subscriptionId": "c512b59c-4005-40e2-b13d-ac29cfb46af4",
"resourceGroupName": "test-rg",
"applicationName": "azure-insights",
"apiVersion": "2018-04-20",
"metricId": "requests%2Fcount",
"timespan": "P2D",
"interval": "P1D"
},
"responses": {
"200": {
"body": {
"value": {
"start": "2018-02-04T10:01:35.086Z",
"end": "2018-02-06T10:01:35.086Z",
"interval": "P1D",
"segments": [
{
"start": "2018-02-04T10:01:35.086Z",
"end": "2018-02-05T00:00:00.000Z",
"requests/count": {
"sum": 4927
}
},
{
"start": "2018-02-05T00:00:00.000Z",
"end": "2018-02-06T00:00:00.000Z",
"requests/count": {
"sum": 8460
}
},
{
"start": "2018-02-06T00:00:00.000Z",
"end": "2018-02-06T10:01:35.086Z",
"requests/count": {
"sum": 3743
}
}
]
}
}
}
}
}
Loading