models

package
v1.62.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2023 License: Apache-2.0 Imports: 0 Imported by: ? modules, 0 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 AgResource added in v1.56.0

type AgResource struct {

	/* 高可用组 id (Optional) */
	AgId *string `json:"agId"`

	/* 高可用组 name (Optional) */
	AgName *string `json:"agName"`

	/* 区域 (Optional) */
	Region *string `json:"region"`
}

type AgResourceEnd added in v1.56.0

type AgResourceEnd struct {

	/* 高可用组 id (Optional) */
	AgId string `json:"agId"`

	/* 高可用组 name (Optional) */
	AgName string `json:"agName"`

	/* 区域 (Optional) */
	Region string `json:"region"`
}

type AnalysisMetaData added in v1.56.0

type AnalysisMetaData struct {

	/* 统计字段 (Optional) */
	Agg []string `json:"agg"`

	/* 分组字段 (Optional) */
	Group []string `json:"group"`

	/* 时间字段 (Optional) */
	Time []string `json:"time"`
}

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"`

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

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

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

type CollectInfoDetailEnd

type CollectInfoDetailEnd struct {

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

	/* 高可用组资源multi (Optional) */
	AgResource []AgResourceEnd `json:"agResource"`

	/* 日志来源 (Optional) */
	AppCode string `json:"appCode"`

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

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

	/* 自定义日志转发目的地, 只支持业务应用日志。支持类型:"kafka","es" (Optional) */
	LogCustomTarget string `json:"logCustomTarget"`

	/* 自定义日志转发目的地配置,KV 结构,具体配置参考 LogCustomTargetKafkaConf 和 LogCustomTargetEsConf (Optional) */
	LogCustomTargetConf interface{} `json:"logCustomTargetConf"`

	/* 目的地是否是日志服务logtopic,只支持业务应用日志。默认是 (Optional) */
	LogtopicEnabled bool `json:"logtopicEnabled"`

	/* 采集资源时选择的模式,1.正常的选择实例模式(默认模式);2.选择标签tag模式 3.选择高可用组ag模式 (Optional) */
	ResourceMode int64 `json:"resourceMode"`

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

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

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

	/*  (Optional) */
	TagResource TagResourceEnd `json:"tagResource"`

	/* 日志类型名称 (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"`

	/* 首行正则 (Optional) */
	RegexpStr string `json:"regexpStr"`
}

type CreateCollectInfoSpec added in v1.56.0

type CreateCollectInfoSpec struct {

	/* 高可用组资源 (Optional) */
	AgResource []AgResource `json:"agResource"`

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

	/* 采集状态,0-禁用,1-启用  */
	Enabled bool `json:"enabled"`

	/* 过滤器是否启用。当appcode为custom时必填 (Optional) */
	FilterEnabled bool `json:"filterEnabled"`

	/* 自定义日志转发目的地, 只支持业务应用日志。支持类型:"kafka","es",默认为空:不进行自定义目的上报 (Optional) */
	LogCustomTarget string `json:"logCustomTarget"`

	/* 自定义日志转发目的地配置,KV 结构,具体配置参考 LogCustomTargetKafkaConf 和 LogCustomTargetEsConf (Optional) */
	LogCustomTargetConf interface{} `json:"logCustomTargetConf"`

	/* 日志文件名。当appcode为custom时为必填。日志文件名支持正则表达式。 (Optional) */
	LogFile string `json:"logFile"`

	/* 过滤器。设置过滤器后可根据用户设定的关键词采集部分日志,如仅采集 Error 的日志。目前最大允许5个。 (Optional) */
	LogFilters []string `json:"logFilters"`

	/* 日志路径。当appcode为custom时为必填。目前仅支持对 Linux 云主机上的日志进行采集,路径支持通配符“*”和“?”,文件路径应符合 Linux 的文件路径规则 (Optional) */
	LogPath string `json:"logPath"`

	/* 目的地是否是日志服务logtopic,只支持业务应用日志 (Optional) */
	LogtopicEnabled bool `json:"logtopicEnabled"`

	/* 首行正则 (Optional) */
	RegexpStr string `json:"regexpStr"`

	/* 采集资源时选择的模式,1.正常的选择实例模式(默认模式);2.选择标签tag模式 3.选择高可用组ag模式 (Optional) */
	ResourceMode int64 `json:"resourceMode"`

	/* 采集实例类型, 只能是 all/part  当选择all时,传入的实例列表无效;custom类型的采集配置目前仅支持part方式,即用户指定实例列表;  */
	ResourceType string `json:"resourceType"`

	/* 采集实例列表:jdcloud类型最多添加20个资源;custom类型支持的资源数量不限; (Optional) */
	Resources []Resource `json:"resources"`

	/* 产品线,当日志来源为jdcloud时,必填  */
	ServiceCode string `json:"serviceCode"`

	/*  (Optional) */
	TagResource TagResource `json:"tagResource"`

	/* 日志类型。当appcode为jdcloud时为必填 (Optional) */
	TemplateUID string `json:"templateUID"`
}

