31 lines
1.1 KiB
C
31 lines
1.1 KiB
C
/*
|
|
* Copyright (c) 2019 TAOS Data, Inc. <jhtao@taosdata.com>
|
|
*
|
|
* This program is free software: you can use, redistribute, and/or modify
|
|
* it under the terms of the GNU Affero General Public License, version 3
|
|
* or later ("AGPL"), as published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful, but WITHOUT
|
|
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
* FITNESS FOR A PARTICULAR PURPOSE.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/**
|
|
* @file taos_monitor_util.h
|
|
* @brief Functions for retrieving metric samples from metrics given an ordered set of labels
|
|
*/
|
|
|
|
#ifndef TAOS_MONITOR_UTIL_H
|
|
#define TAOS_MONITOR_UTIL_H
|
|
|
|
#include "taos_metric.h"
|
|
#include "tjson.h"
|
|
|
|
void taos_monitor_split_str(char** arr, char* str, const char* del);
|
|
void taos_monitor_split_str_metric(char** arr, taos_metric_t* metric, const char* del, char** buf);
|
|
char* taos_monitor_get_metric_name(taos_metric_t* metric);
|
|
|
|
#endif // TAOS_MONITOR_UTIL_H
|