import { GetSubnetRpcUsageMetricsRequest } from "@avalabs/avacloud-sdk/models/operations";
let value: GetSubnetRpcUsageMetricsRequest = {
timeInterval: "daily",
startTimestamp: 1739507200,
endTimestamp: 1739664000,
groupBy: "rpcMethod",
};
Field | Type | Required | Description | Example |
---|---|---|---|---|
timeInterval |
components.SubnetRpcTimeIntervalGranularity | ➖ | Time interval granularity for data aggregation for subnet rpc metrics |
daily |
startTimestamp |
number | ➖ | The start time of the range as a UNIX timestamp. The requested start time will be rounded down to 0:00 UTC of the day. | 1739507200 |
endTimestamp |
number | ➖ | The end time of the range as a UNIX timestamp. The requested end time will be rounded down to 0:00 UTC of the day. | 1739664000 |
groupBy |
components.RpcUsageMetricsGroupByEnum | ➖ | Query param for the criterion used for grouping metrics | rpcMethod |
chainId |
string | ➖ | Filter data by chain ID. | |
responseCode |
string | ➖ | Filter data by response status code. | |
rpcMethod |
string | ➖ | Filter data by RPC method. | |
rlBypassApiToken |
string | ➖ | Filter data by Rl Bypass API Token. |