pub struct OriginClient { /* private fields */ }
Expand description

Client to get origin real time data

Implementations

Create an OriginClient object

Reset internal timestamp which used to track consecutive stats to 0 After calling this function, calling get_stats_consecutive function will be the first call

The first call of the function will get data of latest one second The consecutive call of the function will get consecutive data of last call to last second

Get stats from start_timestamp to latest timestamp available for a service

Get data for the 120 seconds preceding the latest timestamp available for a service.

Get data for the 120 seconds preceding the latest timestamp available for a service, up to a maximum of max_entries entries.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more