Package com.cumulocity.me.model.event

Examples of com.cumulocity.me.model.event.CumulocityAlarmStatuses


    public AlarmRepresentation create(AlarmRepresentation representation) throws SDKException {
        return (AlarmRepresentation) restConnector.post(getAlarmsApiRepresentation().getAlarms().getSelf(), AlarmMediaType.ALARM, representation);
    }

    public PagedCollectionResource getAlarmsByFilter(AlarmFilter alarmFilter) throws SDKException {
        CumulocityAlarmStatuses status = alarmFilter.getStatus();
        ManagedObjectRepresentation source = alarmFilter.getSource();
        Date dateFrom = alarmFilter.getFromDate();
        Date dateTo = alarmFilter.getToDate();

        Map filter = new HashMap();

        if (null != status) {
            filter.put(PARAMETER_STATUS, status.name());
        }
        if (null != source) {
            filter.put(PARAMETER_SOURCE, source.getId().getValue());
        }
        if (null != dateFrom) {
View Full Code Here

TOP

Related Classes of com.cumulocity.me.model.event.CumulocityAlarmStatuses

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.