models

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2020 License: Apache-2.0 Imports: 0 Imported by: 10 modules, 9 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 ApiConfEnd

type ApiConfEnd struct {

	/* api name (Optional) */
	ApiName string `json:"apiName"`

	/* apiType: 1-openapi,2-http (Optional) */
	ApiType int64 `json:"apiType"`

	/* 记录id (Optional) */
	Id int64 `json:"id"`

	/* method: GET/POST ... (Optional) */
	Method string `json:"method"`

	/* params (Optional) */
	Params []Pair `json:"params"`

	/* reps (Optional) */
	Resp []Pair `json:"resp"`

	/* serviceCode (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* url (Optional) */
	Url string `json:"url"`

	/* version: v1 (Optional) */
	Version string `json:"version"`
}

type CollectConf

type CollectConf struct {

	/* collectTemplateUID (Optional) */
	CollectTemplateUID string `json:"collectTemplateUID"`

	/* 采集文件名称,支持通配 (Optional) */
	File string `json:"file"`

	/* filters 过滤器V1:多个词之间为or的关系 (Optional) */
	Filters []string `json:"filters"`

	/* logtopicUID 日志主题UID (Optional) */
	LogtopicUID string `json:"logtopicUID"`

	/* 采集文件路径,支持通配 (Optional) */
	Path string `json:"path"`

	/* 用户 PIN (Optional) */
	Pin string `json:"pin"`
}

type CollectInfoDetailEnd

type CollectInfoDetailEnd struct {

	/* UID (Optional) */
	UID string `json:"uID"`

	/* 日志来源,只能是 custom (Optional) */
	AppCode string `json:"appCode"`

	/*  (Optional) */
	Detail CollectTempalteEnd `json:"detail"`

	/*  (Optional) */
	Enabled int64 `json:"enabled"`

	/* 采集实例类型, 只能是 all/part (Optional) */
	ResourceType string `json:"resourceType"`

	/* 采集实例数量 (Optional) */
	ResourcesCount int64 `json:"resourcesCount"`

	/* 产品线 (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 日志类型名称 (Optional) */
	TemplateName string `json:"templateName"`

	/* 日志类型 (Optional) */
	TemplateUID string `json:"templateUID"`
}

type CollectTempalteEnd

type CollectTempalteEnd struct {

	/* 过滤器是否启用 (Optional) */
	FilterEnabled bool `json:"filterEnabled"`

	/* 日志文件 (Optional) */
	LogFile string `json:"logFile"`

	/* 过滤器 (Optional) */
	LogFilters []string `json:"logFilters"`

	/* 日志路径 (Optional) */
	LogPath string `json:"logPath"`
}

type CreateMetricTaskSpec added in v1.13.0

type CreateMetricTaskSpec struct {

	/* 聚合函数,支持 count sum max min avg  */
	Aggregate string `json:"aggregate"`

	/* 自定义单位  */
	CustomUnit string `json:"customUnit"`

	/* 查询字段,支持 英文字母 数字 下划线 中划线 点(中文日志原文和各产品线的key)  */
	DataField string `json:"dataField"`

	/* 过滤语法,可以为空 (Optional) */
	FilterContent string `json:"filterContent"`

	/* 是否打开过滤  */
	FilterOpen string `json:"filterOpen"`

	/* 过滤类型,只能是fulltext和 advance  */
	FilterType string `json:"filterType"`

	/* 时间周期,固定60s  */
	Interval int64 `json:"interval"`

	/* 监控项 , 支持大小写英文字母 下划线 数字 点,且不超过255byte(不支持中划线)  */
	Metric string `json:"metric"`

	/* 监控任务名称,同一个日志主题下唯一,支持中文 大小写英文字母 下划线 中划线 数字,且不超过32字符  */
	Name string `json:"name"`

	/* 单位  */
	Unit string `json:"unit"`
}

type CreateShipperSpec

type CreateShipperSpec struct {

	/* 压缩格式,为空不压缩 (Optional) */
	Compress string `json:"compress"`

	/* 投递格式 json,  origin(原始日志格式), 默认origin (Optional) */
	FileFormat string `json:"fileFormat"`

	/* 投递文件大小,单位MB,支持200,300,400,500,1000  */
	FileSize int64 `json:"fileSize"`

	/* 转储任务名称  */
	Name string `json:"name"`

	/* 目的地 配置  */
	TargetConf interface{} `json:"targetConf"`

	/* 转储目的地类型 0: oss, 目前只支持oss (Optional) */
	TargetType int64 `json:"targetType"`

	/* 投递时间间隔单位分钟,5分钟整数倍,支持5,10,15,20,30,60  */
	TimeInterval int64 `json:"timeInterval"`
}

