public interface LogService
| 限定符和类型 | 方法和说明 |
|---|---|
ApplyConfigToMachineGroupResponse |
ApplyConfigToMachineGroup(ApplyConfigToMachineGroupRequest request)
Apply config to machine group
|
ApplyConfigToMachineGroupResponse |
ApplyConfigToMachineGroup(String project,
String groupName,
String configName)
Apply config to machine group
|
BatchGetLogResponse |
BatchGetLog(BatchGetLogRequest request)
Batch get log
|
BatchGetLogResponse |
BatchGetLog(String project,
String logStore,
int shardId,
int count,
String cursor)
Batch get log
|
CreateConfigResponse |
CreateConfig(CreateConfigRequest request)
Create logtail config
|
CreateConfigResponse |
CreateConfig(String project,
Config config)
Create logtail config
|
CreateConsumerGroupResponse |
CreateConsumerGroup(CreateConsumerGroupRequest request)
create logstore consumer group
|
CreateConsumerGroupResponse |
CreateConsumerGroup(String project,
String logStore,
ConsumerGroup consumerGroup)
create logstore consumer group
|
CreateIndexResponse |
CreateIndex(CreateIndexRequest request)
create logstore index
|
CreateIndexResponse |
CreateIndex(String project,
String logStore,
Index index)
create logstore index
|
CreateLogStoreResponse |
CreateLogStore(CreateLogStoreRequest request)
create logstore
|
CreateLogStoreResponse |
CreateLogStore(String project,
LogStore logStore)
create a logstore in a project
|
CreateMachineGroupResponse |
CreateMachineGroup(CreateMachineGroupRequest request)
Create machine group
|
CreateMachineGroupResponse |
CreateMachineGroup(String project,
MachineGroup group)
Create machine group
|
DeleteConfigResponse |
DeleteConfig(DeleteConfigRequest request)
Delete logtail config
|
DeleteConfigResponse |
DeleteConfig(String project,
String configName)
Delete logtail config
|
DeleteConsumerGroupResponse |
DeleteConsumerGroup(String project,
String logStore,
String consumerGroup)
delete logstore consumer group
|
DeleteIndexResponse |
DeleteIndex(DeleteIndexRequest request)
delete logstore index
|
DeleteIndexResponse |
DeleteIndex(String project,
String logStore)
delete logstore index
|
DeleteLogStoreResponse |
DeleteLogStore(DeleteLogStoreRequest request)
Delete logstore
|
DeleteLogStoreResponse |
DeleteLogStore(String project,
String logStoreName)
Delete the logstore
|
DeleteMachineGroupResponse |
DeleteMachineGroup(DeleteMachineGroupRequest request)
Delete machine group
|
DeleteMachineGroupResponse |
DeleteMachineGroup(String project,
String groupName)
Delete machine group
|
DeleteShardResponse |
DeleteShard(DeleteShardRequest request)
delete a readonly shard in the logtstore
|
DeleteShardResponse |
DeleteShard(String project,
String logStore,
int shardId)
delete a readonly shard in the logtstore
|
GetAppliedConfigResponse |
GetAppliedConfig(GetAppliedConfigsRequest request)
get applied config on a certain machine group
|
GetAppliedConfigResponse |
GetAppliedConfig(String project,
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(String project,
String configName)
get applied machine group for a certain logtail config
|
ConsumerGroupCheckPointResponse |
GetCheckPoint(String project,
String logStore,
String consumerGroup)
get all of the shard checkpoints in the consumer group
|
ConsumerGroupCheckPointResponse |
GetCheckPoint(String project,
String logStore,
String consumerGroup,
int shard)
get shard checkpoint in the consumer group
|
GetConfigResponse |
GetConfig(GetConfigRequest request)
Get logtail config
|
GetConfigResponse |
GetConfig(String project,
String configName)
Get logtail config
|
GetCursorResponse |
GetCursor(GetCursorRequest request)
Get cursor from log service server
|
GetCursorResponse |
GetCursor(String project,
String logStore,
int shardId,
Consts.CursorMode mode)
Get cursor from log service server
|
GetCursorResponse |
GetCursor(String project,
String logStore,
int shardId,
Date fromTime)
Get cursor from log service server
|
GetCursorResponse |
GetCursor(String project,
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(String project,
String logstore,
int from,
int to,
String topic,
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(String project,
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(String project,
String logStore,
int from,
int to,
String topic,
String query)
Get The sub set of logs data from log service server which match input
parameters.
|
GetLogsResponse |
GetLogs(String project,
String logStore,
int from,
int to,
String topic,
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(String project,
String logStoreName)
Get the logstore config
|
GetMachineGroupResponse |
GetMachineGroup(GetMachineGroupRequest request)
Get machine group
|
GetMachineGroupResponse |
GetMachineGroup(String project,
String groupName)
Get machine group
|
GetShipperTasksResponse |
GetShipperTasks(String project,
String logStore,
String shipperName,
int startTime,
int endTime,
String statusType,
int offset,
int size)
Get the tasks of a logstore shipper
|
ConsumerGroupHeartBeatResponse |
HeartBeat(String project,
String logStore,
String consumerGroup,
String consumer,
ArrayList<Integer> shards)
notify the server periodically to show that the consumer is still alive.
|
ListConfigResponse |
ListConfig(ListConfigRequest request)
List logtail configs
|
ListConfigResponse |
ListConfig(String project)
List logtail configs
|
ListConfigResponse |
ListConfig(String project,
int offSet,
int size)
List logtail configs
|
ListConfigResponse |
ListConfig(String project,
String configName,
int offSet,
int size)
List logtail configs
|
ListConsumerGroupResponse |
ListConsumerGroup(String project,
String logStore)
list logstore consumer groups
|
ListLogStoresResponse |
ListLogStores(ListLogStoresRequest request)
Get all the logstore of a project
|
ListLogStoresResponse |
ListLogStores(String project,
int offset,
int size,
String logstoreName)
Get all the logstore for the user
|
ListMachineGroupResponse |
ListMachineGroup(ListMachineGroupRequest request)
List machine groups
|
ListMachineGroupResponse |
ListMachineGroup(String project)
List machine groups
|
ListMachineGroupResponse |
ListMachineGroup(String project,
int offSet,
int size)
List machine groups
|
ListMachineGroupResponse |
ListMachineGroup(String project,
String groupName,
int offSet,
int size)
List machine groups
|
ListMachinesResponse |
ListMachines(String project,
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(String project,
String logStore)
Get the shards in the logtstore
|
ListShipperResponse |
ListShipper(String project,
String logStore)
List shipper of a logstore
|
ListTopicsResponse |
ListTopics(ListTopicsRequest request)
Get the topics in the logtstore
|
ListTopicsResponse |
ListTopics(String project,
String logStore,
String token,
int line)
Get the topics in the logtstore
|
ListShardResponse |
MergeShards(MergeShardsRequest request)
merge two readwrite shards in the logtstore
|
ListShardResponse |
MergeShards(String project,
String logStore,
int shardId)
merge two readwrite shards in the logtstore
|
PutLogsResponse |
PutLogs(PutLogsRequest request)
Send Data to log service server
|
PutLogsResponse |
PutLogs(String project,
String logStore,
String topic,
List<LogItem> logItems,
String source)
Send Data to log service server
|
RemoveConfigFromMachineGroupResponse |
RemoveConfigFromMachineGroup(RemoveConfigFromMachineGroupRequest request)
Remove config from machine group
|
RemoveConfigFromMachineGroupResponse |
RemoveConfigFromMachineGroup(String project,
String groupName,
String configName)
Remove config from machine group
|
RetryShipperTasksResponse |
RetryShipperTasks(String project,
String logStore,
String shipperName,
List<String> taskList)
retry the failed tasks, for every time it can only retry 10 task
|
ListShardResponse |
SplitShard(SplitShardRequest request)
split a readwrite shard in the logtstore
|
ListShardResponse |
SplitShard(String project,
String logStore,
int shardId,
String midHash)
split a readwrite shard in the logtstore
|
ConsumerGroupUpdateCheckPointResponse |
UpdateCheckPoint(String project,
String logStore,
String consumerGroup,
int shard,
String checkpoint)
update consume checkpoint
|
ConsumerGroupUpdateCheckPointResponse |
UpdateCheckPoint(String project,
String logStore,
String consumerGroup,
String consumer,
int shard,
String checkpoint)
update consume checkpoint
|
UpdateConfigResponse |
UpdateConfig(String project,
Config config)
Update logtail config
|
UpdateConfigResponse |
UpdateConfig(UpdateConfigRequest request)
Update logtail config
|
UpdateConsumerGroupResponse |
UpdateConsumerGroup(String project,
String logStore,
String consumerGroup,
boolean inOrder) |
UpdateConsumerGroupResponse |
UpdateConsumerGroup(String project,
String logStore,
String consumerGroup,
boolean inOrder,
int timeoutInSec)
update consumer group
|
UpdateConsumerGroupResponse |
UpdateConsumerGroup(String project,
String logStore,
String consumerGroup,
int timeoutInSec)
update consumer group
|
UpdateIndexResponse |
UpdateIndex(String project,
String logStore,
Index index)
Update logstore index config
|
UpdateIndexResponse |
UpdateIndex(UpdateIndexRequest request)
update logstore index config
|
UpdateLogStoreResponse |
UpdateLogStore(String project,
LogStore logStore)
Update log store config
|
UpdateLogStoreResponse |
UpdateLogStore(UpdateLogStoreRequest request)
Update logstore config
|
UpdateMachineGroupResponse |
UpdateMachineGroup(String project,
MachineGroup group)
Update machine group
|
UpdateMachineGroupResponse |
UpdateMachineGroup(UpdateMachineGroupRequest request)
Update machine group
|
GetHistogramsResponse GetHistograms(String project, String logstore, int from, int to, String topic, String query) throws LogException
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 serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logstore is emptyGetHistogramsResponse GetHistograms(GetHistogramsRequest request) throws LogException
request - the get histogram requestLogException - if any error happen when get the data from log service serverNullPointerException - if required paremter is nullGetLogsResponse GetLogs(String project, String logStore, int from, int to, String topic, String query) throws LogException
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 serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logstore is emptyGetLogsResponse GetLogs(String project, String logStore, int from, int to, String topic, String query, int line, int offset, boolean reverse) throws LogException
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 topicreverse - 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 orderline - how many lines to get, the max lines is decided by the sls
backend serveroffset - the start log index in all the matched logs.query - 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 serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logstore is emptyGetLogsResponse GetLogs(GetLogsRequest request) throws LogException
request - the get logs requestNullPointerException - if required paremter is nullLogException - if any error happen when get the data from log service serverListLogStoresResponse ListLogStores(String project, int offset, int size, String logstoreName) throws LogException
project - the project nameoffset - the begin offsetsize - the query logstore name countlogstoreName - part name of the logstore, only return the logstores which
contains the input nameLogException - if any error happen when get the data from log service serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logstore is emptyListLogStoresResponse ListLogStores(ListLogStoresRequest request) throws LogException
request - the list log store requestLogException - if any error happen when get the data from log service serverNullPointerException - if required paremter is nullListTopicsResponse ListTopics(String project, String logStore, String token, int line) throws LogException
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 serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logstore is emptyListTopicsResponse ListTopics(ListTopicsRequest request) throws LogException
request - the list topics requestLogException - if any error happen when get the data from log service serverNullPointerException - if required paremter is nullPutLogsResponse PutLogs(String project, String logStore, String topic, List<LogItem> logItems, String source) throws LogException
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 serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logstore is empty, or the logGroup log count
exceed 4096, or the total data size exceed 5MBPutLogsResponse PutLogs(PutLogsRequest request) throws LogException
request - the put log requestLogException - if any error happen when send data to the serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logstore is empty, or the logGroup log count
exceed 4096, or the total data size exceed 5MBGetCursorResponse GetCursor(String project, String logStore, int shardId, long fromTime) throws LogException
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 serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logStore is emptyGetCursorResponse GetCursor(String project, String logStore, int shardId, Date fromTime) throws LogException
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 serverNullPointerException - if any parameter is nullIllegalArgumentException - if any string argument in request is emptyGetCursorResponse GetCursor(String project, String logStore, int shardId, Consts.CursorMode mode) throws LogException
project - the project namelogStore - 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 serverNullPointerException - if any parameter is nullIllegalArgumentException - if any string argument in request is emptyGetCursorResponse GetCursor(GetCursorRequest request) throws LogException
request - the get cursor requestLogException - if any error happen when get cursor from the serverNullPointerException - if any parameter is nullIllegalArgumentException - if any string argument in request is emptyListShardResponse ListShard(String project, String logStore) throws LogException
project - the project namelogStore - where the shard belongs toLogException - if any error happen when get the data from log service serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logstore is emptyListShardResponse ListShard(ListShardRequest request) throws LogException
request - the get cursor requestLogException - if any error happen when get the data from log service serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logstore in request is emptyListShardResponse SplitShard(String project, String logStore, int shardId, String midHash) throws LogException
project - the project namelogStore - where the shard belongs toshardId - the shard id to splitmidHash - the middle md5 hash string to split the shardLogException - if any error happen when get the data from log service serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logstore in request is emptyListShardResponse SplitShard(SplitShardRequest request) throws LogException
request - split shard requestLogException - if any error happen when get the data from log service serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logstore in request is emptyListShardResponse MergeShards(String project, String logStore, int shardId) throws LogException
project - the project namelogStore - where the shard belongs toshardId - the shard id to merge with right adjacent shardLogException - if any error happen when get the data from log service serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logstore in request is emptyListShardResponse MergeShards(MergeShardsRequest request) throws LogException
request - the project nameLogException - if any error happen when get the data from log service serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logstore in request is emptyDeleteShardResponse DeleteShard(String project, String logStore, int shardId) throws LogException
project - the project namelogStore - where the shard belongs toshardId - the shard id to deleteLogException - if any error happen when get the data from log service serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logstore in request is emptyDeleteShardResponse DeleteShard(DeleteShardRequest request) throws LogException
request - delete shard requestLogException - if any error happen when get the data from log service serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logstore in request is emptyBatchGetLogResponse BatchGetLog(String project, String logStore, int shardId, int count, String cursor) throws LogException
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 serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logstore or cursor is emptyBatchGetLogResponse BatchGetLog(BatchGetLogRequest request) throws LogException
request - the batch get log requestLogException - if any error happen when get the data from log service serverNullPointerException - if any parameter is nullIllegalArgumentException - if project or logstore or cursor in request is emptyCreateConfigResponse CreateConfig(String project, Config config) throws LogException
project - the project nameconfig - the full config resourceLogException - if any error happen when creating logtail configNullPointerException - if config resource parameter is nullIllegalArgumentException - if any required string parameter is emptyCreateConfigResponse CreateConfig(CreateConfigRequest request) throws LogException
request - the create config requestLogException - if any error happen when creating logtail configNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyUpdateConfigResponse UpdateConfig(String project, Config config) throws LogException
project - the project nameconfig - the full config resourceLogException - if any error happen when updating logtail configNullPointerException - if any parameter is nullIllegalArgumentException - if any required string parameter is emptyUpdateConfigResponse UpdateConfig(UpdateConfigRequest request) throws LogException
request - the update config requestLogException - if any error happen when updating logtail configNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyGetConfigResponse GetConfig(String project, String configName) throws LogException
project - the project nameconfigName - the config nameLogException - if any error happen when getting logtail configNullPointerException - if any parameter is nullIllegalArgumentException - if configName is emptyGetConfigResponse GetConfig(GetConfigRequest request) throws LogException
request - the get config requestLogException - if any error happen when getting logtail configNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyDeleteConfigResponse DeleteConfig(String project, String configName) throws LogException
project - the project nameconfigName - the config nameLogException - if any error happen when deleting logtail configNullPointerException - if any parameter is nullIllegalArgumentException - if any required string parameter is emptyDeleteConfigResponse DeleteConfig(DeleteConfigRequest request) throws LogException
request - the delete config requestLogException - if any error happen when deleting logtail configNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyListConfigResponse ListConfig(String project) throws LogException
project - the project nameLogException - if any error happen when listing logtail configsNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyListConfigResponse ListConfig(String project, int offSet, int size) throws LogException
project - the project nameoffSet - the list offsetsize - the query sizeLogException - if any error happen when listing logtail configsNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyListConfigResponse ListConfig(String project, String configName, int offSet, int size) throws LogException
project - the project nameconfigName - the config nameoffSet - the list offsetsize - the query sizeLogException - if any error happen when listing logtail configsNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyListConfigResponse ListConfig(ListConfigRequest request) throws LogException
request - the list configs requestLogException - if any error happen when listing logtail configsNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyGetAppliedConfigResponse GetAppliedConfig(String project, String groupName) throws LogException
project - the project namegroupName - the machine group nameLogException - if any error happen when get applied config configsNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyGetAppliedConfigResponse GetAppliedConfig(GetAppliedConfigsRequest request) throws LogException
request - get applied config requestLogException - if any error happen when get applied config configsNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyGetAppliedMachineGroupsResponse GetAppliedMachineGroups(String project, String configName) throws LogException
project - the project nameconfigName - the config nameLogException - if any error happen when get applied config configsNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyGetAppliedMachineGroupsResponse GetAppliedMachineGroups(GetAppliedMachineGroupRequest request) throws LogException
request - get applied machine group requestLogException - if any error happen when get applied config configsNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyCreateMachineGroupResponse CreateMachineGroup(String project, MachineGroup group) throws LogException
project - the project namegroup - the full machine group resourceLogException - if any error happen when creating machine groupNullPointerException - if machine group resource parameter is nullIllegalArgumentException - if any required string parameter is emptyCreateMachineGroupResponse CreateMachineGroup(CreateMachineGroupRequest request) throws LogException
request - the create machine group requestLogException - if any error happen when creating machine groupNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyUpdateMachineGroupResponse UpdateMachineGroup(String project, MachineGroup group) throws LogException
project - the project namegroup - the full machine group resourceLogException - if any error happen when updating machine groupNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyUpdateMachineGroupResponse UpdateMachineGroup(UpdateMachineGroupRequest request) throws LogException
request - the update machine group requestLogException - if any error happen when updating machine groupNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyGetMachineGroupResponse GetMachineGroup(String project, String groupName) throws LogException
project - the project namegroupName - the machine group nameLogException - if any error happen when getting machine groupNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyGetMachineGroupResponse GetMachineGroup(GetMachineGroupRequest request) throws LogException
request - the get machine group requestLogException - if any error happen when getting machine groupNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyDeleteMachineGroupResponse DeleteMachineGroup(String project, String groupName) throws LogException
project - the project namegroupName - the machine group nameLogException - if any error happen when deleting machine groupNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyDeleteMachineGroupResponse DeleteMachineGroup(DeleteMachineGroupRequest request) throws LogException
request - the delete machine group requestLogException - if any error happen when deleting machine groupNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyListMachineGroupResponse ListMachineGroup(String project) throws LogException
project - the project nameLogException - if any error happen when listing machine groupsNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyListMachinesResponse ListMachines(String project, String machineGroup, int offset, int size) throws LogException
project - the project namemachineGroup - the machine group nameoffset - the offset in the machine groupsize - the size to getLogException - if any error happen when listing machinesNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyListMachineGroupResponse ListMachineGroup(String project, int offSet, int size) throws LogException
project - the project nameoffSet - the list offsetsize - the query sizeLogException - if any error happen when listing machine groupsNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyListMachineGroupResponse ListMachineGroup(String project, String groupName, int offSet, int size) throws LogException
project - the project namegroupName - the machine group nameoffSet - the list offsetsize - the query sizeLogException - if any error happen when listing machine groupsNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyListMachineGroupResponse ListMachineGroup(ListMachineGroupRequest request) throws LogException
request - the list machine groups requestLogException - if any error happen when listing machine groupNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyApplyConfigToMachineGroupResponse ApplyConfigToMachineGroup(String project, String groupName, String configName) throws LogException
project - the project namegroupName - the machine group nameconfigName - the logtail config nameLogException - if any error happen when applying config to machine groupNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyApplyConfigToMachineGroupResponse ApplyConfigToMachineGroup(ApplyConfigToMachineGroupRequest request) throws LogException
request - apply config to machine group requestLogException - if any error happen when applying config to machine groupNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyRemoveConfigFromMachineGroupResponse RemoveConfigFromMachineGroup(String project, String groupName, String configName) throws LogException
project - the project namegroupName - the machine group nameconfigName - the logtail config nameLogException - if any error happen when removing config from machine groupNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyRemoveConfigFromMachineGroupResponse RemoveConfigFromMachineGroup(RemoveConfigFromMachineGroupRequest request) throws LogException
request - remove config from machine group requestLogException - if any error happen when removing config from machine groupNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyCreateLogStoreResponse CreateLogStore(String project, LogStore logStore) throws LogException
project - the project namelogStore - the configLogException - if any error happen when creasting logstoreNullPointerException - if any parameter is nullIllegalArgumentException - if project is emptyCreateLogStoreResponse CreateLogStore(CreateLogStoreRequest request) throws LogException
request - logstore create requestLogException - if any error happen when creasting logstoreNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyUpdateLogStoreResponse UpdateLogStore(String project, LogStore logStore) throws LogException
project - the project namelogStore - the logsotre configLogException - if any error happen when updating logstoreNullPointerException - if any parameter is nullIllegalArgumentException - if project is emptyUpdateLogStoreResponse UpdateLogStore(UpdateLogStoreRequest request) throws LogException
request - update logstore requstLogException - if any error happen when updating logstoreNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyDeleteLogStoreResponse DeleteLogStore(String project, String logStoreName) throws LogException
project - the project namelogStoreName - the lostore to deleteLogException - if any error happen when deleting logstoreNullPointerException - if any parameter is nullIllegalArgumentException - if an param is emptyDeleteLogStoreResponse DeleteLogStore(DeleteLogStoreRequest request) throws LogException
request - delete logstore requestLogException - if any error happen when deleting logstoreNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyGetLogStoreResponse GetLogStore(String project, String logStoreName) throws LogException
project - the project namelogStoreName - the logstore nameLogException - if any error happen when getting logstore configNullPointerException - if any parameter is nullIllegalArgumentException - if any parameter is emptyGetLogStoreResponse GetLogStore(GetLogStoreRequest request) throws LogException
request - the get logstore config requestLogException - if any error happen when getting logstore configNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyCreateIndexResponse CreateIndex(String project, String logStore, Index index) throws LogException
project - the project namelogStore - the logstore nameindex - logstore index configLogException - if any error happen when creating indexNullPointerException - if the request is nullIllegalArgumentException - if any string paramter is emptyCreateIndexResponse CreateIndex(CreateIndexRequest request) throws LogException
request - the create logstore index requestLogException - if any error happen when creating indexNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyUpdateIndexResponse UpdateIndex(String project, String logStore, Index index) throws LogException
project - project namelogStore - logstore nameindex - logstore index configLogException - if any error happen when updating logstore index configNullPointerException - if any parameter is nullIllegalArgumentException - if any string parameter is emptyUpdateIndexResponse UpdateIndex(UpdateIndexRequest request) throws LogException
request - update logstore index requestLogException - if any error happen when update logstore index configNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyDeleteIndexResponse DeleteIndex(String project, String logStore) throws LogException
project - project namelogStore - store nameLogException - if any error happen when deleting logstore index configNullPointerException - if any parameter is nullIllegalArgumentException - if any string parameter is emptyDeleteIndexResponse DeleteIndex(DeleteIndexRequest request) throws LogException
request - delete logstore index configLogException - if any error happen when deleting logstore index configNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyGetIndexResponse GetIndex(String project, String logStore) throws LogException
project - project namelogStore - logstore nameLogException - if any error happen when get index configNullPointerException - if any parameter is nullIllegalArgumentException - if any string parameter is emptyGetIndexResponse GetIndex(GetIndexRequest request) throws LogException
request - get logstore index requestLogException - if any error happen when getting index configNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyCreateConsumerGroupResponse CreateConsumerGroup(CreateConsumerGroupRequest request) throws LogException
request - contains all of the parameters neededLogException - if any error happenedNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyCreateConsumerGroupResponse CreateConsumerGroup(String project, String logStore, ConsumerGroup consumerGroup) throws LogException
project - project namelogStore - logstore nameconsumerGroup - contains all of the parameters needed by consumer groupLogException - if any error happenedNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyDeleteConsumerGroupResponse DeleteConsumerGroup(String project, String logStore, String consumerGroup) throws LogException
project - project namelogStore - logstore nameconsumerGroup - consumer group nameLogException - if any error happenedNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyListConsumerGroupResponse ListConsumerGroup(String project, String logStore) throws LogException
project - project namelogStore - logstore nameLogException - if any error happenedNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyUpdateConsumerGroupResponse UpdateConsumerGroup(String project, String logStore, String consumerGroup, boolean inOrder, int timeoutInSec) throws LogException
project - project namelogStore - logstore nameconsumerGroup - consumer group nameinOrder - consume data in oder or nottimeoutInSec - if the time interval of a consumer's heartbeat exceed this
value in second, the consumer will be deleted.LogException - if any error happenedNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyUpdateConsumerGroupResponse UpdateConsumerGroup(String project, String logStore, String consumerGroup, boolean inOrder) throws LogException
LogExceptionUpdateConsumerGroupResponse UpdateConsumerGroup(String project, String logStore, String consumerGroup, int timeoutInSec) throws LogException
project - project namelogStore - logstore nameconsumerGroup - consumer group nametimeoutInSec - if the time interval of a consumer's heartbeat exceed this
value in second, the consumer will be deleted.LogException - if any error happenedNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyConsumerGroupUpdateCheckPointResponse UpdateCheckPoint(String project, String logStore, String consumerGroup, String consumer, int shard, String checkpoint) throws LogException
project - project namelogStore - logstore nameconsumerGroup - consumer group nameconsumer - consumer nameshard - shard idcheckpoint - shard cursorLogException - if any error happenedNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyConsumerGroupUpdateCheckPointResponse UpdateCheckPoint(String project, String logStore, String consumerGroup, int shard, String checkpoint) throws LogException
project - project namelogStore - logstore nameconsumerGroup - consumer group nameshard - shard idcheckpoint - shard cursorLogException - if any error happenedNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyConsumerGroupHeartBeatResponse HeartBeat(String project, String logStore, String consumerGroup, String consumer, ArrayList<Integer> shards) throws LogException
project - project namelogStore - logstore nameconsumerGroup - consumer group nameconsumer - consumer nameshards - shards hold by the consumerLogException - if any error happenedNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyConsumerGroupCheckPointResponse GetCheckPoint(String project, String logStore, String consumerGroup, int shard) throws LogException
project - project namelogStore - logstore nameconsumerGroup - consumer group nameshard - shard idLogException - if any error happenedNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyConsumerGroupCheckPointResponse GetCheckPoint(String project, String logStore, String consumerGroup) throws LogException
project - project namelogStore - logstore nameconsumerGroup - consumer group nameLogException - if any error happenedNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyListShipperResponse ListShipper(String project, String logStore) throws LogException
project - project namelogStore - logstore nameLogException - if any error happenedNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyGetShipperTasksResponse GetShipperTasks(String project, String logStore, String shipperName, int startTime, int endTime, String statusType, int offset, int size) throws LogException
project - project namelogStore - logstore nameshipperName - shipper namestartTime - the start time in timestamp (from 1970.1.1)endTime - the end timestatusType - one of ['', 'success', 'running', 'fail'], if statusType is
'', return all tasksoffset - the offsetsize - the task countLogException - if any error happenedNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyRetryShipperTasksResponse RetryShipperTasks(String project, String logStore, String shipperName, List<String> taskList) throws LogException
project - project namelogStore - logstore nameshipperName - shipper nametaskList - failed task id listLogException - if any error happenedNullPointerException - if required paremter is nullIllegalArgumentException - if any required string parameter is emptyCopyright © 2016. All Rights Reserved.