Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 6.3 KB

getsubnetrpcusagemetricsrequest.md

File metadata and controls

27 lines (22 loc) · 6.3 KB

GetSubnetRpcUsageMetricsRequest

Example Usage

import { GetSubnetRpcUsageMetricsRequest } from "@avalabs/avacloud-sdk/models/operations";

let value: GetSubnetRpcUsageMetricsRequest = {
  timeInterval: "daily",
  startTimestamp: 1739507200,
  endTimestamp: 1739664000,
  groupBy: "rpcMethod",
};

Fields

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.