type CreateMetricTaskSpec added in v1.13.0

type CreateMetricTaskSpec struct {

	/* 聚合函数,支持 count sum max min avg; 配置方式(SettingType) 为 空或visual 时,必填; (Optional) */
	Aggregate string `json:"aggregate"`

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

	/* 查询字段,支持 英文字母 数字 下划线 中划线 点(中文日志原文和各产品线的key); 配置方式(SettingType) 为 空或visual 时,必填; (Optional) */
	DataField string `json:"dataField"`

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

	/* 是否打开过滤; 配置方式(SettingType) 为 空或visual 时,必填; (Optional) */
	FilterOpen string `json:"filterOpen"`

	/* 过滤类型,只能是fulltext和 advance; 配置方式(SettingType) 为 空或visual 时,必填; (Optional) */
	FilterType string `json:"filterType"`

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

	/* 监控项 , 支持大小写英文字母 下划线 数字 点,且不超过255byte(不支持中划线); 配置方式(SettingType) 为 空或visual 时,必填; (Optional) */
	Metric string `json:"metric"`

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

	/* 配置方式: 可选参数;枚举值 visual,sql;分别代表可视化配置及sql配置方式,传空表示可视化配置; (Optional) */
	SettingType string `json:"settingType"`

	/*  (Optional) */
	SqlSpec MetricTaskSqlSpec `json:"sqlSpec"`

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

type CreateParserEnd added in v1.56.0

type CreateParserEnd struct {

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

type CreateParserSpec added in v1.56.0

type CreateParserSpec struct {

	/*   */
	ParserFields []ParserField `json:"parserFields"`

	/* 解析类型。oneline - 单行,split - 分割, json - json, regexp - regexp  */
	ParserMode string `json:"parserMode"`

	/* 解析语法 (Optional) */
	ParserPattern string `json:"parserPattern"`

	/* 日志样例 (Optional) */
	ParserSample string `json:"parserSample"`

	/* 预处理任务列表。按照数组的顺序执行。 (Optional) */
	Pipelines []PipelineSpec `json:"pipelines"`
}

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 CustomConf added in v1.56.0

type CustomConf struct {

	/* 自定义目的地配置 (Optional) */
	Conf string `json:"conf"`

	/* 自定义目的地类型,支持kafka,es (Optional) */
	DestType string `json:"destType"`
}

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 CustomSpec added in v1.56.0

type CustomSpec struct {

	/* 过滤器是否启用。当appcode为custom时必填 (Optional) */
	FilterEnabled bool `json:"filterEnabled"`

	/* 自定义日志转发目的地, 只支持业务应用日志。支持类型:"kafka","es",默认为空:不进行自定义目的上报 (Optional) */
	LogCustomTarget string `json:"logCustomTarget"`

	/* 自定义日志转发目的地配置,KV 结构,具体配置参考 LogCustomTargetKafkaConf 和 LogCustomTargetEsConf (Optional) */
	LogCustomTargetConf interface{} `json:"logCustomTargetConf"`

	/* 日志文件名。当appcode为custom时为必填。日志文件名支持正则表达式。 (Optional) */
	LogFile string `json:"logFile"`

	/* 过滤器。设置过滤器后可根据用户设定的关键词采集部分日志,如仅采集 Error 的日志。目前最大允许5个。 (Optional) */
	LogFilters []string `json:"logFilters"`

	/*  (Optional) */
	LogPath string `json:"logPath"`

	/* 目的地是否是日志服务logtopic,只支持业务应用日志 (Optional) */
	LogtopicEnabled bool `json:"logtopicEnabled"`
}

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 DestConf added in v1.56.0

type DestConf struct {

	/* 自定义目的地 (Optional) */
	Custom []CustomConf `json:"custom"`

	/* 是否设置日志主题作为目的地 (Optional) */
	Jcloud bool `json:"jcloud"`
}

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 JdcloudSpec added in v1.56.0

type JdcloudSpec struct {

	/* 产品线,当日志来源为jdcloud时,必填  */
	ServiceCode string `json:"serviceCode"`

	/* 日志类型。当appcode为jdcloud时为必填 (Optional) */
	TemplateUID string `json:"templateUID"`
}

type LogParserEnd added in v1.56.0

type LogParserEnd struct {

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

	/*  (Optional) */
	ParserFields []LogParserFieldEnd `json:"parserFields"`

	/*  (Optional) */
	ParserMode string `json:"parserMode"`

	/*  (Optional) */
	ParserPattern string `json:"parserPattern"`

	/*  (Optional) */
	ParserSample string `json:"parserSample"`
}

type LogParserFieldEnd added in v1.56.0

type LogParserFieldEnd struct {

	/*  (Optional) */
	FieldFormat string `json:"fieldFormat"`

	/*  (Optional) */
	FieldName string `json:"fieldName"`

	/*  (Optional) */
	FieldType string `json:"fieldType"`

	/*  (Optional) */
	Index int64 `json:"index"`
}

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"`

	/* 日志来源,只在查询单个日志主题并且创建了采集配置时返回值 (Optional) */
	AppCode string `json:"appCode"`

	/* 日志主题采集的日志类型 (Optional) */
	AppName string `json:"appName"`

	/* 采集配置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) */
	PrePattern string `json:"prePattern"`

	/* 地域信息 (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 MetricTaskSqlSpec added in v1.56.0

type MetricTaskSqlSpec struct {

	/* SQL表达式,必填;  */
	Expr string `json:"expr"`
}

type MetrictaskDetailEnd added in v1.13.0

type MetrictaskDetailEnd struct {

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

	/*  (Optional) */
	CreatedTime string `json:"createdTime"`

	/* 开启自定义单位 (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"`

	/* 配置方式:枚举值 visual,sql;分别代表可视化配置及sql配置方式 (Optional) */
	SettingType string `json:"settingType"`

	/*  (Optional) */
	SqlSpec MetricTaskSqlSpec `json:"sqlSpec"`

	/* 单位 (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 ParserField added in v1.56.0

type ParserField struct {

	/*  (Optional) */
	FieldFormat *string `json:"fieldFormat"`

	/*   */
	FieldType string `json:"fieldType"`

	/*   */
	FieldValue string `json:"fieldValue"`

	/*  (Optional) */
	Index *int64 `json:"index"`

	/*   */
	Name string `json:"name"`
}

type PipelineSpec added in v1.56.0

type PipelineSpec struct {

	/* 字段名称  */
	Field string `json:"field"`

	/* 字段类型。 system, custom。 不填写默认为custom (Optional) */
	FieldType *string `json:"fieldType"`

	/* 解析类型。目前仅支持 regexp。  */
	ParserMode string `json:"parserMode"`

	/* 解析语法 (Optional) */
	ParserPattern *string `json:"parserPattern"`

	/* 日志样例 (Optional) */
	ParserSample *string `json:"parserSample"`
}

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 SearchFields added in v1.56.0

type SearchFields struct {

	/*  (Optional) */
	ContentFields []string `json:"contentFields"`

	/*  (Optional) */
	TagFields []TagFields `json:"tagFields"`
}

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 TagFields added in v1.56.0

type TagFields struct {

	/*  (Optional) */
	Tagk string `json:"tagk"`

	/*  (Optional) */
	Tagv interface{} `json:"tagv"`
}

type TagResource added in v1.56.0

type TagResource struct {

	/* 区域 (Optional) */
	Region *string `json:"region"`

	/* 标签 key (Optional) */
	TagKey *string `json:"tagKey"`

	/* 标签 value (Optional) */
	TagValue *string `json:"tagValue"`
}

type TagResourceEnd added in v1.56.0

type TagResourceEnd struct {

	/* 区域 (Optional) */
	Region string `json:"region"`

	/* 标签 key (Optional) */
	TagKey string `json:"tagKey"`

	/* 标签 value (Optional) */
	TagValue string `json:"tagValue"`
}

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) */
	DisableTable int64 `json:"disableTable"`

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

	/* 是否是特殊模式的系统日志 (Optional) */
	SpecialMode int64 `json:"specialMode"`
}

type TestMetricTaskSpec added in v1.13.0

type TestMetricTaskSpec struct {

	/* 聚合函数,支持 count sum max min avg; 配置方式(SettingType) 为 空或visual 时,必填; (Optional) */
	Aggregate string `json:"aggregate"`

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

	/* 查询字段,支持 英文字母 数字 下划线 中划线 点(中文日志原文和各产品线的key); 配置方式(SettingType) 为 空或visual 时,必填; (Optional) */
	DataField string `json:"dataField"`

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

	/* 是否打开过滤; 配置方式(SettingType) 为 空或visual 时,必填; (Optional) */
	FilterOpen string `json:"filterOpen"`

	/* 过滤类型,只能是fulltext和 advance; 配置方式(SettingType) 为 空或visual 时,必填; (Optional) */
	FilterType string `json:"filterType"`

	/* 监控项 , 支持大小写英文字母 下划线 数字 点,且不超过255byte(不支持中划线); 配置方式(SettingType) 为 空或visual 时,必填; (Optional) */
	Metric string `json:"metric"`

	/* 配置方式: 可选参数;枚举值 visual,sql;分别代表可视化配置及sql配置方式,传空表示可视化配置; (Optional) */
	SettingType string `json:"settingType"`

	/*  (Optional) */
	SqlSpec MetricTaskSqlSpec `json:"sqlSpec"`
}

type TestMultiLinesSpec added in v1.56.0

type TestMultiLinesSpec struct {

	/* 需要验证的多行日志 (Optional) */
	Content string `json:"content"`

	/* 首行正则表达式 (Optional) */
	RegexpStr string `json:"regexpStr"`
}

type TimestampRange

type TimestampRange struct {

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

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

type UpdateCollectInfoSpec added in v1.56.0

type UpdateCollectInfoSpec struct {

	/* 高可用组资源 (Optional) */
	AgResource []AgResource `json:"agResource"`

	/* 采集状态,0-禁用,1-启用  */
	Enabled bool `json:"enabled"`

	/* 过滤器是否启用。当appcode为custom时必填 (Optional) */
	FilterEnabled bool `json:"filterEnabled"`

	/* 自定义日志转发目的地, 只支持业务应用日志。支持类型:"kafka","es" (Optional) */
	LogCustomTarget string `json:"logCustomTarget"`

	/* 自定义日志转发目的地配置,KV 结构,具体配置参考 LogCustomTargetKafkaConf 和 LogCustomTargetEsConf (Optional) */
	LogCustomTargetConf interface{} `json:"logCustomTargetConf"`

	/* 日志文件名。当appcode为custom时为必填。日志文件名支持正则表达式。 (Optional) */
	LogFile string `json:"logFile"`

	/* 过滤器。设置过滤器后可根据用户设定的关键词采集部分日志,如仅采集 Error 的日志。目前最大允许5个。 (Optional) */
	LogFilters []string `json:"logFilters"`

	/* 日志路径。当appcode为custom时为必填。目前仅支持对 Linux 云主机上的日志进行采集,路径支持通配符“*”和“?”,文件路径应符合 Linux 的文件路径规则 (Optional) */
	LogPath string `json:"logPath"`

	/* 目的地是否是日志服务logtopic,只支持业务应用日志 (Optional) */
	LogtopicEnabled bool `json:"logtopicEnabled"`

	/* 首行正则 (Optional) */
	RegexpStr string `json:"regexpStr"`

	/* 采集资源时选择的模式,1.正常的选择实例模式(默认模式);2.选择标签tag模式 3.选择高可用组ag模式 (Optional) */
	ResourceMode int64 `json:"resourceMode"`

	/* 采集实例类型, 只能是 all/part  当选择all时,传入的实例列表无效  */
	ResourceType string `json:"resourceType"`

	/* 采集实例列表(存在上限限制) (Optional) */
	Resources []Resource `json:"resources"`

	/*  (Optional) */
	TagResource TagResource `json:"tagResource"`
}

type UpdateMetricTaskSpec added in v1.13.0

type UpdateMetricTaskSpec struct {

	/* 聚合函数,支持 count sum max min avg; 配置方式(SettingType) 为 空或visual 时,必填; (Optional) */
	Aggregate string `json:"aggregate"`

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

	/* 查询字段,支持 英文字母 数字 下划线 中划线 点(中文日志原文和各产品线的key); 配置方式(SettingType) 为 空或visual 时,必填; (Optional) */
	DataField string `json:"dataField"`

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

	/* 是否打开过滤; 配置方式(SettingType) 为 空或visual 时,必填; (Optional) */
	FilterOpen string `json:"filterOpen"`

	/* 过滤类型,只能是fulltext和 advance; 配置方式(SettingType) 为 空或visual 时,必填; (Optional) */
	FilterType string `json:"filterType"`

	/* 监控项 , 支持大小写英文字母 下划线 数字 点,且不超过255byte(不支持中划线); 配置方式(SettingType) 为 空或visual 时,必填; (Optional) */
	Metric string `json:"metric"`

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

	/* 配置方式: 可选参数;枚举值 visual,sql;分别代表可视化配置及sql配置方式,传空表示可视化配置; (Optional) */
	SettingType string `json:"settingType"`

	/*  (Optional) */
	SqlSpec MetricTaskSqlSpec `json:"sqlSpec"`

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

type UpdateParserSpec added in v1.56.0

type UpdateParserSpec struct {

	/*   */
	ParserFields []ParserField `json:"parserFields"`

	/* 解析类型。oneline - 单行,split - 分割, json - json, regexp - regexp  */
	ParserMode string `json:"parserMode"`

	/* 解析语法 (Optional) */
	ParserPattern string `json:"parserPattern"`

	/* 日志样例 (Optional) */
	ParserSample string `json:"parserSample"`

	/* 预处理任务列表。按照数组的顺序执行。 (Optional) */
	Pipelines []PipelineSpec `json:"pipelines"`
}

type UpdateSubscribeSpec added in v1.56.0

type UpdateSubscribeSpec struct {

	/* 日志订阅状态,0表示未创建,1表示刚创建,2表示开启,3表示关闭 (Optional) */
	Status int64 `json:"status"`
}

type ValidateParserEnd added in v1.56.0

type ValidateParserEnd struct {

	/*  (Optional) */
	Fields []ValidateParserFieldEnd `json:"fields"`
}

type ValidateParserFieldEnd added in v1.56.0

type ValidateParserFieldEnd struct {

	/*  (Optional) */
	FieldType string `json:"fieldType"`

	/*  (Optional) */
	FieldValue string `json:"fieldValue"`

	/*  (Optional) */
	Index int64 `json:"index"`

	/*  (Optional) */
	Name string `json:"name"`
}

type ValidateParserSpec added in v1.56.0

type ValidateParserSpec struct {

	/* 解析类型。oneline - 单行,split - 分割, json - json, regexp - regexp  */
	ParserMode string `json:"parserMode"`

	/* 解析语法 (Optional) */
	ParserPattern string `json:"parserPattern"`

	/* 日志样例 (Optional) */
	ParserSample string `json:"parserSample"`

	/* 预处理任务列表。按照数组的顺序执行。 (Optional) */
	Pipelines []PipelineSpec `json:"pipelines"`
}

Jump to

Keyboard shortcuts

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