Struct hornet::client::metric::CountVector [] [src]

pub struct CountVector { /* fields omitted */ }

A count vector for multiple strictly increasing integer values, in possibly varying increments

Internally uses an InstanceMetric<u64> with Semantics::Counter and Count::One scale, and 1 count dimension

Methods

impl CountVector
[src]

[src]

Creates a new count vector with given instances and a single initial value

[src]

Creates a new count vector with given pairs of an instance and it's initial value

[src]

Returns the current count of the instance

[src]

Increments the count of the instance by the given value

The wrapping Option is None if the instance wasn't found

[src]

Increments the count of the instance by +1

The wrapping Option is None if the instance wasn't found

[src]

Increments the count of all instances by the given value

[src]

Increments the count of all instances by +1

[src]

Resets the count of the instance to it's initial value that was passed when creating the vector

The wrapping Option is None if the instance wasn't found

[src]

Resets the count of all instances to it's initial value that was passed when creating the vector

[src]

Internally created instance domain