Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"title": "Get A Specific Events By Type & ID",
"description": "Gets a specific event by type and id.",
"parameters": {
"appId": "DEMO_APP",
"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,269 @@
{
"title": "Get Events By Type",
"description": "Gets events of a specific type",
"parameters": {
"appId": "DEMO_APP",
"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,21 @@
{
"title": "Get Request Count",
"description": "Gets request count metric",
"parameters": {
"appId": "DEMO_APP",
"metricId": "sizeInMB"
},
"responses": {
"200": {
"body": {
"value": {
"start": "2016-01-01T02:00:00.000Z",
"end": "2016-01-03T02:00:00.000Z",
"customEvents/custom/sizeInMB": {
"avg": 384.2
}
}
}
}
}
}
Loading