Get monthly aggregated usages of rule enabled for consumer tenant.
GET {{baseUrl}}/aggregatedMonthlyConsumerUsage?month=<string>&year=<string>&provider=<string>&application=<string>&KPIName=<string>
Operator registers a KPI with UTS. Operator send the resource usage data of consumer to UTS. KPI contains the aggregation and unit conversion details which should be applied on received usages.
Aggregation is executed and calculated values are shown in response. This API endpoint can be used by consumer tenant to see the aggregated usage calculated for month on prorate basis.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
month | string | (Required) month for which usage requested | |
year | string | (Required) year | |
provider | string | (Required) provider tenant Id | |
application | string | (Required) application name registered on gateway | |
KPIName | string | (Required) name of the KPI registered with UTS for application |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
{"consumer":"bmw","value":20,"provider":"provider","application":"assetmonitor","applicationDisplayName":"Asset Monitor","KPIName":"asset-count","KPIDisplayName":"asset count","aggregationUntilDate":"2011-07-14","year":"2021","month":"january","aggragationFunction":{"aggregationFunctionDaily":"SUM","aggregationFunctionMonthly":"SUM","preFill":"ZERO"}}