Get monthly aggregated usages for rule enabled to consumer tenants.

GET {{baseUrl}}/aggregatedMonthlyProviderUsage?month=<string>&year=<string>&consumer=<string>&application=<string>&KPIName=<string>&page=0&size=20

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 provider tenant to see the aggregated usage calculated for month on prorate basis for various consumers.

Request Params

KeyDatatypeRequiredDescription
monthstring(Required) month for which usage requested
yearstring(Required) year
consumerstringconsumer tenant id
applicationstring(Required) application name registered on gateway
KPINamestring(Required) name of the KPI registered with UTS for application
pagenumberspecifies the requested page index.
sizenumberspecifies the number of elements in a page

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{&quot;provider&quot;:&quot;provider&quot;,&quot;application&quot;:&quot;assetmonitor&quot;,&quot;applicationDisplayName&quot;:&quot;Asset Monitor&quot;,&quot;KPIName&quot;:&quot;asset-count&quot;,&quot;KPIDisplayName&quot;:&quot;asset count&quot;,&quot;aggregationUntilDate&quot;:&quot;2011-07-14&quot;,&quot;year&quot;:&quot;2021&quot;,&quot;month&quot;:&quot;january&quot;,&quot;aggregatedUsages&quot;:[{&quot;consumer&quot;:&quot;bmw&quot;,&quot;value&quot;:20},{&quot;consumer&quot;:&quot;bmw&quot;,&quot;value&quot;:20}],&quot;aggragationFunction&quot;:{&quot;aggregationFunctionDaily&quot;:&quot;SUM&quot;,&quot;aggregationFunctionMonthly&quot;:&quot;SUM&quot;,&quot;preFill&quot;:&quot;ZERO&quot;},&quot;page&quot;:{&quot;number&quot;:2,&quot;size&quot;:10,&quot;totalElements&quot;:40,&quot;totalPages&quot;:4}}