@HTTPService(name="alerts") public class AlertService extends java.lang.Object
Constructor and Description |
---|
AlertService() |
Modifier and Type | Method and Description |
---|---|
core.tut.pori.http.Response |
addAlert(core.tut.pori.http.parameters.AuthenticationParameter authenticatedUser,
core.tut.pori.http.parameters.LongParameter alertGroupId,
core.tut.pori.http.parameters.InputStreamParameter xml) |
core.tut.pori.http.Response |
createFile(core.tut.pori.http.parameters.AuthenticationParameter authenticatedUser,
core.tut.pori.http.parameters.InputStreamParameter file) |
core.tut.pori.http.Response |
getAlerts(core.tut.pori.http.parameters.AuthenticationParameter authenticatedUser,
core.tut.pori.http.parameters.LongParameter alertGroupIdFilter,
core.tut.pori.http.parameters.StringParameter alertTypeFilter,
core.tut.pori.http.parameters.DateIntervalParameter createdFilter,
core.tut.pori.http.parameters.DataGroups dataGroups,
LocationParameter location,
core.tut.pori.http.parameters.DoubleParameter range,
core.tut.pori.http.parameters.Limits limits) |
public AlertService()
@HTTPServiceMethod(name="getAlerts", acceptedMethods="GET") public core.tut.pori.http.Response getAlerts(@HTTPAuthenticationParameter core.tut.pori.http.parameters.AuthenticationParameter authenticatedUser, @HTTPMethodParameter(name="alert_group_id",required=false) core.tut.pori.http.parameters.LongParameter alertGroupIdFilter, @HTTPMethodParameter(name="alert_type",required=false) core.tut.pori.http.parameters.StringParameter alertTypeFilter, @HTTPMethodParameter(name="created",required=false) core.tut.pori.http.parameters.DateIntervalParameter createdFilter, @HTTPMethodParameter(name="data_groups",required=false) core.tut.pori.http.parameters.DataGroups dataGroups, @HTTPMethodParameter(name="location",required=false) LocationParameter location, @HTTPMethodParameter(name="range",required=false) core.tut.pori.http.parameters.DoubleParameter range, @HTTPMethodParameter(name="limits",required=false) core.tut.pori.http.parameters.Limits limits)
authenticatedUser
- alertGroupIdFilter
- alertTypeFilter
- createdFilter
- dataGroups
- location
- range
- limits
- AlertList
ClientService.getAlerts(AuthenticationParameter, LongParameter, StringParameter, DateIntervalParameter, DataGroups, LocationParameter, DoubleParameter, Limits)
@HTTPServiceMethod(name="addAlert", acceptedMethods="POST") public core.tut.pori.http.Response addAlert(@HTTPAuthenticationParameter core.tut.pori.http.parameters.AuthenticationParameter authenticatedUser, @HTTPMethodParameter(name="alert_group_id") core.tut.pori.http.parameters.LongParameter alertGroupId, @HTTPMethodParameter(name="body",bodyParameter=true) core.tut.pori.http.parameters.InputStreamParameter xml)
authenticatedUser
- alertGroupId
- xml
- Only the workload data should be in the body. See Alert
AlertList
ClientService.addAlert(AuthenticationParameter, LongParameter, InputStreamParameter)
@HTTPServiceMethod(name="createFile", acceptedMethods="POST") public core.tut.pori.http.Response createFile(@HTTPAuthenticationParameter core.tut.pori.http.parameters.AuthenticationParameter authenticatedUser, @HTTPMethodParameter(name="body",bodyParameter=true) core.tut.pori.http.parameters.InputStreamParameter file)
authenticatedUser
- file
- only the file contents should be in the body.FileDetailsList
with identifier for the generated fileClientService.createFile(AuthenticationParameter, InputStreamParameter)
Copyright © 2015-2018 Tampere University of Technology, Pori Department.