Zephyr API Documentation 3.7.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
gauge.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2024 Mustafa Abdullah Kus, Sparse Technology
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_PROMETHEUS_GAUGE_H_
8#define ZEPHYR_INCLUDE_PROMETHEUS_GAUGE_H_
9
21
32 double value;
33};
34
60#define PROMETHEUS_GAUGE_DEFINE(_name, _detail) \
61 static STRUCT_SECTION_ITERABLE(prometheus_gauge, _name) = {.base = (void *)(_detail), \
62 .value = 0}
63
74int prometheus_gauge_set(struct prometheus_gauge *gauge, double value);
75
80#endif /* ZEPHYR_INCLUDE_PROMETHEUS_GAUGE_H_ */
int prometheus_gauge_set(struct prometheus_gauge *gauge, double value)
Set the value of a Prometheus gauge metric.
Prometheus metric interface.
Type used to represent a Prometheus gauge metric.
Definition gauge.h:28
struct prometheus_metric * base
Base of the Prometheus gauge metric.
Definition gauge.h:30
double value
Value of the Prometheus gauge metric.
Definition gauge.h:32
Type used to represent a Prometheus metric base.
Definition metric.h:48