All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.zanella.nomad.v1.nodes.models.NodeAllocation Maven / Gradle / Ivy

package io.github.zanella.nomad.v1.nodes.models;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.github.zanella.nomad.v1.common.models.AllocationSummary;
import io.github.zanella.nomad.v1.common.models.Job;
import io.github.zanella.nomad.v1.common.models.TaskState;
import lombok.*;

import java.util.HashMap;
import java.util.Map;

@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor(suppressConstructorProperties = true)
public class NodeAllocation extends AllocationSummary {

    @Data
    @NoArgsConstructor
    @AllArgsConstructor(suppressConstructorProperties = true)
    public static class Metrics {
        @JsonProperty("CoalescedFailures") Integer coalescedFailures;

        @JsonProperty("AllocationTime") Integer AllocationTime;

        @JsonProperty("NodesEvaluated") Integer nodesEvaluated;

        @JsonProperty("NodesFiltered") Integer nodesFiltered;

        @JsonProperty("ClassFiltered") Object classFiltered;

        @JsonProperty("ConstraintFiltered") Object constraintFiltered;

        @JsonProperty("NodesExhausted") Integer nodesExhausted;

        @JsonProperty("ClassExhausted") Object classExhausted;

        @JsonProperty("DimensionExhausted") Object dimensionExhausted;

        @JsonProperty("Scores") Map scores;
    }

    @JsonProperty("Resources") Resources resources;

    @JsonProperty("Job") Job job;

    @JsonProperty("TaskResources") Map taskResources = new HashMap();

    @JsonProperty("Metrics") Metrics metrics;

    @JsonProperty("TaskStates") Map taskStates;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy