prometheus ~master (2021-10-31T09:45:38.6099948)
Dub
Repo
Counter
prometheus
counter
Undocumented in source.
@
safe
class
Counter :
Metric
{
this
(string name, string help, string[] labels);
void
inc
(double value, string[] labels);
void
observe
(double value, string[] labelValues);
MetricSnapshot
collect
();
}
Constructors
this
this
(string name, string help, string[] labels)
Undocumented in source.
Members
Functions
collect
MetricSnapshot
collect
()
Undocumented in source. Be warned that the author may not have intended to support it.
inc
void
inc
(double value, string[] labels)
Undocumented in source. Be warned that the author may not have intended to support it.
observe
void
observe
(double value, string[] labelValues)
Undocumented in source. Be warned that the author may not have intended to support it.
Inherited Members
From Metric
name
string
name
;
Undocumented in source.
help
string
help
;
Undocumented in source.
labels
string
[]
labels
;
Undocumented in source.
observe
void
observe
(double value, string[] labelValues)
Undocumented in source.
collect
MetricSnapshot
collect
()
Undocumented in source.
register
Metric
register
()
Undocumented in source. Be warned that the author may not have intended to support it.
register
Metric
register
(Registry reg)
Undocumented in source. Be warned that the author may not have intended to support it.
posixTime
long
posixTime
()
I hate this hack, but it's what I have
Meta
Source
See Implementation
prometheus
counter
classes
Counter