Documentation ¶
Index ¶
- type LogsClient
- func (c *LogsClient) CreateCollectInfo(request *logs.CreateCollectInfoRequest) (*logs.CreateCollectInfoResponse, error)
- func (c *LogsClient) CreateLogset(request *logs.CreateLogsetRequest) (*logs.CreateLogsetResponse, error)
- func (c *LogsClient) CreateLogtopic(request *logs.CreateLogtopicRequest) (*logs.CreateLogtopicResponse, error)
- func (c *LogsClient) CreateMetricTask(request *logs.CreateMetricTaskRequest) (*logs.CreateMetricTaskResponse, error)
- func (c *LogsClient) DeleteLogset(request *logs.DeleteLogsetRequest) (*logs.DeleteLogsetResponse, error)
- func (c *LogsClient) DeleteLogtopic(request *logs.DeleteLogtopicRequest) (*logs.DeleteLogtopicResponse, error)
- func (c *LogsClient) DeleteMetricTask(request *logs.DeleteMetricTaskRequest) (*logs.DeleteMetricTaskResponse, error)
- func (c *LogsClient) DescribeCollectInfo(request *logs.DescribeCollectInfoRequest) (*logs.DescribeCollectInfoResponse, error)
- func (c *LogsClient) DescribeCollectResources(request *logs.DescribeCollectResourcesRequest) (*logs.DescribeCollectResourcesResponse, error)
- func (c *LogsClient) DescribeInstanceCollectConfs(request *logs.DescribeInstanceCollectConfsRequest) (*logs.DescribeInstanceCollectConfsResponse, error)
- func (c *LogsClient) DescribeLogdCA(request *logs.DescribeLogdCARequest) (*logs.DescribeLogdCAResponse, error)
- func (c *LogsClient) DescribeLogset(request *logs.DescribeLogsetRequest) (*logs.DescribeLogsetResponse, error)
- func (c *LogsClient) DescribeLogsets(request *logs.DescribeLogsetsRequest) (*logs.DescribeLogsetsResponse, error)
- func (c *LogsClient) DescribeLogtopic(request *logs.DescribeLogtopicRequest) (*logs.DescribeLogtopicResponse, error)
- func (c *LogsClient) DescribeLogtopics(request *logs.DescribeLogtopicsRequest) (*logs.DescribeLogtopicsResponse, error)
- func (c *LogsClient) DescribeMetricTask(request *logs.DescribeMetricTaskRequest) (*logs.DescribeMetricTaskResponse, error)
- func (c *LogsClient) DescribeMetricTasks(request *logs.DescribeMetricTasksRequest) (*logs.DescribeMetricTasksResponse, error)
- func (c *LogsClient) DisableLogger()
- func (c *LogsClient) Put(request *logs.PutRequest) (*logs.PutResponse, error)
- func (c *LogsClient) Search(request *logs.SearchRequest) (*logs.SearchResponse, error)
- func (c *LogsClient) SearchLogContext(request *logs.SearchLogContextRequest) (*logs.SearchLogContextResponse, error)
- func (c *LogsClient) SetConfig(config *core.Config)
- func (c *LogsClient) SetLogger(logger core.Logger)
- func (c *LogsClient) TestMetricTask(request *logs.TestMetricTaskRequest) (*logs.TestMetricTaskResponse, error)
- func (c *LogsClient) UpdateCollectInfo(request *logs.UpdateCollectInfoRequest) (*logs.UpdateCollectInfoResponse, error)
- func (c *LogsClient) UpdateCollectResources(request *logs.UpdateCollectResourcesRequest) (*logs.UpdateCollectResourcesResponse, error)
- func (c *LogsClient) UpdateLogset(request *logs.UpdateLogsetRequest) (*logs.UpdateLogsetResponse, error)
- func (c *LogsClient) UpdateLogtopic(request *logs.UpdateLogtopicRequest) (*logs.UpdateLogtopicResponse, error)
- func (c *LogsClient) UpdateMetricTask(request *logs.UpdateMetricTaskRequest) (*logs.UpdateMetricTaskResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogsClient ¶
type LogsClient struct {
core.JDCloudClient
}
func NewLogsClient ¶
func NewLogsClient(credential *core.Credential) *LogsClient
func (*LogsClient) CreateCollectInfo ¶ added in v1.11.0
func (c *LogsClient) CreateCollectInfo(request *logs.CreateCollectInfoRequest) (*logs.CreateCollectInfoResponse, error)
创建采集配置,支持基于云产品模板生成采集模板;支持用于自定义采集配置。
func (*LogsClient) CreateLogset ¶ added in v1.11.0
func (c *LogsClient) CreateLogset(request *logs.CreateLogsetRequest) (*logs.CreateLogsetResponse, error)
创建日志集。名称不可重复。
func (*LogsClient) CreateLogtopic ¶ added in v1.11.0
func (c *LogsClient) CreateLogtopic(request *logs.CreateLogtopicRequest) (*logs.CreateLogtopicResponse, error)
创建日志主题,不可与当前日志集下现有日志主题重名。
func (*LogsClient) CreateMetricTask ¶ added in v1.13.0
func (c *LogsClient) CreateMetricTask(request *logs.CreateMetricTaskRequest) (*logs.CreateMetricTaskResponse, error)
创建监控任务,不可与当前日志主题下现有日志监控任务重名。
func (*LogsClient) DeleteLogset ¶ added in v1.11.0
func (c *LogsClient) DeleteLogset(request *logs.DeleteLogsetRequest) (*logs.DeleteLogsetResponse, error)
删除日志集,删除多个日志集时,任意的日志集包含了日志主题的,将导致全部删除失败。
func (*LogsClient) DeleteLogtopic ¶ added in v1.11.0
func (c *LogsClient) DeleteLogtopic(request *logs.DeleteLogtopicRequest) (*logs.DeleteLogtopicResponse, error)
删除日志主题。其采集配置与采集实例配置将一并删除。
func (*LogsClient) DeleteMetricTask ¶ added in v1.13.0
func (c *LogsClient) DeleteMetricTask(request *logs.DeleteMetricTaskRequest) (*logs.DeleteMetricTaskResponse, error)
删除指定监控任务。
func (*LogsClient) DescribeCollectInfo ¶ added in v1.11.0
func (c *LogsClient) DescribeCollectInfo(request *logs.DescribeCollectInfoRequest) (*logs.DescribeCollectInfoResponse, error)
采集配置的基本信息。
func (*LogsClient) DescribeCollectResources ¶ added in v1.11.0
func (c *LogsClient) DescribeCollectResources(request *logs.DescribeCollectResourcesRequest) (*logs.DescribeCollectResourcesResponse, error)
查询采集配置的实例列表
func (*LogsClient) DescribeInstanceCollectConfs ¶
func (c *LogsClient) DescribeInstanceCollectConfs(request *logs.DescribeInstanceCollectConfsRequest) (*logs.DescribeInstanceCollectConfsResponse, error)
查询当前实例的采集配置列表:此接口会生成agent心跳监控数据,用以表征agent的可用性。请求中若添加了X-Jdcloud-Logs-md5的header,将按照md5的方式处理返回值。
func (*LogsClient) DescribeLogdCA ¶
func (c *LogsClient) DescribeLogdCA(request *logs.DescribeLogdCARequest) (*logs.DescribeLogdCAResponse, error)
返回特定有效期的证书
func (*LogsClient) DescribeLogset ¶ added in v1.11.0
func (c *LogsClient) DescribeLogset(request *logs.DescribeLogsetRequest) (*logs.DescribeLogsetResponse, error)
查询日志集详情。
func (*LogsClient) DescribeLogsets ¶ added in v1.11.0
func (c *LogsClient) DescribeLogsets(request *logs.DescribeLogsetsRequest) (*logs.DescribeLogsetsResponse, error)
查询日志集列表。支持按照名称进行模糊查询。结果中包含了该日志集是否存在日志主题的信息。存在日志主题的日志集不允许删除。
func (*LogsClient) DescribeLogtopic ¶ added in v1.11.0
func (c *LogsClient) DescribeLogtopic(request *logs.DescribeLogtopicRequest) (*logs.DescribeLogtopicResponse, error)
查询日志主题基本信息。如配置了采集配置,将返回采集配置的UID
func (*LogsClient) DescribeLogtopics ¶ added in v1.11.0
func (c *LogsClient) DescribeLogtopics(request *logs.DescribeLogtopicsRequest) (*logs.DescribeLogtopicsResponse, error)
查询日志主题列表,支持按照名称模糊查询。
func (*LogsClient) DescribeMetricTask ¶ added in v1.13.0
func (c *LogsClient) DescribeMetricTask(request *logs.DescribeMetricTaskRequest) (*logs.DescribeMetricTaskResponse, error)
查询指定监控任务的详情信息
func (*LogsClient) DescribeMetricTasks ¶ added in v1.13.0
func (c *LogsClient) DescribeMetricTasks(request *logs.DescribeMetricTasksRequest) (*logs.DescribeMetricTasksResponse, error)
查询监控任务列表,返回该主题下的所有监控任务信息。
func (*LogsClient) DisableLogger ¶ added in v1.13.0
func (c *LogsClient) DisableLogger()
func (*LogsClient) Put ¶
func (c *LogsClient) Put(request *logs.PutRequest) (*logs.PutResponse, error)
自定义日志上报。
func (*LogsClient) Search ¶ added in v1.13.0
func (c *LogsClient) Search(request *logs.SearchRequest) (*logs.SearchResponse, error)
搜索日志
func (*LogsClient) SearchLogContext ¶ added in v1.13.0
func (c *LogsClient) SearchLogContext(request *logs.SearchLogContextRequest) (*logs.SearchLogContextResponse, error)
搜索日志上下文
func (*LogsClient) SetConfig ¶
func (c *LogsClient) SetConfig(config *core.Config)
func (*LogsClient) SetLogger ¶
func (c *LogsClient) SetLogger(logger core.Logger)
func (*LogsClient) TestMetricTask ¶ added in v1.13.0
func (c *LogsClient) TestMetricTask(request *logs.TestMetricTaskRequest) (*logs.TestMetricTaskResponse, error)
日志测试,根据用户输入的日志筛选条件以及监控指标设置进行模拟监控统计
func (*LogsClient) UpdateCollectInfo ¶ added in v1.11.0
func (c *LogsClient) UpdateCollectInfo(request *logs.UpdateCollectInfoRequest) (*logs.UpdateCollectInfoResponse, error)
更新采集配置。若传入的实例列表不为空,将覆盖之前的所有实例,而非新增。
func (*LogsClient) UpdateCollectResources ¶ added in v1.11.0
func (c *LogsClient) UpdateCollectResources(request *logs.UpdateCollectResourcesRequest) (*logs.UpdateCollectResourcesResponse, error)
增量更新采集实例列表。更新的动作支持 add 、 remove
func (*LogsClient) UpdateLogset ¶ added in v1.11.0
func (c *LogsClient) UpdateLogset(request *logs.UpdateLogsetRequest) (*logs.UpdateLogsetResponse, error)
更新日志集。日志集名称不可更新。
func (*LogsClient) UpdateLogtopic ¶ added in v1.11.0
func (c *LogsClient) UpdateLogtopic(request *logs.UpdateLogtopicRequest) (*logs.UpdateLogtopicResponse, error)
更新日志主题。日志主题名称不可更新。
func (*LogsClient) UpdateMetricTask ¶ added in v1.13.0
func (c *LogsClient) UpdateMetricTask(request *logs.UpdateMetricTaskRequest) (*logs.UpdateMetricTaskResponse, error)
更新监控任务,日志监控任务不许重名。