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
Original file line number Diff line number Diff line change
Expand Up @@ -3536,6 +3536,106 @@
},
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval": {
"post": {
"tags": [
"LogAnalytics"
],
"operationId": "LogAnalytics_ExportRequestRateByInterval",
"x-ms-examples": {
"Export logs which contain all Api requests made to Compute Resource Provider within the given time period broken down by intervals.": {
"$ref": "./examples/LogAnalyticsRequestRateByInterval.json" }
},
"description": "Export logs that show Api requests made by this subscription in the given time window to show throttling activities.",
"parameters": [
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/RequestRateByIntervalInput"
},
"description": "Parameters supplied to the LogAnalytics getRequestRateByInterval Api."
},
{
"name": "location",
"in": "path",
"required": true,
"type": "string",
"description": "The location upon which virtual-machine-sizes is queried.",
"pattern": "^[-\\w\\._]+$"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/LogAnalyticsOperationResult"
}
},
"202": {
"description": "Accepted"
}
},
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests": {
"post": {
"tags": [
"LogAnalytics"
],
"operationId": "LogAnalytics_ExportThrottledRequests",
"x-ms-examples": {
"Export logs which contain all throttled Api requests made to Compute Resource Provider within the given time period.": {
"$ref": "./examples/LogAnalyticsThrottledRequests.json" }
},
"description": "Export logs that show total throttled Api requests for this subscription in the given time window.",
"parameters": [
{
"name": "parameters",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/ThrottledRequestsInput"
},
"description": "Parameters supplied to the LogAnalytics getThrottledRequests Api."
},
{
"name": "location",
"in": "path",
"required": true,
"type": "string",
"description": "The location upon which virtual-machine-sizes is queried.",
"pattern": "^[-\\w\\._]+$"
},
{
"$ref": "#/parameters/ApiVersionParameter"
},
{
"$ref": "#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/LogAnalyticsOperationResult"
}
},
"202": {
"description": "Accepted"
}
},
"x-ms-long-running-operation": true
}
}
},
"definitions": {
Expand Down Expand Up @@ -4096,6 +4196,12 @@
"Standard_A2m_v2",
"Standard_A4m_v2",
"Standard_A8m_v2",
"Standard_B1s",
"Standard_B1ms",
"Standard_B2s",
"Standard_B2ms",
"Standard_B4ms",
"Standard_B8ms",
"Standard_D1",
"Standard_D2",
"Standard_D3",
Expand All @@ -4109,6 +4215,18 @@
"Standard_D3_v2",
"Standard_D4_v2",
"Standard_D5_v2",
"Standard_D2_v3",
"Standard_D4_v3",
"Standard_D8_v3",
"Standard_D16_v3",
"Standard_D32_v3",
"Standard_D64_v3",
"Standard_D2s_v3",
"Standard_D4s_v3",
"Standard_D8s_v3",
"Standard_D16s_v3",
"Standard_D32s_v3",
"Standard_D64s_v3",
"Standard_D11_v2",
"Standard_D12_v2",
"Standard_D13_v2",
Expand All @@ -4132,6 +4250,26 @@
"Standard_DS13_v2",
"Standard_DS14_v2",
"Standard_DS15_v2",
"Standard_DS13-4_v2",
"Standard_DS13-2_v2",
"Standard_DS14-8_v2",
"Standard_DS14-4_v2",
"Standard_E2_v3",
"Standard_E4_v3",
"Standard_E8_v3",
"Standard_E16_v3",
"Standard_E32_v3",
"Standard_E64_v3",
"Standard_E2s_v3",
"Standard_E4s_v3",
"Standard_E8s_v3",
"Standard_E16s_v3",
"Standard_E32s_v3",
"Standard_E64s_v3",
"Standard_E32-16_v3",
"Standard_E32-8s_v3",
"Standard_E64-32s_v3",
"Standard_E64-16s_v3",
"Standard_F1",
"Standard_F2",
"Standard_F4",
Expand All @@ -4142,6 +4280,13 @@
"Standard_F4s",
"Standard_F8s",
"Standard_F16s",
"Standard_F2s_v2",
"Standard_F4s_v2",
"Standard_F8s_v2",
"Standard_F16s_v2",
"Standard_F32s_v2",
"Standard_F64s_v2",
"Standard_F72s_v2",
"Standard_G1",
"Standard_G2",
"Standard_G3",
Expand All @@ -4152,6 +4297,10 @@
"Standard_GS3",
"Standard_GS4",
"Standard_GS5",
"Standard_GS4-8",
"Standard_GS4-4",
"Standard_GS5-16",
"Standard_GS5-8",
"Standard_H8",
"Standard_H16",
"Standard_H8m",
Expand All @@ -4162,10 +4311,30 @@
"Standard_L8s",
"Standard_L16s",
"Standard_L32s",
"Standard_M64s",
"Standard_M64ms",
"Standard_M128s",
"Standard_M128ms",
"Standard_M64-32ms",
"Standard_M64-16ms",
"Standard_M128-64ms",
"Standard_M128-32ms",
"Standard_NC6",
"Standard_NC12",
"Standard_NC24",
"Standard_NC24r",
"Standard_NC6s_v2",
"Standard_NC12s_v2",
"Standard_NC24s_v2",
"Standard_NC24rs_v2",
"Standard_NC6s_v3",
"Standard_NC12s_v3",
"Standard_NC24s_v3",
"Standard_NC24rs_v3",
"Standard_ND6s",
"Standard_ND12s",
"Standard_ND24s",
"Standard_ND24rs",
"Standard_NV6",
"Standard_NV12",
"Standard_NV24"
Expand Down Expand Up @@ -6848,6 +7017,102 @@
}
},
"description": "Operation status response"
},
"RequestRateByIntervalInput": {
"properties": {
"intervalLength": {
"type": "string",
"description": "Interval value in minutes used to create LogAnalytics call rate logs.",
"enum": [
"ThreeMins",
"FiveMins",
"ThirtyMins",
"SixtyMins"
],
"x-ms-enum": {
"name": "IntervalInMins",
"modelAsString": false
}
}
},
"required": [
"intervalLength"
],
"allOf": [
{
"$ref": "#/definitions/LogAnalyticsInputBase"
}
],
"description": "Api request input for LogAnalytics getRequestRateByInterval Api."
},
"ThrottledRequestsInput": {
"allOf": [
{
"$ref": "#/definitions/LogAnalyticsInputBase"
}
],
"description": "Api request input for LogAnalytics getThrottledRequests Api."
},
"LogAnalyticsInputBase": {
"properties": {
"blobContainerSasUri": {
"type": "string",
"description": "SAS Uri of the logging blob container to which LogAnalytics Api writes output logs to."
},
"fromTime": {
"type": "string",
"format": "date-time",
"description": "From time of the query"
},
"toTime": {
"type": "string",
"format": "date-time",
"description": "To time of the query"
},
"groupByThrottlePolicy": {
"type": "boolean",
"description": "Group query result by Throttle Policy applied."
},
"groupByOperationName": {
"type": "boolean",
"description": "Group query result by by Operation Name."
},
"groupByResourceName": {
"type": "boolean",
"description": "Group query result by Resource Name."
}
},
"required": [
"blobContainerSasUri",
"fromTime",
"toTime"
],
"description": "Api input base class for LogAnalytics Api."
},
"LogAnalyticsOperationResult": {
"properties": {
"properties" :{
"readOnly": true,
"$ref": "#/definitions/LogAnalyticsOutput",
"description": "LogAnalyticsOutput"
}
},
"allOf": [
{
"$ref": "#/definitions/OperationStatusResponse"
}
],
"description": "LogAnalytics operation status response"
},
"LogAnalyticsOutput": {
"properties": {
"output": {
"readOnly": true,
"type": "string",
"description": "Output file Uri path to blob container."
}
},
"description": "LogAnalytics output properties"
}
},
"parameters": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"location": "westus",
"api-version": "2017-12-01",
"parameters": {
"intervalLength": "FiveMins",
"blobContainerSasUri": "https://somesasuri",
"fromTime": "2018-01-21T01:54:06.862601Z",
"toTime": "2018-01-23T01:54:06.862601Z",
"groupByResourceName": true
}
},
"responses": {
"200": {
"body": {
"startTime": "2018-01-30T17:54:14.8806951-08:00",
"endTime": "2018-01-30T17:54:17.5832413-08:00",
"status": "Succeeded",
"properties": {
"output": "https://crptestar4227.blob.core.windows.net:443/sascontainer/RequestRateByInterval_20180121-0154_20180123-0154.csv"
},
"name": "8eb1169a-5cf9-46b1-aadf-41e4f60692df"
}
},
"202": {
"body": ""
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"subscriptionId": "{subscription-id}",
"location": "westus",
"api-version": "2017-12-01",
"parameters": {
"blobContainerSasUri": "https://somesasuri",
"fromTime": "2018-01-21T01:54:06.862601Z",
"toTime": "2018-01-23T01:54:06.862601Z",
"groupByOperationName": true,
"groupByResourceName": false
}
},
"responses": {
"200": {
"body": {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the Swagger, 200 doesn't return a response body.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the Swagger file now. 200 should return a response body. Missed the copy from our internal repo.

"startTime": "2018-01-30T17:54:14.8806951-08:00",
"endTime": "2018-01-30T17:54:17.5832413-08:00",
"status": "Succeeded",
"properties": {
"output": "https://crptestar4227.blob.core.windows.net:443/sascontainer/ThrottledRequests_20180121-0154_20180123-0154.csv"
},
"name": "8eb1169a-5cf9-46b1-aadf-41e4f60692df"
}
},
"202": {
"body": ""
}
}
}