/*
 * Copyright 2017 Banco Bilbao Vizcaya Argentaria, S.A.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.bbva.arq.devops.ae.mirrorgate.core.dto;

import javax.validation.constraints.NotNull;

public class UserMetricDTO {

    @NotNull
    private String viewId;

    private String appVersion;

    private String platform;

    @Deprecated
    private Long rtActiveUsers;

    @Deprecated
    private Long ga7dayUsers;

    private String name;

    private String value;

    public String getViewId() {
        return viewId;
    }

    public UserMetricDTO setViewId(String viewId) {
        this.viewId = viewId;
        return this;
    }

    public Long getRtActiveUsers() {
        return rtActiveUsers;
    }

    public UserMetricDTO setRtActiveUsers(Long rtActiveUsers) {
        this.rtActiveUsers = rtActiveUsers;
        return this;
    }

    public Long getGa7dayUsers() {
        return ga7dayUsers;
    }

    public UserMetricDTO setGa7dayUsers(Long ga7dayUsers) {
        this.ga7dayUsers = ga7dayUsers;
        return this;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public UserMetricDTO setAppVersion(String appVersion) {
        this.appVersion = appVersion;
        return this;
    }

    public String getPlatform() {
        return platform;
    }

    public UserMetricDTO setPlatform(String platform) {
        this.platform = platform;
        return this;
    }

    public String getName() {
        return name;
    }

    public UserMetricDTO setName(String name) {
        this.name = name;
        return this;
    }

    public String getValue() {
        return value;
    }

    public UserMetricDTO setValue(String value) {
        this.value = value;
        return this;
    }

}

@@ -992,24 +992,120 @@
 ing value;%0A%0A
+    private Long timestamp;%0A%0A    /* Associated collector ID */%0A    private String collectorId;%0A%0A
     public S
@@ -2378,10 +2378,398 @@
 %0A    %7D%0A%0A
+    public Long getTimestamp() %7B%0A        return timestamp;%0A    %7D%0A%0A    public UserMetricDTO setTimestamp(Long timestamp) %7B%0A        this.timestamp = timestamp;%0A        return this;%0A    %7D%0A%0A    public String getCollectorId() %7B%0A        return collectorId;%0A    %7D%0A%0A    public UserMetricDTO setCollectorId(String collectorId) %7B%0A        this.collectorId = collectorId;%0A        return this;%0A    %7D%0A%0A
 %7D%0A

update core dependency