Skip to main content

reports

Creates, updates, deletes, gets or lists a reports resource.

Overview

Namereports
TypeResource
Idazure.api_management.reports

Fields

NameDatatypeDescription
namestringName depending on report endpoint specifies product, API, operation or developer name.
apiIdstringAPI identifier path. /apis/{apiId}
apiRegionstringAPI region identifier.
apiTimeAvgnumberAverage time it took to process request.
apiTimeMaxnumberMaximum time it took to process request.
apiTimeMinnumberMinimum time it took to process request.
bandwidthintegerBandwidth consumed.
cacheHitCountintegerNumber of times when content was served from cache policy.
cacheMissCountintegerNumber of times content was fetched from backend.
callCountBlockedintegerNumber of calls blocked due to invalid credentials. This includes calls returning HttpStatusCode.Unauthorized and HttpStatusCode.Forbidden and HttpStatusCode.TooManyRequests
callCountFailedintegerNumber 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
callCountOtherintegerNumber of other calls.
callCountSuccessintegerNumber of successful calls. This includes calls returning HttpStatusCode <= 301 and HttpStatusCode.NotModified and HttpStatusCode.TemporaryRedirect
callCountTotalintegerTotal number of calls.
countrystringCountry to which this record data is related.
intervalstringLength 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).
operationIdstringOperation identifier path. /apis/{apiId}/operations/{operationId}
productIdstringProduct identifier path. /products/{productId}
regionstringCountry region to which this record data is related.
serviceTimeAvgnumberAverage time it took to process request on backend.
serviceTimeMaxnumberMaximum time it took to process request on backend.
serviceTimeMinnumberMinimum time it took to process request on backend.
subscriptionIdstringSubscription identifier path. /subscriptions/{subscriptionId}
timestampstringStart of aggregation period. The date conforms to the following format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
userIdstringUser identifier path. /users/{userId}
zipstringZip code to which this record data is related.

Methods

NameAccessible byRequired ParamsDescription
list_by_apiSELECT$filter, resourceGroupName, serviceName, subscriptionIdLists report records by API.
list_by_geoSELECT$filter, resourceGroupName, serviceName, subscriptionIdLists report records by geography.
list_by_operationSELECT$filter, resourceGroupName, serviceName, subscriptionIdLists report records by API Operations.
list_by_productSELECT$filter, resourceGroupName, serviceName, subscriptionIdLists report records by Product.
list_by_requestSELECT$filter, resourceGroupName, serviceName, subscriptionIdLists report records by Request.
list_by_subscriptionSELECT$filter, resourceGroupName, serviceName, subscriptionIdLists report records by subscription.
list_by_timeSELECT$filter, interval, resourceGroupName, serviceName, subscriptionIdLists report records by Time.
list_by_userSELECT$filter, resourceGroupName, serviceName, subscriptionIdLists 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 }}';