Documentation ¶
Index ¶
- func GenReqDefForCreateLogDumpObs() *def.HttpRequestDef
- func GenReqDefForCreateLogGroup() *def.HttpRequestDef
- func GenReqDefForCreateLogStream() *def.HttpRequestDef
- func GenReqDefForDeleteLogGroup() *def.HttpRequestDef
- func GenReqDefForDeleteLogStream() *def.HttpRequestDef
- func GenReqDefForDisableLogCollection() *def.HttpRequestDef
- func GenReqDefForEnableLogCollection() *def.HttpRequestDef
- func GenReqDefForListLogGroups() *def.HttpRequestDef
- func GenReqDefForListLogStream() *def.HttpRequestDef
- func GenReqDefForListLogs() *def.HttpRequestDef
- func GenReqDefForListQueryStructuredLogs() *def.HttpRequestDef
- func GenReqDefForListStructuredLogsWithTimeRange() *def.HttpRequestDef
- func GenReqDefForUpdateLogGroup() *def.HttpRequestDef
- func LtsClientBuilder() *http_client.HcHttpClientBuilder
- type LtsClient
- func (c *LtsClient) CreateLogDumpObs(request *model.CreateLogDumpObsRequest) (*model.CreateLogDumpObsResponse, error)
- func (c *LtsClient) CreateLogGroup(request *model.CreateLogGroupRequest) (*model.CreateLogGroupResponse, error)
- func (c *LtsClient) CreateLogStream(request *model.CreateLogStreamRequest) (*model.CreateLogStreamResponse, error)
- func (c *LtsClient) DeleteLogGroup(request *model.DeleteLogGroupRequest) (*model.DeleteLogGroupResponse, error)
- func (c *LtsClient) DeleteLogStream(request *model.DeleteLogStreamRequest) (*model.DeleteLogStreamResponse, error)
- func (c *LtsClient) DisableLogCollection(request *model.DisableLogCollectionRequest) (*model.DisableLogCollectionResponse, error)
- func (c *LtsClient) EnableLogCollection(request *model.EnableLogCollectionRequest) (*model.EnableLogCollectionResponse, error)
- func (c *LtsClient) ListLogGroups(request *model.ListLogGroupsRequest) (*model.ListLogGroupsResponse, error)
- func (c *LtsClient) ListLogStream(request *model.ListLogStreamRequest) (*model.ListLogStreamResponse, error)
- func (c *LtsClient) ListLogs(request *model.ListLogsRequest) (*model.ListLogsResponse, error)
- func (c *LtsClient) ListQueryStructuredLogs(request *model.ListQueryStructuredLogsRequest) (*model.ListQueryStructuredLogsResponse, error)
- func (c *LtsClient) ListStructuredLogsWithTimeRange(request *model.ListStructuredLogsWithTimeRangeRequest) (*model.ListStructuredLogsWithTimeRangeResponse, error)
- func (c *LtsClient) UpdateLogGroup(request *model.UpdateLogGroupRequest) (*model.UpdateLogGroupResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenReqDefForCreateLogDumpObs ¶
func GenReqDefForCreateLogDumpObs() *def.HttpRequestDef
func GenReqDefForCreateLogGroup ¶
func GenReqDefForCreateLogGroup() *def.HttpRequestDef
func GenReqDefForCreateLogStream ¶
func GenReqDefForCreateLogStream() *def.HttpRequestDef
func GenReqDefForDeleteLogGroup ¶
func GenReqDefForDeleteLogGroup() *def.HttpRequestDef
func GenReqDefForDeleteLogStream ¶
func GenReqDefForDeleteLogStream() *def.HttpRequestDef
func GenReqDefForDisableLogCollection ¶
func GenReqDefForDisableLogCollection() *def.HttpRequestDef
func GenReqDefForEnableLogCollection ¶
func GenReqDefForEnableLogCollection() *def.HttpRequestDef
func GenReqDefForListLogGroups ¶
func GenReqDefForListLogGroups() *def.HttpRequestDef
func GenReqDefForListLogStream ¶
func GenReqDefForListLogStream() *def.HttpRequestDef
func GenReqDefForListLogs ¶ added in v0.0.51
func GenReqDefForListLogs() *def.HttpRequestDef
func GenReqDefForListQueryStructuredLogs ¶ added in v0.0.51
func GenReqDefForListQueryStructuredLogs() *def.HttpRequestDef
func GenReqDefForListStructuredLogsWithTimeRange ¶ added in v0.0.51
func GenReqDefForListStructuredLogsWithTimeRange() *def.HttpRequestDef
func GenReqDefForUpdateLogGroup ¶
func GenReqDefForUpdateLogGroup() *def.HttpRequestDef
func LtsClientBuilder ¶
func LtsClientBuilder() *http_client.HcHttpClientBuilder
Types ¶
type LtsClient ¶
type LtsClient struct {
HcClient *http_client.HcHttpClient
}
func NewLtsClient ¶
func NewLtsClient(hcClient *http_client.HcHttpClient) *LtsClient
func (*LtsClient) CreateLogDumpObs ¶
func (c *LtsClient) CreateLogDumpObs(request *model.CreateLogDumpObsRequest) (*model.CreateLogDumpObsResponse, error)
该接口用于将指定的一个或多个日志流的日志转储到OBS服务。
func (*LtsClient) CreateLogGroup ¶
func (c *LtsClient) CreateLogGroup(request *model.CreateLogGroupRequest) (*model.CreateLogGroupResponse, error)
该接口用于创建一个日志组
func (*LtsClient) CreateLogStream ¶
func (c *LtsClient) CreateLogStream(request *model.CreateLogStreamRequest) (*model.CreateLogStreamResponse, error)
该接口用于创建某个指定日志组下的日志流
func (*LtsClient) DeleteLogGroup ¶
func (c *LtsClient) DeleteLogGroup(request *model.DeleteLogGroupRequest) (*model.DeleteLogGroupResponse, error)
该接口用于删除指定日志组。当日志组中的日志流配置了日志转储,需要取消日志转储后才可删除。
func (*LtsClient) DeleteLogStream ¶
func (c *LtsClient) DeleteLogStream(request *model.DeleteLogStreamRequest) (*model.DeleteLogStreamResponse, error)
该接口用于删除指定日志组下的指定日志流。当该日志流配置了日志转储,需要取消日志转储后才可删除。
func (*LtsClient) DisableLogCollection ¶
func (c *LtsClient) DisableLogCollection(request *model.DisableLogCollectionRequest) (*model.DisableLogCollectionResponse, error)
该接口用于将超额采集日志功能关闭。
func (*LtsClient) EnableLogCollection ¶
func (c *LtsClient) EnableLogCollection(request *model.EnableLogCollectionRequest) (*model.EnableLogCollectionResponse, error)
该接口用于将超额采集日志功能打开。
func (*LtsClient) ListLogGroups ¶
func (c *LtsClient) ListLogGroups(request *model.ListLogGroupsRequest) (*model.ListLogGroupsResponse, error)
该接口用于查询账号下所有日志组。
func (*LtsClient) ListLogStream ¶
func (c *LtsClient) ListLogStream(request *model.ListLogStreamRequest) (*model.ListLogStreamResponse, error)
该接口用于查询指定日志组下的所有日志流信息。
func (*LtsClient) ListLogs ¶ added in v0.0.51
func (c *LtsClient) ListLogs(request *model.ListLogsRequest) (*model.ListLogsResponse, error)
该接口用于查询指定日志流下的日志内容。
func (*LtsClient) ListQueryStructuredLogs ¶ added in v0.0.51
func (c *LtsClient) ListQueryStructuredLogs(request *model.ListQueryStructuredLogsRequest) (*model.ListQueryStructuredLogsResponse, error)
该接口用于查询指定日志流下的结构化日志内容。
func (*LtsClient) ListStructuredLogsWithTimeRange ¶ added in v0.0.51
func (c *LtsClient) ListStructuredLogsWithTimeRange(request *model.ListStructuredLogsWithTimeRangeRequest) (*model.ListStructuredLogsWithTimeRangeResponse, error)
该接口用于查询指定日志流下的结构化日志内容(新版)。
func (*LtsClient) UpdateLogGroup ¶
func (c *LtsClient) UpdateLogGroup(request *model.UpdateLogGroupRequest) (*model.UpdateLogGroupResponse, error)
该接口用于修改指定日志组下的日志存储时长。
Click to show internal directories.
Click to hide internal directories.