package com.arms.api.admin.monitoring.model.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ClusterHealthVO {
    private String clusterName;
    private String status;
    private Boolean timedOut;
    private Integer numberOfNodes;
    private Integer numberOfDataNodes;
    private Integer activePrimaryShards;
    private Integer activeShards;
    private Integer relocatingShards;
    private Integer initializingShards;
    private Integer unassignedShards;
    private Integer delayedUnassignedShards;
    private Integer numberOfPendingTasks;
    private Integer numberOfInFlightFetch;
    private Long taskMaxWaitingInQueueMillis;
    private Double activeShardsPercentAsNumber;

    // 장애 판단
    private Boolean isHealthy;
    private String healthMessage;
}