Skip to content

GroupCallCenterQueueThresholdsModifyRequest

Bases: OCIRequest

Modify a call center's queue Thresholds settings. The response is either a SuccessResponse or an ErrorResponse.

Attributes:

service_user_id (str):

is_active (Optional[bool]):

threshold_current_calls_in_queue_yellow (Optional[Nillable[int]]):

threshold_current_calls_in_queue_red (Optional[Nillable[int]]):

threshold_current_longest_waiting_call_yellow (Optional[Nillable[int]]):

threshold_current_longest_waiting_call_red (Optional[Nillable[int]]):

threshold_average_estimated_wait_time_yellow (Optional[Nillable[int]]):

threshold_average_estimated_wait_time_red (Optional[Nillable[int]]):

threshold_average_handling_time_yellow (Optional[Nillable[int]]):

threshold_average_handling_time_red (Optional[Nillable[int]]):

threshold_average_speed_of_answer_yellow (Optional[Nillable[int]]):

threshold_average_speed_of_answer_red (Optional[Nillable[int]]):

enable_notification_email (Optional[bool]):

notification_email_address_list (Optional[Nillable[CallCenterQueueThresholdReplacementNotificationEmailList]]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class GroupCallCenterQueueThresholdsModifyRequest(OCIRequest):
    """Modify a call center's queue Thresholds settings.
        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        service_user_id (str):

        is_active (Optional[bool]):

        threshold_current_calls_in_queue_yellow (Optional[Nillable[int]]):

        threshold_current_calls_in_queue_red (Optional[Nillable[int]]):

        threshold_current_longest_waiting_call_yellow (Optional[Nillable[int]]):

        threshold_current_longest_waiting_call_red (Optional[Nillable[int]]):

        threshold_average_estimated_wait_time_yellow (Optional[Nillable[int]]):

        threshold_average_estimated_wait_time_red (Optional[Nillable[int]]):

        threshold_average_handling_time_yellow (Optional[Nillable[int]]):

        threshold_average_handling_time_red (Optional[Nillable[int]]):

        threshold_average_speed_of_answer_yellow (Optional[Nillable[int]]):

        threshold_average_speed_of_answer_red (Optional[Nillable[int]]):

        enable_notification_email (Optional[bool]):

        notification_email_address_list (Optional[Nillable[CallCenterQueueThresholdReplacementNotificationEmailList]]):

    """

    service_user_id: str = field(metadata={"alias": "serviceUserId"})

    is_active: Optional[bool] = field(default=None, metadata={"alias": "isActive"})

    threshold_current_calls_in_queue_yellow: Optional[Nillable[int]] = field(
        default=None, metadata={"alias": "thresholdCurrentCallsInQueueYellow"}
    )

    threshold_current_calls_in_queue_red: Optional[Nillable[int]] = field(
        default=None, metadata={"alias": "thresholdCurrentCallsInQueueRed"}
    )

    threshold_current_longest_waiting_call_yellow: Optional[Nillable[int]] = field(
        default=None, metadata={"alias": "thresholdCurrentLongestWaitingCallYellow"}
    )

    threshold_current_longest_waiting_call_red: Optional[Nillable[int]] = field(
        default=None, metadata={"alias": "thresholdCurrentLongestWaitingCallRed"}
    )

    threshold_average_estimated_wait_time_yellow: Optional[Nillable[int]] = field(
        default=None, metadata={"alias": "thresholdAverageEstimatedWaitTimeYellow"}
    )

    threshold_average_estimated_wait_time_red: Optional[Nillable[int]] = field(
        default=None, metadata={"alias": "thresholdAverageEstimatedWaitTimeRed"}
    )

    threshold_average_handling_time_yellow: Optional[Nillable[int]] = field(
        default=None, metadata={"alias": "thresholdAverageHandlingTimeYellow"}
    )

    threshold_average_handling_time_red: Optional[Nillable[int]] = field(
        default=None, metadata={"alias": "thresholdAverageHandlingTimeRed"}
    )

    threshold_average_speed_of_answer_yellow: Optional[Nillable[int]] = field(
        default=None, metadata={"alias": "thresholdAverageSpeedOfAnswerYellow"}
    )

    threshold_average_speed_of_answer_red: Optional[Nillable[int]] = field(
        default=None, metadata={"alias": "thresholdAverageSpeedOfAnswerRed"}
    )

    enable_notification_email: Optional[bool] = field(
        default=None, metadata={"alias": "enableNotificationEmail"}
    )

    notification_email_address_list: Optional[
        Nillable[CallCenterQueueThresholdReplacementNotificationEmailList]
    ] = field(default=None, metadata={"alias": "notificationEmailAddressList"})

    def __post_init__(self):
        nillable_fields = [
            "threshold_current_calls_in_queue_yellow",
            "threshold_current_calls_in_queue_red",
            "threshold_current_longest_waiting_call_yellow",
            "threshold_current_longest_waiting_call_red",
            "threshold_average_estimated_wait_time_yellow",
            "threshold_average_estimated_wait_time_red",
            "threshold_average_handling_time_yellow",
            "threshold_average_handling_time_red",
            "threshold_average_speed_of_answer_yellow",
            "threshold_average_speed_of_answer_red",
            "notification_email_address_list",
        ]
        for field_name in nillable_fields:
            value = getattr(self, field_name)
            if value == "" or value == "None":
                object.__setattr__(self, field_name, OCINil)

Responses

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class SuccessResponse(OCIResponse):
    pass

Bases: OCIResponse

Source code in src/mercury_ocip_fast/commands/base_command.py
class ErrorResponse(OCIResponse):
    errorCode: Optional[int] = None
    summary: str
    summaryEnglish: str
    detail: Optional[str] = None

Example Usage

from mercury_ocip_fast.client import Client
from mercury_ocip_fast.commands import GroupCallCenterQueueThresholdsModifyRequest

client = Client()

command = GroupCallCenterQueueThresholdsModifyRequest(
    service_user_id=...,
    is_active=...,
    threshold_current_calls_in_queue_yellow=...,
    threshold_current_calls_in_queue_red=...,
    threshold_current_longest_waiting_call_yellow=...,
    threshold_current_longest_waiting_call_red=...,
    threshold_average_estimated_wait_time_yellow=...,
    threshold_average_estimated_wait_time_red=...,
    threshold_average_handling_time_yellow=...,
    threshold_average_handling_time_red=...,
    threshold_average_speed_of_answer_yellow=...,
    threshold_average_speed_of_answer_red=...,
    enable_notification_email=...,
    notification_email_address_list=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("GroupCallCenterQueueThresholdsModifyRequest",
    service_user_id=...,
    is_active=...,
    threshold_current_calls_in_queue_yellow=...,
    threshold_current_calls_in_queue_red=...,
    threshold_current_longest_waiting_call_yellow=...,
    threshold_current_longest_waiting_call_red=...,
    threshold_average_estimated_wait_time_yellow=...,
    threshold_average_estimated_wait_time_red=...,
    threshold_average_handling_time_yellow=...,
    threshold_average_handling_time_red=...,
    threshold_average_speed_of_answer_yellow=...,
    threshold_average_speed_of_answer_red=...,
    enable_notification_email=...,
    notification_email_address_list=...,
)

print(response)