[monitor] 指标组采集字段类型由string改为byte
This commit is contained in:
@@ -32,5 +32,5 @@ public class Configmap {
|
||||
* number,string,secret
|
||||
* 数字,非加密字符串,加密字符串
|
||||
*/
|
||||
private byte type;
|
||||
private byte type = 1;
|
||||
}
|
||||
|
||||
@@ -95,9 +95,9 @@ public class Metrics {
|
||||
*/
|
||||
private String field;
|
||||
/**
|
||||
* 指标类型 number:数字 string:字符串
|
||||
* 指标类型 0-number:数字 1-string:字符串
|
||||
*/
|
||||
private String type;
|
||||
private byte type = 1;
|
||||
/**
|
||||
* 此字段是否为实例主键
|
||||
*/
|
||||
|
||||
@@ -59,7 +59,22 @@ public interface CommonConstants {
|
||||
|
||||
|
||||
/**
|
||||
* null空值占位符
|
||||
* 字段参数类型: 数字
|
||||
*/
|
||||
byte TYPE_NUMBER = 0;
|
||||
|
||||
/**
|
||||
* 字段参数类型: 字符串
|
||||
*/
|
||||
byte TYPE_STRING = 1;
|
||||
|
||||
/**
|
||||
* 字段参数类型: 加密字符串
|
||||
*/
|
||||
byte TYPE_SECRET = 2;
|
||||
|
||||
/**
|
||||
* 采集指标值:null空值占位符
|
||||
*/
|
||||
String NULL_VALUE = " ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user