class HyperionApiClient::Clients::StatsClient
: public ClientExtensions
Members | Descriptions |
---|---|
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 |
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
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
-
period
analysis period -
end_date
final date -
unique_actors
compute unique actors
Default Response
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
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
-
producer
filter by producer -
after
filter after specified date (ISO8601) -
before
filter before specified date (ISO8601) -
min_blocks
min. blocks threshold
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
cancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
-
code
contract -
action
action name
Default Response
ApiException
A server side error occurred.