type CustomLogSearchOut

type CustomLogSearchOut struct {

	/*  (Optional) */
	Code int64 `json:"code"`

	/*  (Optional) */
	Data []interface{} `json:"data"`

	/*  (Optional) */
	Message string `json:"message"`

	/*  (Optional) */
	Size int64 `json:"size"`

	/*  (Optional) */
	Total int64 `json:"total"`
}

type CustomLogSearchSpec

type CustomLogSearchSpec struct {

	/*   */
	AppName []string `json:"appName"`

	/*  (Optional) */
	From int64 `json:"from"`

	/*  (Optional) */
	LogTopicId string `json:"logTopicId"`

	/*  (Optional) */
	Match []Match `json:"match"`

	/*  (Optional) */
	RecordId string `json:"recordId"`

	/*  (Optional) */
	Resp []string `json:"resp"`

	/*  (Optional) */
	Size int64 `json:"size"`

	/*  (Optional) */
	Sort string `json:"sort"`

	/*   */
	TimeRange DateTimeRange `json:"timeRange"`

	/*  (Optional) */
	Uuid string `json:"uuid"`
}

type DateTimeRange

type DateTimeRange struct {

	/*  (Optional) */
	End string `json:"end"`

	/*  (Optional) */
	Start string `json:"start"`
}

type DescribeInstanceCollectConfsEnd

type DescribeInstanceCollectConfsEnd struct {

	/* result (Optional) */
	Result []CollectConf `json:"result"`
}

type DescribeInstanceMetaEnd

type DescribeInstanceMetaEnd struct {

	/* pin 机器所属pin (Optional) */
	Pin string `json:"pin"`

	/* tags map[string]string 冗余字段,后续随时添加 (Optional) */
	Tags interface{} `json:"tags"`

	/* timestamp 服务器时间 (Optional) */
	Timestamp string `json:"timestamp"`
}

type DescribeLogdCAEnd

type DescribeLogdCAEnd struct {

	/* cer 证书,hex string (Optional) */
	Cer string `json:"cer"`

	/* expiryDate 证书到期日 (Optional) */
	ExpiryDate string `json:"expiryDate"`
}

type DescribeMetricTasksSpec added in v1.13.0

type DescribeMetricTasksSpec struct {

	/* 当前所在页,默认为1
	in: query (Optional) */
	PageNumber int64 `json:"pageNumber"`

	/* 页面大小,默认为20;取值范围[1, 100]
	in: query (Optional) */
	PageSize int64 `json:"pageSize"`
}

type Entry

type Entry struct {

	/* 日志原文  */
	Content string `json:"content"`

	/* 日志流标识符,不传则使用全局日志流标识符 (Optional) */
	Stream *string `json:"stream"`

	/* 标签,不传则取全局标签 map[string]string (Optional) */
	Tags *interface{} `json:"tags"`

	/* 时间戳,UTC格式,最多支持到纳秒级别,不传入则取全局时间戳。如 2019-04-08T03:08:04.437670934Z、2019-04-08T03:08:04Z、2019-04-08T03:08:04.123Z (Optional) */
	Timestamp *string `json:"timestamp"`
}

type Erp

type Erp struct {

	/* ERP (Optional) */
	Erp string `json:"erp"`

	/* 产品线代码 (Optional) */
	ServiceCode []string `json:"serviceCode"`
}

type Err

type Err struct {

	/*  (Optional) */
	Code int64 `json:"code"`

	/*  (Optional) */
	Details interface{} `json:"details"`

	/*  (Optional) */
	Message string `json:"message"`

	/*  (Optional) */
	Status string `json:"status"`
}

type Error

type Error struct {

	/*  (Optional) */
	Code int64 `json:"code"`

	/*  (Optional) */
	Details interface{} `json:"details"`

	/*  (Optional) */
	Message string `json:"message"`

	/*  (Optional) */
	Status string `json:"status"`
}

type Field

type Field struct {

	/* key  */
	Key string `json:"key"`

	/* 字段类型  */
	Type string `json:"type"`
}

type Filter added in v1.17.0

type Filter struct {

	/* 过滤条件的名称 (Optional) */
	Name *string `json:"name"`

	/* 过滤条件的操作符,默认eq (Optional) (Optional) */
	Operator *string `json:"operator"`

	/* 过滤条件的值 (Optional) */
	Values []string `json:"values"`
}

type LogsetEnd

