Skip to content

GroupCallCenterQueueStatusNotificationModifyRequest

Bases: OCIRequest

Set the status configuration for a given call center. The response is either a SuccessResponse or an ErrorResponse.

Attributes:

service_user_id (str):

enable_queue_status_notification (Optional[bool]):

enable_queue_depth_threshold (Optional[bool]):

enable_waiting_time_threshold (Optional[bool]):

number_of_calls_threshold (Optional[int]):

waiting_time_of_calls_threshold (Optional[int]):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class GroupCallCenterQueueStatusNotificationModifyRequest(OCIRequest):
    """Set the status configuration for a given call center.
        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        service_user_id (str):

        enable_queue_status_notification (Optional[bool]):

        enable_queue_depth_threshold (Optional[bool]):

        enable_waiting_time_threshold (Optional[bool]):

        number_of_calls_threshold (Optional[int]):

        waiting_time_of_calls_threshold (Optional[int]):

    """

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

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

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

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

    number_of_calls_threshold: Optional[int] = field(
        default=None, metadata={"alias": "numberOfCallsThreshold"}
    )

    waiting_time_of_calls_threshold: Optional[int] = field(
        default=None, metadata={"alias": "waitingTimeOfCallsThreshold"}
    )

Responses

Bases: OCIResponse

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

Bases: OCIResponse

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

Example Usage

from mercury_ocip.client import Client
from mercury_ocip.commands import GroupCallCenterQueueStatusNotificationModifyRequest

client = Client()

command = GroupCallCenterQueueStatusNotificationModifyRequest(
    service_user_id=...,
    enable_queue_status_notification=...,
    enable_queue_depth_threshold=...,
    enable_waiting_time_threshold=...,
    number_of_calls_threshold=...,
    waiting_time_of_calls_threshold=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("GroupCallCenterQueueStatusNotificationModifyRequest",
    service_user_id=...,
    enable_queue_status_notification=...,
    enable_queue_depth_threshold=...,
    enable_waiting_time_threshold=...,
    number_of_calls_threshold=...,
    waiting_time_of_calls_threshold=...,
)

print(response)