public class DefaultActionsClient extends BaseClient<ActionsHandler> implements ActionsClient
| Constructor and Description |
|---|
DefaultActionsClient(ClientInfo clientInfo) |
| Modifier and Type | Method and Description |
|---|---|
ClientResponse<org.hawkular.alerts.api.model.action.ActionDefinition> |
createAction(org.hawkular.alerts.api.model.action.ActionDefinition definition)
Create a new ActionDefinition.
|
ClientResponse<Empty> |
deleteAction(String actionPlugin,
String actionId)
Delete an existing ActionDefinition.
|
ClientResponse<Integer> |
deleteActionHistory(Long startTime,
Long endTime,
String actionPlugins,
String actionIds,
String alertIds,
String results)
Delete actions from history with optional filtering.
|
ClientResponse<Map<String,List<String>>> |
findActions()
Find all action ids grouped by plugin.
|
ClientResponse<List<String>> |
findActionsByPlugin(String actionPlugin)
Find all action ids of an specific action plugin.
|
ClientResponse<org.hawkular.alerts.api.model.action.ActionDefinition> |
getAction(String actionPlugin,
String actionId)
Get an existing action definition.
|
ClientResponse<List<org.hawkular.alerts.api.model.action.Action>> |
getActionHistory(Long startTime,
Long endTime,
String actionPlugins,
String actionIds,
String alertIds,
String results,
Boolean thin)
Get actions from history with optional filtering.
|
ClientResponse<org.hawkular.alerts.api.model.action.ActionDefinition> |
updateAction(org.hawkular.alerts.api.model.action.ActionDefinition definition)
Update an existing ActionDefinition.
|
collectionResolver, mapResolver, restApi, simpleResolverpublic DefaultActionsClient(ClientInfo clientInfo)
public ClientResponse<Map<String,List<String>>> findActions()
ActionsClientfindActions in interface ActionsClientpublic ClientResponse<org.hawkular.alerts.api.model.action.ActionDefinition> createAction(org.hawkular.alerts.api.model.action.ActionDefinition definition)
ActionsClientcreateAction in interface ActionsClientpublic ClientResponse<org.hawkular.alerts.api.model.action.ActionDefinition> updateAction(org.hawkular.alerts.api.model.action.ActionDefinition definition)
ActionsClientupdateAction in interface ActionsClientpublic ClientResponse<List<org.hawkular.alerts.api.model.action.Action>> getActionHistory(Long startTime, Long endTime, String actionPlugins, String actionIds, String alertIds, String results, Boolean thin)
ActionsClientgetActionHistory in interface ActionsClientpublic ClientResponse<Integer> deleteActionHistory(Long startTime, Long endTime, String actionPlugins, String actionIds, String alertIds, String results)
ActionsClientdeleteActionHistory in interface ActionsClientpublic ClientResponse<List<String>> findActionsByPlugin(String actionPlugin)
ActionsClientfindActionsByPlugin in interface ActionsClientpublic ClientResponse<Empty> deleteAction(String actionPlugin, String actionId)
ActionsClientdeleteAction in interface ActionsClientpublic ClientResponse<org.hawkular.alerts.api.model.action.ActionDefinition> getAction(String actionPlugin, String actionId)
ActionsClientgetAction in interface ActionsClientCopyright © 2015–2017 Red Hat, Inc.. All rights reserved.