type LogsetEnd struct {

	/* UID (Optional) */
	UID string `json:"uID"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 描述信息 (Optional) */
	Description string `json:"description"`

	/* 是否存在日志主题 (Optional) */
	HasTopic bool `json:"hasTopic"`

	/* 保存周期 (Optional) */
	LifeCycle int64 `json:"lifeCycle"`

	/* 日志集名称 (Optional) */
	Name string `json:"name"`

	/* 地域信息 (Optional) */
	Region string `json:"region"`
}

type LogtopicDetailEnd

type LogtopicDetailEnd struct {

	/*  (Optional) */
	CollectInfo CollectInfoDetailEnd `json:"collectInfo"`

	/* UID (Optional) */
	UID string `json:"uID"`

	/* 采集配置UID (Optional) */
	CollectInfoUID string `json:"collectInfoUID"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 描述信息 (Optional) */
	Description string `json:"description"`

	/* 最新日志上报时间 (Optional) */
	LastRecordTime string `json:"lastRecordTime"`

	/* 所属日志集名称 (Optional) */
	LogsetName string `json:"logsetName"`

	/* 所属日志集 (Optional) */
	LogsetUID string `json:"logsetUID"`

	/* 日志主题名称 (Optional) */
	Name string `json:"name"`

	/* 地域信息 (Optional) */
	Region string `json:"region"`
}

type Match

type Match struct {

	/*  (Optional) */
	Eq interface{} `json:"eq"`

	/*  (Optional) */
	Not interface{} `json:"not"`

	/*  (Optional) */
	Range interface{} `json:"range"`

	/*  (Optional) */
	Regexp interface{} `json:"regexp"`

	/*  (Optional) */
	Simple_query_string interface{} `json:"simple_query_string"`

	/*  (Optional) */
	SimpleQuery interface{} `json:"simpleQuery"`

	/*  (Optional) */
	Substring interface{} `json:"substring"`
}

type MetrictaskDetailEnd added in v1.13.0

type MetrictaskDetailEnd struct {

	/* 聚合函数 (Optional) */
	Aggregate string `json:"aggregate"`

	/*  (Optional) */
	CretedTime string `json:"cretedTime"`

	/* 开启自定义单位 (Optional) */
	CustomUnit string `json:"customUnit"`

	/* 查询字段 (Optional) */
	DataField string `json:"dataField"`

	/* 过滤语法 (Optional) */
	FilterContent string `json:"filterContent"`

	/*  (Optional) */
	FilterOpen string `json:"filterOpen"`

	/* 过滤类型 (Optional) */
	FilterType string `json:"filterType"`

	/* id (Optional) */
	Id string `json:"id"`

	/* 周期 (Optional) */
	Interval int64 `json:"interval"`

	/* 监控项名称 (Optional) */
	Metric string `json:"metric"`

	/* 监控任务名称 (Optional) */
	Name string `json:"name"`

	/* 单位 (Optional) */
	Unit string `json:"unit"`

	/*  (Optional) */
	UpdateTime string `json:"updateTime"`
}

type Pair

type Pair struct {

	/* key  */
	Key string `json:"key"`

	/* value  */
	Value string `json:"value"`
}

type Range

type Range struct {

	/*  (Optional) */
	Gt interface{} `json:"gt"`

	/*  (Optional) */
	Gte interface{} `json:"gte"`

	/*  (Optional) */
	Lt interface{} `json:"lt"`

	/*  (Optional) */
	Lte interface{} `json:"lte"`
}

type Resource

type Resource struct {

	/* 资源所属地域  */
	Region string `json:"region"`

	/* 资源ID  */
	ResourceId string `json:"resourceId"`
}

type ResourceEnd

type ResourceEnd struct {

	/* agent 状态: 0-异常,1-正常 (Optional) */
	AgentStatus int64 `json:"agentStatus"`

	/* 资源名称 (Optional) */
	Name string `json:"name"`

	/* 资源所属地域 (Optional) */
	Region string `json:"region"`

	/* 资源ID (Optional) */
	ResourceId string `json:"resourceId"`
}

type SearchLogContextSpec added in v1.11.0

type SearchLogContextSpec struct {

	/* 查询anchor,基于该值偏移进行上下文检索  */
	Anchor []interface{} `json:"anchor"`

	/* 搜索方向,默认both,可取值:up,down,both (Optional) */
	Direction string `json:"direction"`

	/* 指定返回字段,只对系统日志生效,不填默认按照产品线配置返回字段,Name支持:key,Values填入返回字段 (Optional) */
	Filters []Filter `json:"filters"`

	/* 日志记录ID  */
	Id string `json:"id"`

	/* 查看上下文行数大小,最大支持200  */
	LineSize int64 `json:"lineSize"`

	/* 查询日志时返回的时间戳  */
	Time int64 `json:"time"`
}

