Struct libcantal::Integer [] [src]

pub struct Integer { /* fields omitted */ }

A kind of metric (Value) that exports gauge with integer value

Methods

impl Integer
[src]

[src]

Create a new integer gauge value

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

[src]

Increase the value of a gauge

[src]

Decrease the value of a gauge

[src]

Set (replace) the value of a gauge

[src]

Get current value of a gauge

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

Trait Implementations

impl Display for Integer
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for Integer
[src]

[src]

Formats the value using the given formatter.

impl Value for Integer
[src]