Struct fastly_rt::origin::OriginClient
source · [−]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
impl !RefUnwindSafe for OriginClient
impl Send for OriginClient
impl Sync for OriginClient
impl Unpin for OriginClient
impl !UnwindSafe for OriginClient
Blanket Implementations
Mutably borrows from an owned value. Read more
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