type ShipperEnd

type ShipperEnd struct {

	/* UID (Optional) */
	UID string `json:"uID"`

	/* 日志类型 (Optional) */
	AppName string `json:"appName"`

	/* 压缩格式,为空不压缩 (Optional) */
	Compress string `json:"compress"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 投递格式 json,  origin(原始日志格式), 默认origin (Optional) */
	FileFormat string `json:"fileFormat"`

	/* 投递文件大小,单位MB,支持200,300,400,500,1000  */
	FileSize int64 `json:"fileSize"`

	/* 日志集uuid (Optional) */
	LogsetUID string `json:"logsetUID"`

	/* 日志主题uuid (Optional) */
	LogtopicUID string `json:"logtopicUID"`

	/* 转储任务名称  */
	Name string `json:"name"`

	/* pin (Optional) */
	Pin string `json:"pin"`

	/* 地域信息 (Optional) */
	Region string `json:"region"`

	/* 日志采集资源类型 (Optional) */
	ResourceType int64 `json:"resourceType"`

	/* 日志采集列表 (Optional) */
	ResourceUIDs []string `json:"resourceUIDs"`

	/* serviceCode (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* 日志转储任务状态,开启,停止 (Optional) */
	Status int64 `json:"status"`

	/* 目的地 配置  */
	TargetConf interface{} `json:"targetConf"`

	/* 转储目的地类型 0: oss, 目前只支持oss (Optional) */
	TargetType int64 `json:"targetType"`

	/* 投递时间间隔单位分钟,5分钟整数倍,支持5,10,15,20,30,60  */
	TimeInterval int64 `json:"timeInterval"`

	/* 更新时间 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type ShipperTaskEnd

type ShipperTaskEnd struct {

	/* UID (Optional) */
	UID string `json:"uID"`

	/* 是否允许重试, true,false (Optional) */
	AllowRetry bool `json:"allowRetry"`

	/* 创建时间 (Optional) */
	CreateTime string `json:"createTime"`

	/* 结束时间 (Optional) */
	EndTime int64 `json:"endTime"`

	/* 日志集uuid (Optional) */
	LogsetUID string `json:"logsetUID"`

	/* 日志主题uuid (Optional) */
	LogtopicUID string `json:"logtopicUID"`

	/* 地域信息 (Optional) */
	Region string `json:"region"`

	/* 日志批次任务截止时间 (Optional) */
	ShipperEndTime int64 `json:"shipperEndTime"`

	/* 日志批次任务起始时间 (Optional) */
	ShipperStartTime int64 `json:"shipperStartTime"`

	/* shipperUID (Optional) */
	ShipperUID string `json:"shipperUID"`

	/* 开始时间 (Optional) */
	StartTime int64 `json:"startTime"`

	/* 该批次转储任务状态: 1 发送中 2 成功,3 失败 (Optional) */
	Status int64 `json:"status"`

	/* 更新时间 (Optional) */
	UpdateTime string `json:"updateTime"`
}

type SimpleQuery

type SimpleQuery struct {

	/*  (Optional) */
	Items []SimpleQueryItem `json:"items"`

	/*  (Optional) */
	Opt string `json:"opt"`
}

type SimpleQueryItem

type SimpleQueryItem struct {

	/*  (Optional) */
	Exclude bool `json:"exclude"`

	/*  (Optional) */
	Keyword string `json:"keyword"`
}

type StartShippersSpec

type StartShippersSpec struct {

	/* 转储任务uuid列表  */
	ShipperList []string `json:"shipperList"`
}

type StopShippersSpec

type StopShippersSpec struct {

	/* 转储任务uuid列表  */
	ShipperList []string `json:"shipperList"`
}

type SysTemplateEnd

type SysTemplateEnd struct {

	/* UID (Optional) */
	UID string `json:"uID"`

	/* create user (Optional) */
	CreateErp string `json:"createErp"`

	/* create date (Optional) */
	CreateTime string `json:"createTime"`

	/* 是否启用 (Optional) */
	Enabled bool `json:"enabled"`

	/* 模板名称 (Optional) */
	Name string `json:"name"`

	/* serviceCode (Optional) */
	ServiceCode string `json:"serviceCode"`

	/* update user (Optional) */
	UpdateErp string `json:"updateErp"`

	/* update date (Optional) */
	UpdateTime string `json:"updateTime"`
}

type SystemLogContextSpec

type SystemLogContextSpec struct {

	/*  (Optional) */
	Anchor []interface{} `json:"anchor"`

	/*   */
	AppName string `json:"appName"`

	/*  (Optional) */
	Direction string `json:"direction"`

	/*  (Optional) */
	Id string `json:"id"`

	/*  (Optional) */
	LineSize int64 `json:"lineSize"`

	/*   */
	LogType string `json:"logType"`

	/*  (Optional) */
	Time int64 `json:"time"`
}

type SystemLogEnd

type SystemLogEnd struct {

	/*  (Optional) */
	Data []SystemLogResultData `json:"data"`

	/*  (Optional) */
	Hits int64 `json:"hits"`

	/*  (Optional) */
	Size int64 `json:"size"`
}

type SystemLogHistorySpec

type SystemLogHistorySpec struct {

	/*   */
	AppName string `json:"appName"`

	/* 精确匹配,true 或者 false (Optional) */
	ExactMatch bool `json:"exactMatch"`

	/*   */
	Instance string `json:"instance"`

	/* 查询关键字 (Optional) */
	Keyword string `json:"keyword"`

	/*   */
	LogType string `json:"logType"`

	/* 排序,取值"ASC"或"DESC",默认"ASC" (Optional) */
	Order string `json:"order"`

	/* 页数,从1开始 (Optional) */
	Page int64 `json:"page"`

	/* 每页日志条数 (Optional) */
	Size int64 `json:"size"`

	/*   */
	Time TimestampRange `json:"time"`
}

type SystemLogResultData

type SystemLogResultData struct {

	/* 上下文日志搜索锚点 (Optional) */
	Anchor []interface{} `json:"anchor"`

	/* 包含id, originalMsg, time字段 (Optional) */
	Source interface{} `json:"source"`
}

type SystemLogResultStatus

type SystemLogResultStatus struct {

	/*  (Optional) */
	Code string `json:"code"`
}

type SystemLogResultTrace

type SystemLogResultTrace struct {

	/*  (Optional) */
	DestIp string `json:"destIp"`

	/*  (Optional) */
	Id string `json:"id"`

	/*  (Optional) */
	SrcIp string `json:"srcIp"`

	/*  (Optional) */
	Timestamp int64 `json:"timestamp"`
}

type TargetConf

type TargetConf struct {

	/* 目的地 配置  */
	TargetConf interface{} `json:"targetConf"`

	/* 转储目的地类型 0: oss, 目前只支持oss (Optional) */
	TargetType int64 `json:"targetType"`
}

type TemplateEnd

type TemplateEnd struct {

	/* UID (Optional) */
	UID string `json:"uID"`

	/* 模板名称 (Optional) */
	Name string `json:"name"`
}

type TestMetricTaskSpec added in v1.13.0

type TestMetricTaskSpec struct {

	/* 聚合函数,支持 count sum max min avg  */
	Aggregate string `json:"aggregate"`

	/* 测试内容  */
	Content []string `json:"content"`

	/* 查询字段,支持 英文字母 数字 下划线 中划线 点(中文日志原文和各产品线的key)  */
	DataField string `json:"dataField"`

	/* 过滤语法,可以为空 (Optional) */
	FilterContent string `json:"filterContent"`

	/* 是否打开过滤  */
	FilterOpen string `json:"filterOpen"`

	/* 过滤类型,只能是fulltext和 advance  */
	FilterType string `json:"filterType"`
}

type TimestampRange

type TimestampRange struct {

	/* 结束时间,单位毫秒 (Optional) */
	End int64 `json:"end"`

	/* 开始时间,单位毫秒 (Optional) */
	Start int64 `json:"start"`
}

type UpdateMetricTaskSpec added in v1.13.0

type UpdateMetricTaskSpec struct {

	/* 自定义单位  */
	CustomUnit string `json:"customUnit"`

	/* 过滤语法,可以为空 (Optional) */
	FilterContent string `json:"filterContent"`

	/* 是否打开过滤  */
	FilterOpen string `json:"filterOpen"`

	/* 过滤类型,只能是fulltext和 advance  */
	FilterType string `json:"filterType"`

	/* 监控任务名称,同一日志主题下唯一,支持中文 大小写英文字母 下划线 中划线 数字,且不超过32  */
	Name string `json:"name"`

	/* 单位  */
	Unit string `json:"unit"`
}

Jump to

Keyboard shortcuts

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