Struct libcantal::Counter [] [src]

pub struct Counter { /* fields omitted */ }

A kind of metric (Value) that exports ever-increasing counter

Methods

impl Counter
[src]

[src]

Create a new counter

Note you need to export it in a collection to make it visible for cantal agent

[src]

Increase a counter for val

[src]

Get current value for counter

Note it works regardless of whether it's attached to a value

Trait Implementations

impl Display for Counter
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for Counter
[src]

[src]

Formats the value using the given formatter.

impl Value for Counter
[src]