cluster get metering usage

Lists the details of cluster usage for the given time period.

In both connected and air-gapped environment, you can view the cluster metering data for the given user, or for a specific duration.

Syntax

CLI
maprcli cluster getmeteringusage
REST
Request Type GET
Request URL
http[s]://<host>:<port>/rest/cluster/getmeteringusage?<parameters>

Parameters

Parameter Description
from Start time in yyyy-mm-dd, hh:mm format.
till End time in yyyy-mm-dd, hh:mm format.
duration Duration in minutes (minimum value is 60 minutes) .
cluster Cluster name

Example

To list the information for a given time period, use the following command:
maprcli cluster getmeteringusage -from <time> -till <time>
For example:
maprcli cluster getmeteringusage -from 2023-06-20,00:00 -till 2023-06-21,23:00
userdata epoch          timestamp
1 Mb      1687244400000  Tue Jun 20 07:00:00 UTC 2023
1 Mb      1687248000000  Tue Jun 20 08:00:00 UTC 2023
1 Mb      1687251600000  Tue Jun 20 09:00:00 UTC 2023
1 Mb      1687255200000  Tue Jun 20 10:00:00 UTC 2023
1 Mb      1687258800000  Tue Jun 20 11:00:00 UTC 2023
1 Mb      1687262400000  Tue Jun 20 12:00:00 UTC 2023
1 Mb      1687266000000  Tue Jun 20 13:00:00 UTC 2023
1 Mb      1687269600000  Tue Jun 20 14:00:00 UTC 2023
1 Mb      1687273200000  Tue Jun 20 15:00:00 UTC 2023
2 Mb      1687276800000  Tue Jun 20 16:00:00 UTC 2023
2 Mb      1687280400000  Tue Jun 20 17:00:00 UTC 2023
3 Mb      1687284000000  Tue Jun 20 18:00:00 UTC 2023
3 Mb      1687287600000  Tue Jun 20 19:00:00 UTC 2023
3 Mb      1687291200000  Tue Jun 20 20:00:00 UTC 2023
3 Mb      1687294800000  Tue Jun 20 21:00:00 UTC 2023
3 Mb      1687298400000  Tue Jun 20 22:00:00 UTC 2023
4 Mb      1687302000000  Tue Jun 20 23:00:00 UTC 2023
4 Mb      1687305600000  Wed Jun 21 00:00:00 UTC 2023
4 Mb      1687309200000  Wed Jun 21 01:00:00 UTC 2023
4 Mb      1687312800000  Wed Jun 21 02:00:00 UTC 2023
4 Mb      1687316400000  Wed Jun 21 03:00:00 UTC 2023
To get the information for a duration, use the following command:
maprcli cluster getmeteringusage -duration <in minutes>
To get the information for a cluster, use the following command:
maprcli cluster getmeteringusage <cluster name>