libprom  @VERSION@
C based libraries to expose metrics in Promtheus exposition format
prom/include/prom_metric_sample.h
Go to the documentation of this file.
00001 /*
00002 Copyright 2019-2020 DigitalOcean Inc.
00003 Copyright 2021 Jens Elkner <jel+libprom@cs.uni-magdeburg.de>
00004 
00005 
00006 Licensed under the Apache License, Version 2.0 (the "License");
00007 you may not use this file except in compliance with the License.
00008 You may obtain a copy of the License at
00009 
00010      http://www.apache.org/licenses/LICENSE-2.0
00011 
00012 Unless required by applicable law or agreed to in writing, software
00013 distributed under the License is distributed on an "AS IS" BASIS,
00014 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015 See the License for the specific language governing permissions and
00016 limitations under the License.
00017 */
00018 
00024 #ifndef PROM_METRIC_SAMPLE_H
00025 #define PROM_METRIC_SAMPLE_H
00026 
00027 struct pms;
00033 typedef struct pms pms_t;
00034 
00041 int pms_add(pms_t *self, double r_value);
00042 
00049 int pms_sub(pms_t *self, double r_value);
00050 
00057 int pms_set(pms_t *self, double r_value);
00058 
00059 #endif  // PROM_METRIC_SAMPLE_H
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines