StatsClient
class HyperionApiClient::Clients::StatsClient
: public ClientExtensionsSummary
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
public async Task< GetMissedBlocksResponse > GetMissedBlocksAsync(string producer, string after, string before, int? minBlocks, CancellationToken cancellationToken) = default
get missed blocks
public async Task< GetResourceUsageResponse > GetResourceUsageAsync(string code, string action, CancellationToken cancellationToken) = default
get resource usage stats for a specific action
private readonly HttpClient _httpClient
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
cancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Parameters
periodanalysis periodend_datefinal dateunique_actorscompute unique actors
Returns
Default Response
Exceptions
ApiExceptionA server side error occurred.
public async Task< GetMissedBlocksResponse > GetMissedBlocksAsync(string producer, string after, string before, int? minBlocks, CancellationToken cancellationToken) = default
get missed blocks
Parameters
cancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Parameters
producerfilter by producerafterfilter after specified date (ISO8601)beforefilter before specified date (ISO8601)min_blocksmin. blocks threshold
Exceptions
ApiExceptionA 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
cancellationTokenA cancellation token that can be used by other objects or threads to receive notice of cancellation.
Parameters
codecontractactionaction name
Returns
Default Response
Exceptions
ApiExceptionA server side error occurred.
private readonly HttpClient _httpClient
Last updated