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

com.azure.communication.jobrouter.models.RouterQueueStatistics Maven / Gradle / Ivy

The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.communication.jobrouter.models;

import com.azure.core.annotation.Generated;
import com.azure.core.annotation.Immutable;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.time.Duration;
import java.util.Map;

/** Statistics for the queue. */
@Immutable
public final class RouterQueueStatistics {

    /*
     * Id of the queue these details are about.
     */
    @Generated
    @JsonProperty(value = "queueId")
    private String queueId;

    /*
     * Length of the queue: total number of enqueued jobs.
     */
    @Generated
    @JsonProperty(value = "length")
    private int length;

    /*
     * The estimated wait time of this queue rounded up to the nearest minute, grouped
     * by job priority
     */
    @JsonProperty(value = "estimatedWaitTimeMinutes")
    private Map estimatedWaitTimes;

    /*
     * The wait time of the job that has been enqueued in this queue for the longest.
     */
    @Generated
    @JsonProperty(value = "longestJobWaitTimeMinutes")
    private Double longestJobWaitTimeMinutes;

    /**
     * Creates an instance of RouterQueueStatistics class.
     *
     * @param queueId the queueId value to set.
     * @param length the length value to set.
     */
    @Generated
    @JsonCreator
    private RouterQueueStatistics(@JsonProperty(value = "queueId") String queueId,
        @JsonProperty(value = "length") int length) {
        this.queueId = queueId;
        this.length = length;
    }

    /**
     * Get the queueId property: Id of the queue these details are about.
     *
     * @return the queueId value.
     */
    @Generated
    public String getQueueId() {
        return this.queueId;
    }

    /**
     * Get the length property: Length of the queue: total number of enqueued jobs.
     *
     * @return the length value.
     */
    @Generated
    public int getLength() {
        return this.length;
    }

    /**
     * Get the estimatedWaitTimeMinutes property: The estimated wait time of this queue rounded up to the nearest
     * minute, grouped by job priority.
     *
     * @return the estimatedWaitTimeMinutes value.
     */
    public Map getEstimatedWaitTime() {
        return this.estimatedWaitTimes;
    }

    /**
     * Get the longestJobWaitTimeMinutes property: The wait time of the job that has been enqueued in this queue for the
     * longest.
     *
     * @return the longestJobWaitTimeMinutes value.
     */
    @Generated
    public Double getLongestJobWaitTimeMinutes() {
        return this.longestJobWaitTimeMinutes;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy