Documentation ¶
Index ¶
- type ApiConfEnd
- type CollectConf
- type CollectInfoDetailEnd
- type CollectTempalteEnd
- type CreateMetricTaskSpec
- type CreateShipperSpec
- type CustomLogSearchOut
- type CustomLogSearchSpec
- type DateTimeRange
- type DescribeInstanceCollectConfsEnd
- type DescribeInstanceMetaEnd
- type DescribeLogdCAEnd
- type DescribeMetricTasksSpec
- type Entry
- type Erp
- type Err
- type Error
- type Field
- type Filter
- type LogsetEnd
- type LogtopicDetailEnd
- type Match
- type MetrictaskDetailEnd
- type Pair
- type Range
- type Resource
- type ResourceEnd
- type SearchLogContextSpec
- type ShipperEnd
- type ShipperTaskEnd
- type SimpleQuery
- type SimpleQueryItem
- type StartShippersSpec
- type StopShippersSpec
- type SysTemplateEnd
- type SystemLogContextSpec
- type SystemLogEnd
- type SystemLogHistorySpec
- type SystemLogResultData
- type SystemLogResultStatus
- type SystemLogResultTrace
- type TargetConf
- type TemplateEnd
- type TestMetricTaskSpec
- type TimestampRange
- type UpdateMetricTaskSpec
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 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 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 DescribeInstanceCollectConfsEnd ¶
type DescribeInstanceCollectConfsEnd struct { /* result (Optional) */ Result []CollectConf `json:"result"` }
type DescribeInstanceMetaEnd ¶
type DescribeLogdCAEnd ¶
type DescribeMetricTasksSpec ¶ added in v1.13.0
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 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 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 ResourceEnd ¶
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 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 TargetConf ¶
type TargetConf struct { /* 目的地 配置 */ TargetConf interface{} `json:"targetConf"` /* 转储目的地类型 0: oss, 目前只支持oss (Optional) */ TargetType int64 `json:"targetType"` }
type TemplateEnd ¶
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 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"` }
Source Files ¶
- ApiConfEnd.go
- CollectConf.go
- CollectInfoDetailEnd.go
- CollectTempalteEnd.go
- CreateMetricTaskSpec.go
- CreateShipperSpec.go
- CustomLogSearchOut.go
- CustomLogSearchSpec.go
- DateTimeRange.go
- DescribeInstanceCollectConfsEnd.go
- DescribeInstanceMetaEnd.go
- DescribeLogdCAEnd.go
- DescribeMetricTasksSpec.go
- Entry.go
- Erp.go
- Err.go
- Error.go
- Field.go
- Filter.go
- LogsetEnd.go
- LogtopicDetailEnd.go
- Match.go
- MetrictaskDetailEnd.go
- Pair.go
- Range.go
- Resource.go
- ResourceEnd.go
- SearchLogContextSpec.go
- ShipperEnd.go
- ShipperTaskEnd.go
- SimpleQuery.go
- SimpleQueryItem.go
- StartShippersSpec.go
- StopShippersSpec.go
- SysTemplateEnd.go
- SystemLogContextSpec.go
- SystemLogEnd.go
- SystemLogHistorySpec.go
- SystemLogResultData.go
- SystemLogResultStatus.go
- SystemLogResultTrace.go
- TargetConf.go
- TemplateEnd.go
- TestMetricTaskSpec.go
- TimestampRange.go
- UpdateMetricTaskSpec.go
Click to show internal directories.
Click to hide internal directories.