Struct prometheus::Untyped [] [src]

pub struct Untyped {
    // some fields omitted
}

Untyped is a Metric that represents a single numerical value that can arbitrarily go up and down.

An Untyped metric works the same as a Gauge. The only difference is that to no type information is implied.

Methods

impl Untyped
[src]

new creates a Untyped with the name and help arguments.

with_opts creates a Untyped with the opts options.

impl Untyped
[src]

set sets the untyped to an arbitrary value.

inc increments the untyped by 1.

dec decrements the untyped by 1.

add adds the given value to the untyped. (The value can be negative, resulting in a decrease.)

sub subtracts the given value from the untyped. (The value can be negative, resulting in an increase.)

get returns the untyped value.

Trait Implementations

impl Clone for Untyped
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Collector for Untyped
[src]

desc returns the descriptor for the metric collector.

collect collects the metric.