Skip to content

GroupCallCenterEnhancedReportingReportTemplateAddRequest

Bases: OCIRequest

Request to add a group level call center report template. The response is either a SuccessResponse or an ErrorResponse.

Attributes:

service_provider_id (str):

group_id (str):

name (str):

description (Optional[str]):

data_template (str):

filter_number (Optional[int]):

xslt_template (LabeledFileResource):

scope (str):

is_enabled (bool):

is_realtime_report (Optional[bool]):

call_completion_threshold_param (Optional[str]):

short_duration_threshold_param (Optional[str]):

service_level_threshold_param (Optional[str]):

service_level_inclusions_param (Optional[str]):

service_level_objective_threshold_param (Optional[str]):

abandoned_call_threshold_param (Optional[str]):

service_level_threshold_param_number (Optional[int]):

abandoned_call_threshold_param_number (Optional[int]):

filter_value (Optional[List[str]]):
Source code in src/mercury_ocip_fast/commands/commands.py
@dataclass(kw_only=True)
class GroupCallCenterEnhancedReportingReportTemplateAddRequest(OCIRequest):
    """Request to add a group level call center report template.
        The response is either a SuccessResponse or an ErrorResponse.

    Attributes:

        service_provider_id (str):

        group_id (str):

        name (str):

        description (Optional[str]):

        data_template (str):

        filter_number (Optional[int]):

        xslt_template (LabeledFileResource):

        scope (str):

        is_enabled (bool):

        is_realtime_report (Optional[bool]):

        call_completion_threshold_param (Optional[str]):

        short_duration_threshold_param (Optional[str]):

        service_level_threshold_param (Optional[str]):

        service_level_inclusions_param (Optional[str]):

        service_level_objective_threshold_param (Optional[str]):

        abandoned_call_threshold_param (Optional[str]):

        service_level_threshold_param_number (Optional[int]):

        abandoned_call_threshold_param_number (Optional[int]):

        filter_value (Optional[List[str]]):

    """

    service_provider_id: str = field(metadata={"alias": "serviceProviderId"})

    group_id: str = field(metadata={"alias": "groupId"})

    name: str = field(metadata={"alias": "name"})

    description: Optional[str] = field(default=None, metadata={"alias": "description"})

    data_template: str = field(metadata={"alias": "dataTemplate"})

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

    xslt_template: LabeledFileResource = field(metadata={"alias": "xsltTemplate"})

    scope: str = field(metadata={"alias": "scope"})

    is_enabled: bool = field(metadata={"alias": "isEnabled"})

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

    call_completion_threshold_param: Optional[str] = field(
        default=None, metadata={"alias": "callCompletionThresholdParam"}
    )

    short_duration_threshold_param: Optional[str] = field(
        default=None, metadata={"alias": "shortDurationThresholdParam"}
    )

    service_level_threshold_param: Optional[str] = field(
        default=None, metadata={"alias": "serviceLevelThresholdParam"}
    )

    service_level_inclusions_param: Optional[str] = field(
        default=None, metadata={"alias": "serviceLevelInclusionsParam"}
    )

    service_level_objective_threshold_param: Optional[str] = field(
        default=None, metadata={"alias": "serviceLevelObjectiveThresholdParam"}
    )

    abandoned_call_threshold_param: Optional[str] = field(
        default=None, metadata={"alias": "abandonedCallThresholdParam"}
    )

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

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

    filter_value: Optional[List[str]] = field(
        default=None, metadata={"alias": "filterValue"}
    )

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 GroupCallCenterEnhancedReportingReportTemplateAddRequest

client = Client()

command = GroupCallCenterEnhancedReportingReportTemplateAddRequest(
    service_provider_id=...,
    group_id=...,
    name=...,
    description=...,
    data_template=...,
    filter_number=...,
    xslt_template=...,
    scope=...,
    is_enabled=...,
    is_realtime_report=...,
    call_completion_threshold_param=...,
    short_duration_threshold_param=...,
    service_level_threshold_param=...,
    service_level_inclusions_param=...,
    service_level_objective_threshold_param=...,
    abandoned_call_threshold_param=...,
    service_level_threshold_param_number=...,
    abandoned_call_threshold_param_number=...,
    filter_value=...,
)

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip_fast.client import Client

client = Client()

response = client.raw_command("GroupCallCenterEnhancedReportingReportTemplateAddRequest",
    service_provider_id=...,
    group_id=...,
    name=...,
    description=...,
    data_template=...,
    filter_number=...,
    xslt_template=...,
    scope=...,
    is_enabled=...,
    is_realtime_report=...,
    call_completion_threshold_param=...,
    short_duration_threshold_param=...,
    service_level_threshold_param=...,
    service_level_inclusions_param=...,
    service_level_objective_threshold_param=...,
    abandoned_call_threshold_param=...,
    service_level_threshold_param_number=...,
    abandoned_call_threshold_param_number=...,
    filter_value=...,
)

print(response)