Documentation
¶
Index ¶
- type LogsClient
- func (c *LogsClient) DescribeInstanceCollectConfs(request *logs.DescribeInstanceCollectConfsRequest) (*logs.DescribeInstanceCollectConfsResponse, error)
- func (c *LogsClient) DescribeLogdCA(request *logs.DescribeLogdCARequest) (*logs.DescribeLogdCAResponse, error)
- func (c *LogsClient) Put(request *logs.PutRequest) (*logs.PutResponse, error)
- func (c *LogsClient) SetConfig(config *core.Config)
- func (c *LogsClient) SetLogger(logger core.Logger)
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) 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) Put ¶
func (c *LogsClient) Put(request *logs.PutRequest) (*logs.PutResponse, error)
自定义日志上报。
func (*LogsClient) SetConfig ¶
func (c *LogsClient) SetConfig(config *core.Config)
func (*LogsClient) SetLogger ¶
func (c *LogsClient) SetLogger(logger core.Logger)
Click to show internal directories.
Click to hide internal directories.