summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorfumingwei <[email protected]>2023-03-27 21:39:40 +0800
committerfumingwei <[email protected]>2023-03-28 16:13:45 +0800
commit1b65cc6b0cabca68f7e731a5d201dc1071bbd48d (patch)
tree3db78f66563fcb88734890bec23a2688abe05902 /inc
parent45a6ce34addd9187d7123c03d3badd5fa6d30589 (diff)
feature:新增获取dynamic metric value的接口v3.0.0
Diffstat (limited to 'inc')
-rw-r--r--inc/fieldstat.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/inc/fieldstat.h b/inc/fieldstat.h
index 4c64ea8..5312549 100644
--- a/inc/fieldstat.h
+++ b/inc/fieldstat.h
@@ -335,6 +335,31 @@ void fieldstat_instance_free(struct fieldstat_instance *instance);
* @param instance The fieldstat dynamic instance need to free.
*/
void fieldstat_dynamic_instance_free(struct fieldstat_dynamic_instance *instance);
+/**
+ * fieldstat dynamic instance table metric value get operate.
+ * @param instance The fieldstat dynamic instance.
+ * @param table_id The table id.
+ * @param column_id The column id.
+ * @param row_name The row name of table.
+ * @param value The set value.
+ * @param tags The tag array.
+ * @param n_tag Size of tags[]
+ * @param thread_id The thread id of the call.
+ * @return long long value.
+ */
+long long fieldstat_dynamic_table_metric_value_get(struct fieldstat_dynamic_instance *instance, int table_id, unsigned int column_id, const char *row_name, const struct fieldstat_tag tags[], size_t n_tags, int thread_id);
+/**
+ * fieldstat dynamic instance metric value set operate. metirc type in[gauge, counter]
+ * @param instance The fieldstat dynamic instance.
+ * @param field_name The metric field name.
+ * @param value The set value.
+ * @param tags The tag array.
+ * @param n_tag Size of tags[]
+ * @param thread_id The thread id of the call.
+ * @return long long value.
+ */
+long long fieldstat_dynamic_metric_value_get(struct fieldstat_dynamic_instance *instance, const char *field_name, const struct fieldstat_tag tags[], size_t n_tags, int thread_id);
+
#ifdef __cplusplus
}
#endif \ No newline at end of file