public class Client extends java.lang.Object implements LogService
构造器和说明 |
---|
Client(java.lang.String endpoint,
java.lang.String accessId,
java.lang.String accessKey)
Construct the sls client with accessId, accessKey and server address, all
other parameters will be set to default value
|
Client(java.lang.String endpoint,
java.lang.String accessId,
java.lang.String accessKey,
java.lang.String SourceIp)
Construct the sls client with accessId, accessKey , server address and
client ip address, all other parameters will be set to default value
|
Client(java.lang.String endpoint,
java.lang.String accessId,
java.lang.String accessKey,
java.lang.String sourceIp,
boolean compressFlag)
Construct sls client with full parameters
|
限定符和类型 | 方法和说明 |
---|---|
ApplyConfigToMachineGroupResponse |
ApplyConfigToMachineGroup(ApplyConfigToMachineGroupRequest request)
Apply config to machine group
|
ApplyConfigToMachineGroupResponse |
ApplyConfigToMachineGroup(java.lang.String project,
java.lang.String groupName,
java.lang.String configName)
Apply config to machine group
|
BatchGetLogResponse |
BatchGetLog(BatchGetLogRequest request)
Batch get log
|
BatchGetLogResponse |
BatchGetLog(java.lang.String project,
java.lang.String logStore,
int shardId,
int count,
java.lang.String cursor)
Batch get log
|
CreateConfigResponse |
CreateConfig(CreateConfigRequest request)
Create logtail config
|
CreateConfigResponse |
CreateConfig(java.lang.String project,
Config config)
Create logtail config
|
CreateIndexResponse |
CreateIndex(CreateIndexRequest request)
create logstore index
|
CreateIndexResponse |
CreateIndex(java.lang.String project,
java.lang.String logStore,
Index index)
create logstore index
|
CreateLogStoreResponse |
CreateLogStore(CreateLogStoreRequest request)
create logstore
|
CreateLogStoreResponse |
CreateLogStore(java.lang.String project,
LogStore logStore)
create a logstore in a project
|
CreateMachineGroupResponse |
CreateMachineGroup(CreateMachineGroupRequest request)
Create machine group
|
CreateMachineGroupResponse |
CreateMachineGroup(java.lang.String project,
MachineGroup group)
Create machine group
|
DeleteConfigResponse |
DeleteConfig(DeleteConfigRequest request)
Delete logtail config
|
DeleteConfigResponse |
DeleteConfig(java.lang.String project,
java.lang.String configName)
Delete logtail config
|
DeleteIndexResponse |
DeleteIndex(DeleteIndexRequest request)
delete logstore index
|
DeleteIndexResponse |
DeleteIndex(java.lang.String project,
java.lang.String logStore)
delete logstore index
|
DeleteLogStoreResponse |
DeleteLogStore(DeleteLogStoreRequest request)
Delete logstore
|
DeleteLogStoreResponse |
DeleteLogStore(java.lang.String project,
java.lang.String logStoreName)
Delete the logstore
|
DeleteMachineGroupResponse |
DeleteMachineGroup(DeleteMachineGroupRequest request)
Delete machine group
|
DeleteMachineGroupResponse |
DeleteMachineGroup(java.lang.String project,
java.lang.String groupName)
Delete machine group
|
GetAppliedConfigResponse |
GetAppliedConfig(GetAppliedConfigsRequest request)
get applied config on a certain machine group
|
GetAppliedConfigResponse |
GetAppliedConfig(java.lang.String project,
java.lang.String groupName)
get applied config on a certain machine group
|
GetAppliedMachineGroupsResponse |
GetAppliedMachineGroups(GetAppliedMachineGroupRequest request)
get applied machine group for a certain logtail config
|
GetAppliedMachineGroupsResponse |
GetAppliedMachineGroups(java.lang.String project,
java.lang.String configName)
get applied machine group for a certain logtail config
|
GetConfigResponse |
GetConfig(GetConfigRequest request)
Get logtail config
|
GetConfigResponse |
GetConfig(java.lang.String project,
java.lang.String configName)
Get logtail config
|
GetCursorResponse |
GetCursor(GetCursorRequest request)
Get cursor from log service server
|
GetCursorResponse |
GetCursor(java.lang.String project,
java.lang.String logStream,
int shardId,
Consts.CursorMode mode)
Get cursor from log service server
|
GetCursorResponse |
GetCursor(java.lang.String project,
java.lang.String logStore,
int shardId,
java.util.Date fromTime)
Get cursor from log service server
|
GetCursorResponse |
GetCursor(java.lang.String project,
java.lang.String logStore,
int shardId,
long fromTime)
Get cursor from log service server
|
GetHistogramsResponse |
GetHistograms(GetHistogramsRequest request)
Get The log status(histogram info) from log service server which match input
parameters.
|
GetHistogramsResponse |
GetHistograms(java.lang.String project,
java.lang.String logStore,
int from,
int to,
java.lang.String topic,
java.lang.String query)
Get The log status(histogram info) from log service server which match input
parameters.
|
GetIndexResponse |
GetIndex(GetIndexRequest request)
Get logstore index config
|
GetIndexResponse |
GetIndex(java.lang.String project,
java.lang.String logStore)
Get logstore index config
|
GetLogsResponse |
GetLogs(GetLogsRequest request)
Get The sub set of logs data from log service server which match input
parameters.
|
GetLogsResponse |
GetLogs(java.lang.String project,
java.lang.String logStore,
int from,
int to,
java.lang.String topic,
java.lang.String query)
Get The sub set of logs data from log service server which match input
parameters.
|
GetLogsResponse |
GetLogs(java.lang.String project,
java.lang.String logStore,
int from,
int to,
java.lang.String topic,
java.lang.String query,
int line,
int offset,
boolean reverse)
Get The sub set of logs data from log service server which match input
parameters.
|
GetLogStoreResponse |
GetLogStore(GetLogStoreRequest request)
get the logstore config
|
GetLogStoreResponse |
GetLogStore(java.lang.String project,
java.lang.String logStoreName)
Get the logstore config
|
GetMachineGroupResponse |
GetMachineGroup(GetMachineGroupRequest request)
Get machine group
|
GetMachineGroupResponse |
GetMachineGroup(java.lang.String project,
java.lang.String groupName)
Get machine group
|
java.lang.String |
GetSecurityToken() |
ListACLResponse |
ListACL(ListACLRequest request)
List ACL
|
ListACLResponse |
ListACL(java.lang.String project)
List ACL
|
ListACLResponse |
ListACL(java.lang.String project,
int offSet,
int size)
List ACL
|
ListACLResponse |
ListACL(java.lang.String project,
java.lang.String logStore)
List ACL
|
ListACLResponse |
ListACL(java.lang.String project,
java.lang.String logStore,
int offSet,
int size)
List ACL
|
ListConfigResponse |
ListConfig(ListConfigRequest request)
List logtail configs
|
ListConfigResponse |
ListConfig(java.lang.String project)
List logtail configs
|
ListConfigResponse |
ListConfig(java.lang.String project,
int offSet,
int size)
List logtail configs
|
ListConfigResponse |
ListConfig(java.lang.String project,
java.lang.String configName,
int offSet,
int size)
List logtail configs
|
ListLogStoresResponse |
ListLogStores(ListLogStoresRequest request)
Get all the logstore of a project
|
ListLogStoresResponse |
ListLogStores(java.lang.String project,
int offset,
int size,
java.lang.String logstoreName)
Get all the logstore for the user
|
ListMachineGroupResponse |
ListMachineGroup(ListMachineGroupRequest request)
List machine groups
|
ListMachineGroupResponse |
ListMachineGroup(java.lang.String project)
List machine groups
|
ListMachineGroupResponse |
ListMachineGroup(java.lang.String project,
int offSet,
int size)
List machine groups
|
ListMachineGroupResponse |
ListMachineGroup(java.lang.String project,
java.lang.String groupName,
int offSet,
int size)
List machine groups
|
ListMachinesResponse |
ListMachines(java.lang.String project,
java.lang.String machineGroup,
int offset,
int size)
List the real machines in the machine group
|
ListShardResponse |
ListShard(ListShardRequest request)
Get the shards in the logtstore
|
ListShardResponse |
ListShard(java.lang.String project,
java.lang.String logStore)
Get the shards in the logtstore
|
ListTopicsResponse |
ListTopics(ListTopicsRequest request)
Get the topics in the logtstore
|
ListTopicsResponse |
ListTopics(java.lang.String project,
java.lang.String logStore,
java.lang.String token,
int line)
Get the topics in the logtstore
|
PutLogsResponse |
PutLogs(PutLogsRequest request)
Send Data to log service server
|
PutLogsResponse |
PutLogs(java.lang.String project,
java.lang.String logStore,
java.lang.String topic,
java.util.List<LogItem> logItems,
java.lang.String source)
Send Data to log service server
|
RemoveConfigFromMachineGroupResponse |
RemoveConfigFromMachineGroup(RemoveConfigFromMachineGroupRequest request)
Remove config from machine group
|
RemoveConfigFromMachineGroupResponse |
RemoveConfigFromMachineGroup(java.lang.String project,
java.lang.String groupName,
java.lang.String configName)
Remove config from machine group
|
void |
RemoveSecurityToken() |
void |
SetSecurityToken(java.lang.String securityToken) |
UpdateACLResponse |
UpdateACL(java.lang.String project,
ACL acl)
Update project ACL
|
UpdateACLResponse |
UpdateACL(java.lang.String project,
java.lang.String logStore,
ACL acl)
update log sotre acl
|
UpdateACLResponse |
UpdateACL(UpdateACLRequest request)
Update ACL
|
UpdateConfigResponse |
UpdateConfig(java.lang.String project,
Config config)
Update logtail config
|
UpdateConfigResponse |
UpdateConfig(UpdateConfigRequest request)
Update logtail config
|
UpdateIndexResponse |
UpdateIndex(java.lang.String project,
java.lang.String logStore,
Index index)
Update logstore index config
|
UpdateIndexResponse |
UpdateIndex(UpdateIndexRequest request)
update logstore index config
|
UpdateLogStoreResponse |
UpdateLogStore(java.lang.String project,
LogStore logStore)
Update log store config
|
UpdateLogStoreResponse |
UpdateLogStore(UpdateLogStoreRequest request)
Update logstore config
|
UpdateMachineGroupResponse |
UpdateMachineGroup(java.lang.String project,
MachineGroup group)
Update machine group
|
UpdateMachineGroupResponse |
UpdateMachineGroup(UpdateMachineGroupRequest request)
Update machine group
|
public Client(java.lang.String endpoint, java.lang.String accessId, java.lang.String accessKey)
endpoint
- the log service server addressaccessId
- aliyun accessIdaccessKey
- aliyun accessKeyjava.lang.NullPointerException
- if the input parameter is nulljava.lang.IllegalArgumentException
- if the input parameter is emptypublic Client(java.lang.String endpoint, java.lang.String accessId, java.lang.String accessKey, java.lang.String SourceIp)
endpoint
- the log service server addressaccessId
- aliyun accessIdaccessKey
- aliyun accessKeySourceIp
- client ip addressjava.lang.NullPointerException
- if the input parameter is nulljava.lang.IllegalArgumentException
- if the input parameter is emptypublic Client(java.lang.String endpoint, java.lang.String accessId, java.lang.String accessKey, java.lang.String sourceIp, boolean compressFlag)
endpoint
- the log service server addressaccessId
- aliyun accessIdaccessKey
- aliyun accessKeysourceIp
- client ip addresscompressFlag
- a flag to determine if the send data will compressed , default
is true ( data compressed)java.lang.NullPointerException
- if the input parameter is nulljava.lang.IllegalArgumentException
- if the input parameter is emptypublic java.lang.String GetSecurityToken()
public void SetSecurityToken(java.lang.String securityToken)
public void RemoveSecurityToken()
public GetHistogramsResponse GetHistograms(java.lang.String project, java.lang.String logStore, int from, int to, java.lang.String topic, java.lang.String query) throws LogException
LogService
GetHistograms
在接口中 LogService
project
- the project namelogStore
- the result data logstorefrom
- the begin time of the result data to getto
- the end time of the result data to gettopic
- the result data topicquery
- If the query is not empty, it will return the logs contain the
keys in query, if "all_hit" is contained in the query, only
the logs contains all the keys in query are matched logs,
other wise logs contain any key in query are matched logs.LogException
- if any error happen when get the data from log service serverpublic GetHistogramsResponse GetHistograms(GetHistogramsRequest request) throws LogException
LogService
GetHistograms
在接口中 LogService
request
- the get histogram requestLogException
- if any error happen when get the data from log service serverpublic PutLogsResponse PutLogs(java.lang.String project, java.lang.String logStore, java.lang.String topic, java.util.List<LogItem> logItems, java.lang.String source) throws LogException
LogService
PutLogs
在接口中 LogService
project
- the project namelogStore
- the log store where the source data should be puttopic
- source data topiclogItems
- the log data to sendsource
- the source of the data, if the source is empty, it will be
reset to the host ipLogException
- if any error happen when send data to the serverpublic PutLogsResponse PutLogs(PutLogsRequest request) throws LogException
LogService
PutLogs
在接口中 LogService
request
- the put log requestLogException
- if any error happen when send data to the serverpublic GetLogsResponse GetLogs(java.lang.String project, java.lang.String logStore, int from, int to, java.lang.String topic, java.lang.String query) throws LogException
LogService
GetLogs
在接口中 LogService
project
- the project namelogStore
- the result data logstorefrom
- the begin time of the result data to getto
- the end time of the result data to gettopic
- the result data topicquery
- If the query is not empty, it will return the logs contain the
keys in query, if "all_hit" is contained in the query, only
the logs contains all the keys in query are matched logs,
other wise logs contain any key in query are matched logsLogException
- if any error happen when get the data from log service serverpublic GetLogsResponse GetLogs(java.lang.String project, java.lang.String logStore, int from, int to, java.lang.String topic, java.lang.String query, int line, int offset, boolean reverse) throws LogException
LogService
GetLogs
在接口中 LogService
project
- the project namelogStore
- the result data logstorefrom
- the begin time of the result data to getto
- the end time of the result data to gettopic
- the result data topicquery
- If the query is not empty, it will return the logs contain the
keys in query, if "all_hit" is contained in the query, only
the logs contains all the keys in query are matched logs,
other wise logs contain any key in query are matched logs.line
- how many lines to get, the max lines is decided by the sls
backend serveroffset
- the start log index in all the matched logs.reverse
- a flag to determine the return data order, if reverse is set
to false, the return logs is ascending order by time, other
wise, it's descending orderLogException
- if any error happen when get the data from log service serverpublic GetLogsResponse GetLogs(GetLogsRequest request) throws LogException
LogService
GetLogs
在接口中 LogService
request
- the get logs requestLogException
- if any error happen when get the data from log service serverpublic ListLogStoresResponse ListLogStores(java.lang.String project, int offset, int size, java.lang.String logstoreName) throws LogException
LogService
ListLogStores
在接口中 LogService
project
- the project nameLogException
- if any error happen when get the data from log service serverpublic ListLogStoresResponse ListLogStores(ListLogStoresRequest request) throws LogException
LogService
ListLogStores
在接口中 LogService
request
- the list log store requestLogException
- if any error happen when get the data from log service serverpublic ListTopicsResponse ListTopics(java.lang.String project, java.lang.String logStore, java.lang.String token, int line) throws LogException
LogService
ListTopics
在接口中 LogService
project
- the project namelogStore
- where the topic belongs totoken
- all the returned topics are equal or larger than the given
token according to topics' lexicographical orderline
- the topic number from log service serverLogException
- if any error happen when get the data from log service serverpublic ListTopicsResponse ListTopics(ListTopicsRequest request) throws LogException
LogService
ListTopics
在接口中 LogService
request
- the list topics requestLogException
- if any error happen when get the data from log service serverpublic GetCursorResponse GetCursor(java.lang.String project, java.lang.String logStore, int shardId, long fromTime) throws LogException
LogService
GetCursor
在接口中 LogService
project
- the project namelogStore
- the log store nameshardId
- the shard where the cursor should be getfromTime
- the from time of log data in unix time stamp secLogException
- if any error happen when get cursor from the serverpublic GetCursorResponse GetCursor(java.lang.String project, java.lang.String logStore, int shardId, java.util.Date fromTime) throws LogException
LogService
GetCursor
在接口中 LogService
project
- the project namelogStore
- the log store nameshardId
- the shard where the cursor should be getfromTime
- the from time of log data in java DateLogException
- if any error happen when get cursor from the serverpublic GetCursorResponse GetCursor(java.lang.String project, java.lang.String logStream, int shardId, Consts.CursorMode mode) throws LogException
LogService
GetCursor
在接口中 LogService
project
- the project namelogStream
- the log store nameshardId
- the shard where the cursor should be getmode
- the mode to get cursor, include BEGIN and ENDLogException
- if any error happen when get cursor from the serverpublic GetCursorResponse GetCursor(GetCursorRequest request) throws LogException
LogService
GetCursor
在接口中 LogService
request
- the get cursor requestLogException
- if any error happen when get cursor from the serverpublic ListShardResponse ListShard(java.lang.String project, java.lang.String logStore) throws LogException
LogService
ListShard
在接口中 LogService
project
- the project namelogStore
- where the shard belongs toLogException
- if any error happen when get the data from log service serverpublic ListShardResponse ListShard(ListShardRequest request) throws LogException
LogService
ListShard
在接口中 LogService
request
- the get cursor requestLogException
- if any error happen when get the data from log service serverpublic BatchGetLogResponse BatchGetLog(java.lang.String project, java.lang.String logStore, int shardId, int count, java.lang.String cursor) throws LogException
LogService
BatchGetLog
在接口中 LogService
project
- the project namelogStore
- where the shard belongs toshardId
- the shard to batch get logcount
- the logrgroup numcursor
- the cursor to batch get logLogException
- if any error happen when get the data from log service serverpublic BatchGetLogResponse BatchGetLog(BatchGetLogRequest request) throws LogException
LogService
BatchGetLog
在接口中 LogService
request
- the batch get log requestLogException
- if any error happen when get the data from log service serverpublic CreateConfigResponse CreateConfig(java.lang.String project, Config config) throws LogException
LogService
CreateConfig
在接口中 LogService
project
- the project nameconfig
- the full config resourceLogException
- if any error happen when creating logtail configpublic CreateConfigResponse CreateConfig(CreateConfigRequest request) throws LogException
LogService
CreateConfig
在接口中 LogService
request
- the create config requestLogException
- if any error happen when creating logtail configpublic UpdateConfigResponse UpdateConfig(java.lang.String project, Config config) throws LogException
LogService
UpdateConfig
在接口中 LogService
project
- the project nameconfig
- the full config resourceLogException
- if any error happen when updating logtail configpublic UpdateConfigResponse UpdateConfig(UpdateConfigRequest request) throws LogException
LogService
UpdateConfig
在接口中 LogService
request
- the update config requestLogException
- if any error happen when updating logtail configpublic GetConfigResponse GetConfig(java.lang.String project, java.lang.String configName) throws LogException
LogService
GetConfig
在接口中 LogService
project
- the project nameconfigName
- the config nameLogException
- if any error happen when getting logtail configpublic GetConfigResponse GetConfig(GetConfigRequest request) throws LogException
LogService
GetConfig
在接口中 LogService
request
- the get config requestLogException
- if any error happen when getting logtail configpublic DeleteConfigResponse DeleteConfig(java.lang.String project, java.lang.String configName) throws LogException
LogService
DeleteConfig
在接口中 LogService
project
- the project nameconfigName
- the config nameLogException
- if any error happen when deleting logtail configpublic DeleteConfigResponse DeleteConfig(DeleteConfigRequest request) throws LogException
LogService
DeleteConfig
在接口中 LogService
request
- the delete config requestLogException
- if any error happen when deleting logtail configpublic ListConfigResponse ListConfig(java.lang.String project) throws LogException
LogService
ListConfig
在接口中 LogService
project
- the project nameLogException
- if any error happen when listing logtail configspublic ListConfigResponse ListConfig(java.lang.String project, int offSet, int size) throws LogException
LogService
ListConfig
在接口中 LogService
project
- the project nameoffSet
- the list offsetsize
- the query sizeLogException
- if any error happen when listing logtail configspublic ListConfigResponse ListConfig(java.lang.String project, java.lang.String configName, int offSet, int size) throws LogException
LogService
ListConfig
在接口中 LogService
project
- the project nameconfigName
- the config nameoffSet
- the list offsetsize
- the query sizeLogException
- if any error happen when listing logtail configspublic ListConfigResponse ListConfig(ListConfigRequest request) throws LogException
LogService
ListConfig
在接口中 LogService
request
- the list configs requestLogException
- if any error happen when listing logtail configspublic CreateMachineGroupResponse CreateMachineGroup(java.lang.String project, MachineGroup group) throws LogException
LogService
CreateMachineGroup
在接口中 LogService
project
- the project namegroup
- the full machine group resourceLogException
- if any error happen when creating machine grouppublic CreateMachineGroupResponse CreateMachineGroup(CreateMachineGroupRequest request) throws LogException
LogService
CreateMachineGroup
在接口中 LogService
request
- the create machine group requestLogException
- if any error happen when creating machine grouppublic UpdateMachineGroupResponse UpdateMachineGroup(java.lang.String project, MachineGroup group) throws LogException
LogService
UpdateMachineGroup
在接口中 LogService
project
- the project namegroup
- the full machine group resourceLogException
- if any error happen when updating machine grouppublic UpdateMachineGroupResponse UpdateMachineGroup(UpdateMachineGroupRequest request) throws LogException
LogService
UpdateMachineGroup
在接口中 LogService
request
- the update machine group requestLogException
- if any error happen when updating machine grouppublic GetAppliedConfigResponse GetAppliedConfig(java.lang.String project, java.lang.String groupName) throws LogException
LogService
GetAppliedConfig
在接口中 LogService
project
- the project namegroupName
- the machine group nameLogException
- if any error happen when get applied config configspublic GetAppliedConfigResponse GetAppliedConfig(GetAppliedConfigsRequest request) throws LogException
LogService
GetAppliedConfig
在接口中 LogService
request
- get applied config requestLogException
- if any error happen when get applied config configspublic GetAppliedMachineGroupsResponse GetAppliedMachineGroups(java.lang.String project, java.lang.String configName) throws LogException
LogService
GetAppliedMachineGroups
在接口中 LogService
project
- the project nameconfigName
- the config nameLogException
- if any error happen when get applied config configspublic GetAppliedMachineGroupsResponse GetAppliedMachineGroups(GetAppliedMachineGroupRequest request) throws LogException
LogService
GetAppliedMachineGroups
在接口中 LogService
request
- get applied machine group requestLogException
- if any error happen when get applied config configspublic GetMachineGroupResponse GetMachineGroup(java.lang.String project, java.lang.String groupName) throws LogException
LogService
GetMachineGroup
在接口中 LogService
project
- the project namegroupName
- the machine group nameLogException
- if any error happen when getting machine grouppublic GetMachineGroupResponse GetMachineGroup(GetMachineGroupRequest request) throws LogException
LogService
GetMachineGroup
在接口中 LogService
request
- the get machine group requestLogException
- if any error happen when getting machine grouppublic ListMachinesResponse ListMachines(java.lang.String project, java.lang.String machineGroup, int offset, int size) throws LogException
LogService
ListMachines
在接口中 LogService
project
- the project namemachineGroup
- the machine group nameoffset
- the offset in the machine groupsize
- the size to getLogException
- if any error happen when listing machinespublic DeleteMachineGroupResponse DeleteMachineGroup(java.lang.String project, java.lang.String groupName) throws LogException
LogService
DeleteMachineGroup
在接口中 LogService
project
- the project namegroupName
- the machine group nameLogException
- if any error happen when deleting machine grouppublic DeleteMachineGroupResponse DeleteMachineGroup(DeleteMachineGroupRequest request) throws LogException
LogService
DeleteMachineGroup
在接口中 LogService
request
- the delete machine group requestLogException
- if any error happen when deleting machine grouppublic ListMachineGroupResponse ListMachineGroup(java.lang.String project) throws LogException
LogService
ListMachineGroup
在接口中 LogService
project
- the project nameLogException
- if any error happen when listing machine groupspublic ListMachineGroupResponse ListMachineGroup(java.lang.String project, int offSet, int size) throws LogException
LogService
ListMachineGroup
在接口中 LogService
project
- the project nameoffSet
- the list offsetsize
- the query sizeLogException
- if any error happen when listing machine groupspublic ListMachineGroupResponse ListMachineGroup(java.lang.String project, java.lang.String groupName, int offSet, int size) throws LogException
LogService
ListMachineGroup
在接口中 LogService
project
- the project namegroupName
- the machine group nameoffSet
- the list offsetsize
- the query sizeLogException
- if any error happen when listing machine groupspublic ListMachineGroupResponse ListMachineGroup(ListMachineGroupRequest request) throws LogException
LogService
ListMachineGroup
在接口中 LogService
request
- the list machine groups requestLogException
- if any error happen when listing machine grouppublic ApplyConfigToMachineGroupResponse ApplyConfigToMachineGroup(java.lang.String project, java.lang.String groupName, java.lang.String configName) throws LogException
LogService
ApplyConfigToMachineGroup
在接口中 LogService
project
- the project namegroupName
- the machine group nameconfigName
- the logtail config nameLogException
- if any error happen when applying config to machine grouppublic ApplyConfigToMachineGroupResponse ApplyConfigToMachineGroup(ApplyConfigToMachineGroupRequest request) throws LogException
LogService
ApplyConfigToMachineGroup
在接口中 LogService
request
- apply config to machine group requestLogException
- if any error happen when applying config to machine grouppublic RemoveConfigFromMachineGroupResponse RemoveConfigFromMachineGroup(java.lang.String project, java.lang.String groupName, java.lang.String configName) throws LogException
LogService
RemoveConfigFromMachineGroup
在接口中 LogService
project
- the project namegroupName
- the machine group nameconfigName
- the logtail config nameLogException
- if any error happen when removing config from machine grouppublic RemoveConfigFromMachineGroupResponse RemoveConfigFromMachineGroup(RemoveConfigFromMachineGroupRequest request) throws LogException
LogService
RemoveConfigFromMachineGroup
在接口中 LogService
request
- remove config from machine group requestLogException
- if any error happen when removing config from machine grouppublic UpdateACLResponse UpdateACL(java.lang.String project, ACL acl) throws LogException
LogService
UpdateACL
在接口中 LogService
project
- the project nameacl
- the full acl resource with aclIdLogException
- if any error happen when updating aclpublic UpdateACLResponse UpdateACL(java.lang.String project, java.lang.String logStore, ACL acl) throws LogException
LogService
UpdateACL
在接口中 LogService
project
- project namelogStore
- log store nameacl
- acl configLogException
- if any error happenpublic UpdateACLResponse UpdateACL(UpdateACLRequest request) throws LogException
LogService
UpdateACL
在接口中 LogService
request
- the update acl requestLogException
- if any error happen when updating aclpublic ListACLResponse ListACL(java.lang.String project) throws LogException
LogService
ListACL
在接口中 LogService
project
- the project nameLogException
- if any error happen when listing aclpublic ListACLResponse ListACL(java.lang.String project, int offSet, int size) throws LogException
LogService
ListACL
在接口中 LogService
project
- the project nameoffSet
- the list offsetsize
- the query sizeLogException
- if any error happen when listing aclpublic ListACLResponse ListACL(java.lang.String project, java.lang.String logStore) throws LogException
LogService
ListACL
在接口中 LogService
project
- the project nameLogException
- if any error happen when listing aclpublic ListACLResponse ListACL(java.lang.String project, java.lang.String logStore, int offSet, int size) throws LogException
LogService
ListACL
在接口中 LogService
project
- the project nameoffSet
- the list offsetsize
- the query sizeLogException
- if any error happen when listing aclpublic ListACLResponse ListACL(ListACLRequest request) throws LogException
LogService
ListACL
在接口中 LogService
request
- the list acl requestLogException
- if any error happen when listing aclpublic CreateLogStoreResponse CreateLogStore(java.lang.String project, LogStore logStore) throws LogException
LogService
CreateLogStore
在接口中 LogService
project
- the project namelogStore
- the configLogException
- if any error happen when creasting logstorepublic CreateLogStoreResponse CreateLogStore(CreateLogStoreRequest request) throws LogException
LogService
CreateLogStore
在接口中 LogService
request
- logstore create requestLogException
- if any error happen when creasting logstorepublic DeleteLogStoreResponse DeleteLogStore(java.lang.String project, java.lang.String logStoreName) throws LogException
LogService
DeleteLogStore
在接口中 LogService
project
- the project namelogStoreName
- the lostore to deleteLogException
- if any error happen when deleting logstorepublic DeleteLogStoreResponse DeleteLogStore(DeleteLogStoreRequest request) throws LogException
LogService
DeleteLogStore
在接口中 LogService
request
- delete logstore requestLogException
- if any error happen when deleting logstorepublic UpdateLogStoreResponse UpdateLogStore(java.lang.String project, LogStore logStore) throws LogException
LogService
UpdateLogStore
在接口中 LogService
project
- the project namelogStore
- the logsotre configLogException
- if any error happen when updating logstorepublic UpdateLogStoreResponse UpdateLogStore(UpdateLogStoreRequest request) throws LogException
LogService
UpdateLogStore
在接口中 LogService
request
- update logstore requstLogException
- if any error happen when updating logstorepublic GetLogStoreResponse GetLogStore(java.lang.String project, java.lang.String logStoreName) throws LogException
LogService
GetLogStore
在接口中 LogService
project
- the project namelogStoreName
- the logstore nameLogException
- if any error happen when getting logstore configpublic GetLogStoreResponse GetLogStore(GetLogStoreRequest request) throws LogException
LogService
GetLogStore
在接口中 LogService
request
- the get logstore config requestLogException
- if any error happen when getting logstore configpublic CreateIndexResponse CreateIndex(java.lang.String project, java.lang.String logStore, Index index) throws LogException
LogService
CreateIndex
在接口中 LogService
project
- the project namelogStore
- the logstore nameindex
- logstore index configLogException
- if any error happen when creating indexpublic CreateIndexResponse CreateIndex(CreateIndexRequest request) throws LogException
LogService
CreateIndex
在接口中 LogService
request
- the create logstore index requestLogException
- if any error happen when creating indexpublic UpdateIndexResponse UpdateIndex(java.lang.String project, java.lang.String logStore, Index index) throws LogException
LogService
UpdateIndex
在接口中 LogService
project
- project namelogStore
- logstore nameindex
- logstore index configLogException
- if any error happen when updating logstore index configpublic UpdateIndexResponse UpdateIndex(UpdateIndexRequest request) throws LogException
LogService
UpdateIndex
在接口中 LogService
request
- update logstore index requestLogException
- if any error happen when update logstore index configpublic DeleteIndexResponse DeleteIndex(java.lang.String project, java.lang.String logStore) throws LogException
LogService
DeleteIndex
在接口中 LogService
project
- project namelogStore
- store nameLogException
- if any error happen when deleting logstore index configpublic DeleteIndexResponse DeleteIndex(DeleteIndexRequest request) throws LogException
LogService
DeleteIndex
在接口中 LogService
request
- delete logstore index configLogException
- if any error happen when deleting logstore index configpublic GetIndexResponse GetIndex(java.lang.String project, java.lang.String logStore) throws LogException
LogService
GetIndex
在接口中 LogService
project
- project namelogStore
- logstore nameLogException
- if any error happen when get index configpublic GetIndexResponse GetIndex(GetIndexRequest request) throws LogException
LogService
GetIndex
在接口中 LogService
request
- get logstore index requestLogException
- if any error happen when getting index config