StatsClient
Summary
Members | Descriptions |
---|---|
| |
| |
| get action and transaction stats for a given period |
| get missed blocks |
| get resource usage stats for a specific action |
|
Members
public string
BaseUrl
public
StatsClient
(HttpClient httpClient)
public async Task< GetActionUsageResponse >
GetActionUsageAsync
(string period, string endDate, bool? uniqueActors, CancellationToken cancellationToken) = default
get action and transaction stats for a given period
Parameters
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Parameters
period
analysis periodend_date
final dateunique_actors
compute unique actors
Returns
Default Response
Exceptions
ApiException
A server side error occurred.
public async Task< GetMissedBlocksResponse >
GetMissedBlocksAsync
(string producer, string after, string before, int? minBlocks, CancellationToken cancellationToken) = default
get missed blocks
Parameters
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Parameters
producer
filter by producerafter
filter after specified date (ISO8601)before
filter before specified date (ISO8601)min_blocks
min. blocks threshold
Exceptions
ApiException
A server side error occurred.
public async Task< GetResourceUsageResponse >
GetResourceUsageAsync
(string code, string action, CancellationToken cancellationToken) = default
get resource usage stats for a specific action
Parameters
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Parameters
code
contractaction
action name
Returns
Default Response
Exceptions
ApiException
A server side error occurred.
private readonly HttpClient
_httpClient
Last updated