org.graylog2.rest.models.system.responses.SystemOverviewResponse Maven / Gradle / Ivy
/*
* Copyright (C) 2020 Graylog, Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the Server Side Public License, version 1,
* as published by MongoDB, Inc.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* Server Side Public License for more details.
*
* You should have received a copy of the Server Side Public License
* along with this program. If not, see
* .
*/
package org.graylog2.rest.models.system.responses;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.google.auto.value.AutoValue;
import org.graylog.autovalue.WithBeanGetter;
@AutoValue
@WithBeanGetter
@JsonAutoDetect
public abstract class SystemOverviewResponse {
@JsonProperty
public abstract String facility();
@JsonProperty
public abstract String codename();
@JsonProperty
public abstract String nodeId();
@JsonProperty
public abstract String clusterId();
@JsonProperty
public abstract String version();
@JsonProperty
public abstract String startedAt();
@JsonProperty("is_processing")
public abstract boolean isProcessing();
@JsonProperty
public abstract String hostname();
@JsonProperty
public abstract String lifecycle();
@JsonProperty
public abstract String lbStatus();
@JsonProperty
public abstract String timezone();
@JsonProperty("operating_system")
public abstract String operatingSystem();
@JsonProperty("is_leader")
public abstract boolean isLeader();
@JsonCreator
public static SystemOverviewResponse create(@JsonProperty("facility") String facility,
@JsonProperty("codename") String codename,
@JsonProperty("node_id") String nodeId,
@JsonProperty("cluster_id") String clusterId,
@JsonProperty("version") String version,
@JsonProperty("started_at") String startedAt,
@JsonProperty("is_processing") boolean isProcessing,
@JsonProperty("hostname") String hostname,
@JsonProperty("lifecycle") String lifecycle,
@JsonProperty("lb_status") String lbStatis,
@JsonProperty("timezone") String timezone,
@JsonProperty("operating_system") String operatingSystem,
@JsonProperty("is_leader") boolean isLeader) {
return new AutoValue_SystemOverviewResponse(facility, codename, nodeId, clusterId, version, startedAt, isProcessing, hostname, lifecycle, lbStatis, timezone, operatingSystem, isLeader);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy