LCOV - code coverage report
Current view: top level - zephyr/net/prometheus - formatter.h Hit Total Coverage
Test: new.info Lines: 2 2 100.0 %
Date: 2024-10-22 03:18:24

          Line data    Source code
       1           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_FORMATTER_H_
       8             : #define ZEPHYR_INCLUDE_PROMETHEUS_FORMATTER_H_
       9             : 
      10             : /**
      11             :  * @file
      12             :  *
      13             :  * @brief Prometheus formatter APIs.
      14             :  *
      15             :  * @addtogroup prometheus
      16             :  * @{
      17             :  */
      18             : 
      19             : #include <zephyr/net/prometheus/collector.h>
      20             : 
      21             : /**
      22             :  * @brief Format exposition data for Prometheus
      23             :  *
      24             :  * Formats the exposition data collected by the specified collector into the provided buffer.
      25             :  * Function to format metric data according to Prometheus text-based format
      26             :  *
      27             :  * @param collector Pointer to the collector containing the data to format.
      28             :  * @param buffer Pointer to the buffer where the formatted exposition data will be stored.
      29             :  * @param buffer_size Size of the buffer.
      30             :  *
      31             :  * @return 0 on success, negative errno on error.
      32             :  */
      33           1 : int prometheus_format_exposition(const struct prometheus_collector *collector, char *buffer,
      34             :                                  size_t buffer_size);
      35             : 
      36             : /**
      37             :  * @}
      38             :  */
      39             : 
      40             : #endif /* ZEPHYR_INCLUDE_PROMETHEUS_FORMATTER_H_ */

Generated by: LCOV version 1.14