]> git.basschouten.com Git - openhab-addons.git/blob
eb0e07d89a503a543711f9aeae1408a8408d430b
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
7  * This program and the accompanying materials are made available under the
8  * terms of the Eclipse Public License 2.0 which is available at
9  * http://www.eclipse.org/legal/epl-2.0
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.zoneminder.internal.dto;
14
15 import com.google.gson.annotations.SerializedName;
16
17 /**
18  * The {@link EventSummaryDTO} contains event counts for the monitor. If this object
19  * doesn't exist in the JSON response, the event counts will be in the monitor object.
20  *
21  * @author Mark Hilbush - Initial contribution
22  */
23 public class EventSummaryDTO {
24
25     /**
26      * Number of events in last hour
27      */
28     @SerializedName("HourEvents")
29     public String hourEvents;
30
31     /**
32      * Number of events in last day
33      */
34     @SerializedName("DayEvents")
35     public String dayEvents;
36
37     /**
38      * Number of events in last week
39      */
40     @SerializedName("WeekEvents")
41     public String weekEvents;
42
43     /**
44      * Number of events in last month
45      */
46     @SerializedName("MonthEvents")
47     public String monthEvents;
48
49     /**
50      * Total number of events
51      */
52     @SerializedName("TotalEvents")
53     public String totalEvents;
54 }