queryNodeMetricsStatus
You can call this operation to query the transactions sent by a specific account.
- Function
public MychainBaseResult<ReplyNodeMetricsStatus> queryNodeMetricsStatus(long startTime, long endTime)
Parameter | Required | Type | Description |
---|---|---|---|
startTime | true | long | The timestamp of the start time. |
endTime | true | long | The timestamp of the end time. |
- Examples
long startTime = stringToTimeStamp("2018-10-30 01:00:00");
long currentTime = System.currentTimeMillis();
MychainBaseResult<ReplyNodeMetricsStatus> result = sdk.getQueryService().queryNodeMetricsStatus( startTime, endTime);
queryMetricsMessage
You can call this operation to query the metrics of query requests.
- Function
public MychainBaseResult<ReplyQueryMetricMessage> queryMetricsMessage(long startTime, long endTime, Identity identity)
Parameter | Required | Type | Description |
---|---|---|---|
startTime | true | long | The timestamp of the start time. |
endTime | true | long | The timestamp of the end time. |
identity | false | Identity | The ID of the node. |
- Examples
long startTime = stringToTimeStamp("2018-10-30 01:00:00");
long currentTime = System.currentTimeMillis();
MychainBaseResult<ReplyQueryMetricMessage> result = sdk.getQueryService().queryMetricsMessage( startTime, endTime, new Identity());
queryTpsLatency
You can call this operation to query the metrics of transactions per second (TPS).
- Function
public MychainBaseResult<ReplyTpsLatencyMessage> queryTpsLatency(Identity identity,long startTime ,long endTime)
Parameter | Required | Type | Description |
---|---|---|---|
startTime | true | long | The timestamp of the start time. |
endTime | true | long | The timestamp of the end time. |
identity | false | Identity | The ID of the node. |
- Examples
long startTime = stringToTimeStamp("2018-10-30 01:00:00");
long currentTime = System.currentTimeMillis();
MychainBaseResult<ReplyTpsLatencyMessage> result = sdk.getQueryService().queryTpsLatency( new Identity(),startTime, endTime);