aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-athenz/src/main/java/com/yahoo/vespa/athenz/client/zms/bindings/StatisticsEntity.java
blob: bba6195363cf728c42e875f0952c0214147f820a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.athenz.client.zms.bindings;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @author olaa
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class StatisticsEntity {

    private int subdomains;
    private int roles;
    private int policies;
    private int services;
    private int groups;

    public StatisticsEntity(@JsonProperty("subdomain") int subdomains,
                            @JsonProperty("role") int roles,
                            @JsonProperty("policy") int policies,
                            @JsonProperty("service") int services,
                            @JsonProperty("group") int groups) {
        this.subdomains = subdomains;
        this.roles = roles;
        this.policies = policies;
        this.services = services;
        this.groups = groups;
    }

    public int getSubdomains() {
        return subdomains;
    }

    public int getRoles() {
        return roles;
    }

    public int getPolicies() {
        return policies;
    }

    public int getServices() {
        return services;
    }

    public int getGroups() {
        return groups;
    }

}