@Path(value="/actions") public class ActionsHandler extends Object
| Constructor and Description |
|---|
ActionsHandler() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
createAction(Map<String,String> actionProperties) |
javax.ws.rs.core.Response |
deleteAction(String actionPlugin,
String actionId) |
javax.ws.rs.core.Response |
deleteActionsHistory(Long startTime,
Long endTime,
String actionPlugins,
String actionIds,
String alertIds,
String results) |
javax.ws.rs.core.Response |
findActions() |
javax.ws.rs.core.Response |
findActionsByPlugin(String actionPlugin) |
javax.ws.rs.core.Response |
findActionsHistory(Long startTime,
Long endTime,
String actionPlugins,
String actionIds,
String alertIds,
String results,
Boolean thin,
javax.ws.rs.core.UriInfo uri) |
javax.ws.rs.core.Response |
getAction(String actionPlugin,
String actionId) |
javax.ws.rs.core.Response |
updateAction(String actionPlugin,
String actionId,
Map<String,String> actionProperties) |
@GET @Path(value="/") @Produces(value="application/json") public javax.ws.rs.core.Response findActions()
@GET
@Path(value="/plugin/{actionPlugin}")
@Produces(value="application/json")
public javax.ws.rs.core.Response findActionsByPlugin(@PathParam(value="actionPlugin")
String actionPlugin)
@POST @Path(value="/") @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response createAction(Map<String,String> actionProperties)
@GET
@Path(value="/{actionPlugin}/{actionId}")
@Produces(value="application/json")
public javax.ws.rs.core.Response getAction(@PathParam(value="actionPlugin")
String actionPlugin,
@PathParam(value="actionId")
String actionId)
@PUT
@Path(value="/{actionPlugin}/{actionId}")
@Consumes(value="application/json")
public javax.ws.rs.core.Response updateAction(@PathParam(value="actionPlugin")
String actionPlugin,
@PathParam(value="actionId")
String actionId,
Map<String,String> actionProperties)
@DELETE
@Path(value="/{actionPlugin}/{actionId}")
public javax.ws.rs.core.Response deleteAction(@PathParam(value="actionPlugin")
String actionPlugin,
@PathParam(value="actionId")
String actionId)
@GET
@Path(value="/history")
@Produces(value="application/json")
public javax.ws.rs.core.Response findActionsHistory(@QueryParam(value="startTime")
Long startTime,
@QueryParam(value="endTime")
Long endTime,
@QueryParam(value="actionPlugins")
String actionPlugins,
@QueryParam(value="actionIds")
String actionIds,
@QueryParam(value="alertIds")
String alertIds,
@QueryParam(value="results")
String results,
@QueryParam(value="thin")
Boolean thin,
@Context
javax.ws.rs.core.UriInfo uri)
@PUT
@Path(value="/history/delete")
@Produces(value="application/json")
public javax.ws.rs.core.Response deleteActionsHistory(@QueryParam(value="startTime")
Long startTime,
@QueryParam(value="endTime")
Long endTime,
@QueryParam(value="actionPlugins")
String actionPlugins,
@QueryParam(value="actionIds")
String actionIds,
@QueryParam(value="alertIds")
String alertIds,
@QueryParam(value="results")
String results)
Copyright © 2015 Red Hat, Inc.. All rights reserved.