reports
Creates, updates, deletes, gets or lists a reports
resource.
Overview
Name | reports |
Type | Resource |
Id | azure.api_management.reports |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Name depending on report endpoint specifies product, API, operation or developer name. |
apiId | string | API identifier path. /apis/{apiId} |
apiRegion | string | API region identifier. |
apiTimeAvg | number | Average time it took to process request. |
apiTimeMax | number | Maximum time it took to process request. |
apiTimeMin | number | Minimum time it took to process request. |
bandwidth | integer | Bandwidth consumed. |
cacheHitCount | integer | Number of times when content was served from cache policy. |
cacheMissCount | integer | Number of times content was fetched from backend. |
callCountBlocked | integer | Number of calls blocked due to invalid credentials. This includes calls returning HttpStatusCode.Unauthorized and HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests |
callCountFailed | integer | Number of calls failed due to gateway or backend errors. This includes calls returning HttpStatusCode.BadRequest(400) and any Code between HttpStatusCode.InternalServerError (500) and 600 |
callCountOther | integer | Number of other calls. |
callCountSuccess | integer | Number of successful calls. This includes calls returning HttpStatusCode <= 301 and HttpStatusCode.NotModified and HttpStatusCode.TemporaryRedirect |
callCountTotal | integer | Total number of calls. |
country | string | Country to which this record data is related. |
interval | string | Length of aggregation period. Interval must be multiple of 15 minutes and may not be zero. The value should be in ISO 8601 format (http://en.wikipedia.org/wiki/ISO_8601#Durations). |
operationId | string | Operation identifier path. /apis/{apiId}/operations/{operationId} |
productId | string | Product identifier path. /products/{productId} |
region | string | Country region to which this record data is related. |
serviceTimeAvg | number | Average time it took to process request on backend. |
serviceTimeMax | number | Maximum time it took to process request on backend. |
serviceTimeMin | number | Minimum time it took to process request on backend. |
subscriptionId | string | Subscription identifier path. /subscriptions/{subscriptionId} |
timestamp | string | Start of aggregation period. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard. |
userId | string | User identifier path. /users/{userId} |
zip | string | Zip code to which this record data is related. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_by_api | SELECT | $filter, resourceGroupName, serviceName, subscriptionId | Lists report records by API. |
list_by_geo | SELECT | $filter, resourceGroupName, serviceName, subscriptionId | Lists report records by geography. |
list_by_operation | SELECT | $filter, resourceGroupName, serviceName, subscriptionId | Lists report records by API Operations. |
list_by_product | SELECT | $filter, resourceGroupName, serviceName, subscriptionId | Lists report records by Product. |
list_by_request | SELECT | $filter, resourceGroupName, serviceName, subscriptionId | Lists report records by Request. |
list_by_subscription | SELECT | $filter, resourceGroupName, serviceName, subscriptionId | Lists report records by subscription. |
list_by_time | SELECT | $filter, interval, resourceGroupName, serviceName, subscriptionId | Lists report records by Time. |
list_by_user | SELECT | $filter, resourceGroupName, serviceName, subscriptionId | Lists report records by User. |
SELECT
examples
Lists report records by API.
SELECT
name,
apiId,
apiRegion,
apiTimeAvg,
apiTimeMax,
apiTimeMin,
bandwidth,
cacheHitCount,
cacheMissCount,
callCountBlocked,
callCountFailed,
callCountOther,
callCountSuccess,
callCountTotal,
country,
interval,
operationId,
productId,
region,
serviceTimeAvg,
serviceTimeMax,
serviceTimeMin,
subscriptionId,
timestamp,
userId,
zip
FROM azure.api_management.reports
WHERE $filter = '{{ $filter }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND serviceName = '{{ serviceName }}'
AND subscriptionId = '{{ subscriptionId }}';