Documentation ¶
Index ¶
Constants ¶
View Source
const ( ALERT_APM_API_ERROR_RATIO = 1 // 接口访问错误率 ALERT_APM_API_ERROR_COUNT = 2 // 接口访问错误次数 ALERT_APM_EXCEPTION_RATIO = 3 // 内部异常率 ALERT_APM_SQL_ERROR_RATIO = 4 // sql错误率 ALERT_APM_API_DURATION = 5 // 接口平均耗时 ALERT_APM_API_COUNT = 6 // 接口访问次数 ALERT_APM_CPU_USED_RATIO = 7 // cpu使用率 ALERT_APM_MEM_USED_RATION = 8 // JVM Heap使用量 ALERT_TYPE_API = 1000 // api 数据 ALERT_TYPE_SQL = 1001 // sql 数据 ALERT_TYPE_RUNTIME = 1002 // runtime 数据 ALERT_TYPE_EXCEPTION = 1003 // 异常 数据 POLICY_Type_DEFAULT = 1 // 默认模版 POLICY_Type_CUSTOM = 2 // 自定义策略模版 )
View Source
const ( API int32 = 12 API_METADATA = 13 RETURN_DATA = 14 API_TAG = 10015 ERROR_API_METADATA_ERROR = 10000010 ERROR_API_METADATA_AGENT_INFO_NOT_FOUND = 10000011 ERROR_API_METADATA_IDENTIFIER_CHECK_ERROR = 10000012 ERROR_API_METADATA_NOT_FOUND = 10000013 ERROR_API_METADATA_DID_COLLSION = 10000014 SQL_ID = 20 SQL = 21 SQL_METADATA = 22 SQL_PARAM = 23 SQL_BINDVALUE = 24 STRING_ID = 30 HTTP_URL = 40 HTTP_PARAM = 41 HTTP_PARAM_ENTITY = 42 HTTP_COOKIE = 45 HTTP_STATUS_CODE = 46 HTTP_INTERNAL_DISPLAY = 48 HTTP_IO = 49 MESSAGE_QUEUE_URI = 100 ARGS0 = -1 ARGS1 = -2 ARGS2 = -3 ARGS3 = -4 ARGS4 = -5 ARGS5 = -6 ARGS6 = -7 ARGS7 = -8 ARGS8 = -9 ARGS9 = -10 ARGSN = -11 CACHE_ARGS0 = -30 CACHE_ARGS1 = -31 CACHE_ARGS2 = -32 CACHE_ARGS3 = -33 CACHE_ARGS4 = -34 CACHE_ARGS5 = -35 CACHE_ARGS6 = -36 CACHE_ARGS7 = -37 CACHE_ARGS8 = -38 CACHE_ARGS9 = -39 CACHE_ARGSN = -40 EXCEPTION = -50 EXCEPTION_CLASS = -51 UNKNOWN = -9999 ASYNC = -100 PROXY_HTTP_HEADER = 300 REDIS_IO = 310 JSON_LIB_ANNOTATION_KEY_JSON_LENGTH = 9002 GSON_ANNOTATION_KEY_JSON_LENGTH = 9000 JACKSON_ANNOTATION_KEY_LENGTH_VALUE = 9001 // Dubbo DUBBO_ARGS = 90 DUBBO_RESULT = 91 DUBBO_RPC = 92 DUBBO_STATUS_ANNOTATION_KEY = 93 DUBBO_CONSUMER_HOST_KEY = 94 )
View Source
const ( // /** // * ok. // */ // public static final byte OK = 20; DUBBO_RESULT_STATUS_OK int32 = 20 // /** // * clien side timeout. // */ // public static final byte CLIENT_TIMEOUT = 30; DUBBO_RESULT_STATUS_CLIENT_TIMEOUT int32 = 30 // /** // * server side timeout. // */ // public static final byte SERVER_TIMEOUT = 31; DUBBO_RESULT_STATUS_SERVER_TIMEOUT int32 = 31 // /** // * request format error. // */ // public static final byte BAD_REQUEST = 40; DUBBO_RESULT_STATUS_BAD_REQUEST int32 = 40 // /** // * response format error. // */ // public static final byte BAD_RESPONSE = 50; DUBBO_RESULT_STATUS_BAD_RESPONSE int32 = 50 // /** // * service not found. // */ // public static final byte SERVICE_NOT_FOUND = 60; DUBBO_RESULT_STATUS_SERVICE_NOT_FOUND int32 = 60 // /** // * service error. // */ // public static final byte SERVICE_ERROR = 70; DUBBO_RESULT_STATUS_SERVICE_ERROR int32 = 70 // /** // * internal server error. // */ // public static final byte SERVER_ERROR = 80; DUBBO_RESULT_STATUS_SERVER_ERROR int32 = 80 // /** // * internal server error. // */ // public static final byte CLIENT_ERROR = 90; DUBBO_RESULT_STATUS_CLIENT_ERROR int32 = 90 // /** // * server side threadpool exhausted and quick return. // */ // public static final byte SERVER_THREADPOOL_EXHAUSTED_ERROR = 100; DUBBO_RESULT_STATUS_SERVER_THREADPOOL_EXHAUSTED_ERROR int32 = 100 )
View Source
const ( SERVERTYPE_UNKNOWN int16 = -9999 ACTIVEMQ_CLIENT int16 = 8310 ACTIVEMQ_CLIENT_INTERNAL int16 = 8311 AKKA_HTTP_SERVER int16 = 1310 STR1311 int16 = 9998 ARCUS int16 = 8100 ARCUS_FUTURE_GET int16 = 8101 ARCUS_EHCACHE_FUTURE_GET int16 = 8102 ARCUS_INTERNAL int16 = 8103 MEMCACHED int16 = 8050 MEMCACHED_FUTURE_GET int16 = 8051 CASSANDRA int16 = 2600 CASSANDRA_EXECUTE_QUERY int16 = 2601 CUBRID int16 = 2400 CUBRID_EXECUTE_QUERY int16 = 2401 CXF_CLIENT int16 = 9080 DBCP int16 = 6050 DBCP2 int16 = 6052 DUBBO_PROVIDER int16 = 1110 DUBBO_CONSUMER int16 = 9110 DUBBO int16 = 9111 GOOGLE_HTTP_CLIENT_INTERNAL int16 = 9054 GSON int16 = 5010 HIKARICP int16 = 6060 HTTP_CLIENT_3 int16 = 9050 HTTP_CLIENT_3_INTERNAL int16 = 9051 HTTP_CLIENT_4 int16 = 9052 HTTP_CLIENT_4_INTERNAL int16 = 9053 HYSTRIX_COMMAND int16 = 9120 HYSTRIX_COMMAND_INTERNAL int16 = 9121 IBATIS int16 = 5500 IBATIS_SPRING int16 = 5501 JACKSON int16 = 5011 JBOSS int16 = 1040 JBOSS_METHOD int16 = 1041 JDK_HTTPURLCONNECTOR int16 = 9055 JETTY int16 = 1030 JETTY_METHOD int16 = 1031 JSON_LIB int16 = 5012 JSP int16 = 5005 MSSQLSERVER int16 = 2200 MSSQL_EXECUTE_QUERY int16 = 2201 KAFKA_CLIENT int16 = 8660 KAFKA_CLIENT_INTERNAL int16 = 8661 MARIADB int16 = 2150 MARIADB_EXECUTE_QUERY int16 = 2151 MYBATIS int16 = 5510 MYSQL int16 = 2100 MYSQL_EXECUTE_QUERY int16 = 2101 NETTY int16 = 9150 NETTY_INTERNAL int16 = 9151 NETTY_HTTP int16 = 9152 ASYNC_HTTP_CLIENT int16 = 9056 ASYNC_HTTP_CLIENT_INTERNAL int16 = 9057 OK_HTTP_CLIENT int16 = 9058 OK_HTTP_CLIENT_INTERNAL int16 = 9059 ORACLE int16 = 2300 ORACLE_EXECUTE_QUERY int16 = 2301 PHP int16 = 1500 PHP_METHOD int16 = 1501 PHP_REMOTE_METHOD int16 = 9700 POSTGRESQL int16 = 2500 POSTGRESQL_EXECUTE_QUERY int16 = 2501 RABBITMQ_CLIENT int16 = 8300 RABBITMQ_CLIENT_INTERNAL int16 = 8301 REDIS int16 = 8200 RESIN int16 = 1200 RESIN_METHOD int16 = 1201 REST_TEMPLATE int16 = 9140 RX_JAVA int16 = 6500 RX_JAVA_INTERNAL int16 = 6501 SPRING_BEAN int16 = 5071 SPRING_ASYNC int16 = 5052 SPRING_MVC int16 = 5051 NAME int16 = 1210 THRIFT_SERVER int16 = 1100 THRIFT_CLIENT int16 = 9100 THRIFT_SERVER_INTERNAL int16 = 1101 THRIFT_CLIENT_INTERNAL int16 = 9101 TOMCAT int16 = 1010 TOMCAT_METHOD int16 = 1011 UNDERTOW int16 = 1120 UNDERTOW_METHOD int16 = 1121 VERTX int16 = 1050 VERTX_INTERNAL int16 = 1051 VERTX_HTTP_SERVER int16 = 1052 VERTX_HTTP_SERVER_INTERNAL int16 = 1053 VERTX_HTTP_CLIENT int16 = 9130 VERTX_HTTP_CLIENT_INTERNAL int16 = 9131 WEBLOGIC int16 = 1070 WEBLOGIC_METHOD int16 = 1071 WEBSPHERE int16 = 1060 WEBSPHERE_METHOD int16 = 1061 )
View Source
const ( TypeOfSkywalking byte = 1 // Skywalking 监控数据 uint16(iota + 1) TypeOfPinpoint byte = 2 // Pinpoint 日志数据 TypeOfCmd byte = 3 // 指令包 数据 TypeOfLog byte = 4 // 日志数据 TypeOfSystem byte = 5 // 系统数据 )
第一级类型
View Source
const ( TypeOfAppRegister uint16 = 1 // 注册app id TypeOfAppRegisterInstance uint16 = 2 // 注册app实例ID TypeOfSerNameDiscoveryService uint16 = 3 // 注册Api TypeOfNewworkAddrRegister uint16 = 4 // 注册Addr TypeOfJVMMetrics uint16 = 5 // JVM信息 TypeOfTraceSegment uint16 = 6 // trace信息 )
监控报文类型SKYWalking
View Source
const ( TypeOfTCPData uint16 = 1 // tcp TypeOfUDPData uint16 = 2 // udp TypeOfRegister uint16 = 3 // 注册app id TypeOfAgentInfo uint16 = 4 TypeOfSQLMetaData uint16 = 5 TypeOfAPIMetaData uint16 = 6 TypeOfStringMetaData uint16 = 7 TypeOfTSpan uint16 = 8 TypeOfTSpanChunk uint16 = 9 TypeOfTAgentStat uint16 = 10 TypeOfTAgentStatBatch uint16 = 11 TypeOfAgentOffline uint16 = 12 // Agent 下线 )
监控报文类型Pinpoint
View Source
const ( TypeOfCPU uint16 = 1 // cpu TypeOfSystemload uint16 = 2 // Systemload )
系统监控数据类型
View Source
const ( // MaxMessageSize max message size MaxMessageSize int = 16 * 1024 TypeOfCompressYes byte = 1 // 数据压缩 TypeOfCompressNo byte = 2 // 数据不压缩 TypeOfSyncYes byte = 1 // 同步 TypeOfSyncNo byte = 2 // 非同步 TypeOfApiStats byte = 1 // API统计 TypeOfSerMapStats byte = 2 // sermap统计 )
其他控制类型
View Source
const ( TypeOfEnvJAVA int32 = 1 TypeOfEnvGO int32 = 2 )
运行环境
View Source
const ( VersionOf01 byte = 1 VersionVERSION = 0 )
版本类型
View Source
const (
JVM int = 1
)
View Source
const (
TypeOfPing uint16 = 100 // Skywalking 监控数据 uint16(iota + 1) // Skywalking 监控数据
)
指令报文类型
Variables ¶
View Source
var Alert map[string]int
View Source
var AlertInfo map[int]string
View Source
var AnnotationKeys map[int]string
View Source
var ServiceType map[int]string
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.