[monitor] 指标组采集字段类型由string改为byte

This commit is contained in:
tomsun28
2021-11-20 19:51:07 +08:00
parent 13019d78e3
commit 275e88b1b0
4 changed files with 28 additions and 13 deletions

View File

@@ -32,5 +32,5 @@ public class Configmap {
* number,string,secret
* 数字,非加密字符串,加密字符串
*/
private byte type;
private byte type = 1;
}

View File

@@ -95,9 +95,9 @@ public class Metrics {
*/
private String field;
/**
* 指标类型 number:数字 string:字符串
* 指标类型 0-number:数字 1-string:字符串
*/
private String type;
private byte type = 1;
/**
* 此字段是否为实例主键
*/

View File

@@ -59,7 +59,22 @@ public interface CommonConstants {
/**
* null空值占位符
* 字段参数类型: 数字
*/
byte TYPE_NUMBER = 0;
/**
* 字段参数类型: 字符串
*/
byte TYPE_STRING = 1;
/**
* 字段参数类型: 加密字符串
*/
byte TYPE_SECRET = 2;
/**
* 采集指标值null空值占位符
*/
String NULL_VALUE = " ";
}