
com.azure.communication.jobrouter.implementation.models.RouterQueueStatisticsInternal Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) TypeSpec Code Generator.
package com.azure.communication.jobrouter.implementation.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.util.Map;
/**
* Statistics for the queue.
*/
@Immutable
public final class RouterQueueStatisticsInternal {
/*
* 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.
*/
@Generated
@JsonProperty(value = "estimatedWaitTimeMinutes")
private Map estimatedWaitTimeMinutes;
/*
* 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 RouterQueueStatisticsInternal class.
*
* @param queueId the queueId value to set.
* @param length the length value to set.
*/
@Generated
@JsonCreator
private RouterQueueStatisticsInternal(@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.
*/
@Generated
public Map getEstimatedWaitTimeMinutes() {
return this.estimatedWaitTimeMinutes;
}
/**
* 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