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) CreateParser(request *logs.CreateParserRequest) (*logs.CreateParserResponse, error)
- func (c *LogsClient) CreateSubscribe(request *logs.CreateSubscribeRequest) (*logs.CreateSubscribeResponse, 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) 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) DescribeParser(request *logs.DescribeParserRequest) (*logs.DescribeParserResponse, error)
- func (c *LogsClient) DescribeSubscribe(request *logs.DescribeSubscribeRequest) (*logs.DescribeSubscribeResponse, error)
- func (c *LogsClient) DisableLogger()
- func (c *LogsClient) GetLogs(request *logs.GetLogsRequest) (*logs.GetLogsResponse, error)
- func (c *LogsClient) Histograms(request *logs.HistogramsRequest) (*logs.HistogramsResponse, error)
- func (c *LogsClient) Search(request *logs.SearchRequest) (*logs.SearchResponse, 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)
- func (c *LogsClient) UpdateParser(request *logs.UpdateParserRequest) (*logs.UpdateParserResponse, error)
- func (c *LogsClient) UpdateSubscribe(request *logs.UpdateSubscribeRequest) (*logs.UpdateSubscribeResponse, error)
- func (c *LogsClient) ValidateParser(request *logs.ValidateParserRequest) (*logs.ValidateParserResponse, 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 ¶
func (c *LogsClient) CreateCollectInfo(request *logs.CreateCollectInfoRequest) (*logs.CreateCollectInfoResponse, error)
创建采集配置,支持基于云产品模板生成采集模板;支持用于自定义采集配置。
func (*LogsClient) CreateLogset ¶
func (c *LogsClient) CreateLogset(request *logs.CreateLogsetRequest) (*logs.CreateLogsetResponse, error)
创建日志集。名称不可重复。
func (*LogsClient) CreateLogtopic ¶
func (c *LogsClient) CreateLogtopic(request *logs.CreateLogtopicRequest) (*logs.CreateLogtopicResponse, error)
创建日志主题,不可与当前日志集下现有日志主题重名。
func (*LogsClient) CreateMetricTask ¶
func (c *LogsClient) CreateMetricTask(request *logs.CreateMetricTaskRequest) (*logs.CreateMetricTaskResponse, error)
创建监控任务,不可与当前日志主题下现有日志监控任务重名。
func (*LogsClient) CreateParser ¶
func (c *LogsClient) CreateParser(request *logs.CreateParserRequest) (*logs.CreateParserResponse, error)
创建日志的解析配置。
func (*LogsClient) CreateSubscribe ¶
func (c *LogsClient) CreateSubscribe(request *logs.CreateSubscribeRequest) (*logs.CreateSubscribeResponse, error)
创建日志消费
func (*LogsClient) DeleteLogset ¶
func (c *LogsClient) DeleteLogset(request *logs.DeleteLogsetRequest) (*logs.DeleteLogsetResponse, error)
删除日志集,删除多个日志集时,任意的日志集包含了日志主题的,将导致全部删除失败。
func (*LogsClient) DeleteLogtopic ¶
func (c *LogsClient) DeleteLogtopic(request *logs.DeleteLogtopicRequest) (*logs.DeleteLogtopicResponse, error)
删除日志主题。其采集配置与采集实例配置将一并删除。
func (*LogsClient) DeleteMetricTask ¶
func (c *LogsClient) DeleteMetricTask(request *logs.DeleteMetricTaskRequest) (*logs.DeleteMetricTaskResponse, error)
删除指定监控任务。
func (*LogsClient) DescribeCollectInfo ¶
func (c *LogsClient) DescribeCollectInfo(request *logs.DescribeCollectInfoRequest) (*logs.DescribeCollectInfoResponse, error)
采集配置的基本信息。
func (*LogsClient) DescribeCollectResources ¶
func (c *LogsClient) DescribeCollectResources(request *logs.DescribeCollectResourcesRequest) (*logs.DescribeCollectResourcesResponse, error)
查询采集配置的实例列表
func (*LogsClient) DescribeLogset ¶
func (c *LogsClient) DescribeLogset(request *logs.DescribeLogsetRequest) (*logs.DescribeLogsetResponse, error)
查询日志集详情。
func (*LogsClient) DescribeLogsets ¶
func (c *LogsClient) DescribeLogsets(request *logs.DescribeLogsetsRequest) (*logs.DescribeLogsetsResponse, error)
查询日志集列表。支持按照名称进行模糊查询。结果中包含了该日志集是否存在日志主题的信息。存在日志主题的日志集不允许删除。
func (*LogsClient) DescribeLogtopic ¶
func (c *LogsClient) DescribeLogtopic(request *logs.DescribeLogtopicRequest) (*logs.DescribeLogtopicResponse, error)
查询日志主题基本信息。如配置了采集配置,将返回采集配置的UID
func (*LogsClient) DescribeLogtopics ¶
func (c *LogsClient) DescribeLogtopics(request *logs.DescribeLogtopicsRequest) (*logs.DescribeLogtopicsResponse, error)
查询日志主题列表,支持按照名称模糊查询。
func (*LogsClient) DescribeMetricTask ¶
func (c *LogsClient) DescribeMetricTask(request *logs.DescribeMetricTaskRequest) (*logs.DescribeMetricTaskResponse, error)
查询指定监控任务的详情信息
func (*LogsClient) DescribeMetricTasks ¶
func (c *LogsClient) DescribeMetricTasks(request *logs.DescribeMetricTasksRequest) (*logs.DescribeMetricTasksResponse, error)
查询监控任务列表,返回该主题下的所有监控任务信息。
func (*LogsClient) DescribeParser ¶
func (c *LogsClient) DescribeParser(request *logs.DescribeParserRequest) (*logs.DescribeParserResponse, error)
获取解析配置
func (*LogsClient) DescribeSubscribe ¶
func (c *LogsClient) DescribeSubscribe(request *logs.DescribeSubscribeRequest) (*logs.DescribeSubscribeResponse, error)
日志消费信息
func (*LogsClient) DisableLogger ¶
func (c *LogsClient) DisableLogger()
func (*LogsClient) GetLogs ¶
func (c *LogsClient) GetLogs(request *logs.GetLogsRequest) (*logs.GetLogsResponse, error)
扫描日志
func (*LogsClient) Histograms ¶
func (c *LogsClient) Histograms(request *logs.HistogramsRequest) (*logs.HistogramsResponse, error)
日志检索结果直方图
func (*LogsClient) Search ¶
func (c *LogsClient) Search(request *logs.SearchRequest) (*logs.SearchResponse, error)
搜索日志
func (*LogsClient) SetConfig ¶
func (c *LogsClient) SetConfig(config *core.Config)
func (*LogsClient) SetLogger ¶
func (c *LogsClient) SetLogger(logger core.Logger)
func (*LogsClient) TestMetricTask ¶
func (c *LogsClient) TestMetricTask(request *logs.TestMetricTaskRequest) (*logs.TestMetricTaskResponse, error)
日志测试,根据用户输入的日志筛选条件以及监控指标设置进行模拟监控统计
func (*LogsClient) UpdateCollectInfo ¶
func (c *LogsClient) UpdateCollectInfo(request *logs.UpdateCollectInfoRequest) (*logs.UpdateCollectInfoResponse, error)
更新采集配置。若传入的实例列表不为空,将覆盖之前的所有实例,而非新增。
func (*LogsClient) UpdateCollectResources ¶
func (c *LogsClient) UpdateCollectResources(request *logs.UpdateCollectResourcesRequest) (*logs.UpdateCollectResourcesResponse, error)
增量更新采集实例列表。更新的动作支持 add 、 remove
func (*LogsClient) UpdateLogset ¶
func (c *LogsClient) UpdateLogset(request *logs.UpdateLogsetRequest) (*logs.UpdateLogsetResponse, error)
更新日志集。日志集名称不可更新。
func (*LogsClient) UpdateLogtopic ¶
func (c *LogsClient) UpdateLogtopic(request *logs.UpdateLogtopicRequest) (*logs.UpdateLogtopicResponse, error)
更新日志主题。日志主题名称不可更新。
func (*LogsClient) UpdateMetricTask ¶
func (c *LogsClient) UpdateMetricTask(request *logs.UpdateMetricTaskRequest) (*logs.UpdateMetricTaskResponse, error)
更新监控任务,日志监控任务不许重名。
func (*LogsClient) UpdateParser ¶
func (c *LogsClient) UpdateParser(request *logs.UpdateParserRequest) (*logs.UpdateParserResponse, error)
更新解析配置
func (*LogsClient) UpdateSubscribe ¶
func (c *LogsClient) UpdateSubscribe(request *logs.UpdateSubscribeRequest) (*logs.UpdateSubscribeResponse, error)
更新日志消费
func (*LogsClient) ValidateParser ¶
func (c *LogsClient) ValidateParser(request *logs.ValidateParserRequest) (*logs.ValidateParserResponse, error)
验证日志解析语法
Click to show internal directories.
Click to hide internal directories.