All Products
Search
Document Center

Monitoring Indicator Interface

Last Updated: May 24, 2019

queryNodeMetricsStatus

You can call this operation to query the transactions sent by a specific account.

  • Function
  1. 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
  1. long startTime = stringToTimeStamp("2018-10-30 01:00:00");
  2. long currentTime = System.currentTimeMillis();
  3. MychainBaseResult<ReplyNodeMetricsStatus> result = sdk.getQueryService().queryNodeMetricsStatus( startTime, endTime);

queryMetricsMessage

You can call this operation to query the metrics of query requests.

  • Function
  1. 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
  1. long startTime = stringToTimeStamp("2018-10-30 01:00:00");
  2. long currentTime = System.currentTimeMillis();
  3. 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
  1. 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
  1. long startTime = stringToTimeStamp("2018-10-30 01:00:00");
  2. long currentTime = System.currentTimeMillis();
  3. MychainBaseResult<ReplyTpsLatencyMessage> result = sdk.getQueryService().queryTpsLatency( new Identity(),startTime, endTime);