models

package
v1.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2018 License: Apache-2.0 Imports: 0 Imported by: 11 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	/* 错误码 (Optional) */
	Code int `json:"code"`

	/* 错误信息 (Optional) */
	Message string `json:"message"`

	/* 错误状态 (Optional) */
	Status string `json:"status"`

	/* 详细信息 (Optional) */
	Detail string `json:"detail"`
}

type MetricData

type MetricData struct {

	/* 命名空间 ,长度不超过255字节,只允许英文、数字、下划线_、点., [0-9][a-z] [A-Z] [. _ ], 其它会返回err  */
	Namespace string `json:"namespace"`

	/* 监控指标名称,长度不超过255字节,只允许英文、数字、下划线_、点., [0-9][a-z] [A-Z] [. _ ],  其它会返回err  */
	Metric string `json:"metric"`

	/* 数据维度,数据类型为map类型,key\value均为string类型,支持最少一个,最多五个标签,总长度不大于255字节,只允许英文、数字、下划线_、点., [0-9][a-z] [A-Z] [. _ ], 其它会返回err  */
	Dimensions interface{} `json:"dimensions"`

	/* 上报数据点的时间戳,只支持10位,秒级时间戳,不能写入过去30天的时间  */
	Timestamp int64 `json:"timestamp"`

	/* 数据上报类型,1为原始值,2为聚合数据。当上报聚合数据时,建议为60s的周期时行上报、否则无法正常查询  */
	Type int `json:"type"`

	/* 指标值集合,数据类型必须为map类型,key\value均为string类型,key为数据类型,value为数据值,当type=1时,key只能为”value”,上报的是原始值,当type=2时,K的值可以为"avg","sum","last","max","min","count",只支持以上类型,否则会报错,value内容为整型或浮点型数字,value最大值为9223372036854775807,count只支持>=0的数  */
	Values interface{} `json:"values"`
}

type MetricDataList

type MetricDataList struct {

	/* 错误数据描述 (Optional) */
	MetricData interface{} `json:"metricData"`

	/* 错误数据描述 (Optional) */
	ErrDetail string `json:"errDetail"`
}

type Result

type Result struct {

	/* 全部写入成功为true,否则为false (Optional) */
	Success bool `json:"success"`
}

type Tags

type Tags struct {

	/* 标签名  */
	Name string `json:"name"`

	/* 标签值  */
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL