Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeMetricHttp = "http" MetricHttpUsages = "HTTP(http)" HttpStatusCode = "http_status_code" HttpRespHead = "http_resp_head" HttpData = "http_data" HttpTimeCost = "http_time_cost" HttpTarget = "http_target" HttpErrState = "http_err_state" HttpErrMsg = "http_err_msg" HttpTimeCostTotal = "http_time_cost_total" HttpErrStateTotal = "http_err_state_total" HttpErrMsgTotal = "http_err_msg_total" // Config 中的字段 ConfigHttpDatas = "http_datas" DefaultTimeOut = 1 * time.Minute StateSuccess = float64(1) StateFail = float64(0) )
Variables ¶
View Source
var ConfigHttpUsages = KeyValueSlice{ {ConfigHttpDatas, "填写(" + ConfigHttpDatas + ")", ""}, }
ConfigHttpUsages TypeMetricHttp config 中的字段描述
View Source
var KeyHttpUsages = KeyValueSlice{ {HttpStatusCode, "http响应状态码", ""}, {HttpRespHead, "http响应头部信息", ""}, {HttpData, "http响应内容", ""}, {HttpTimeCost, "http响应用时", ""}, {HttpTarget, "http请求地址", ""}, {HttpErrState, "http响应状态", ""}, {HttpErrMsg, "http响应错误信息", ""}, }
KeyHttpUsages TypeMetricHttp 中的字段名称
Functions ¶
This section is empty.
Types ¶
type HttpDataReq ¶
Click to show internal directories.
Click to hide internal directories.