Skip to content

SystemDeviceManagementGetEventStatusSummaryCountRequest

Bases: OCIRequest

Request a summary table of the number of events in state 'Pending', 'Queued Internally', and 'Completed' in the system per action. One row is returned per action. Actions are as per the DeviceManagementEventActionType (ex: Delete, Download, Rebuild, Reset, Upload). The state 'Queued Internally' includes total for events with status equal to 'Queued' and 'In Progress' as per DeviceManagementEventStatus. The response is either SystemDeviceManagementGetEventStatusSummaryCountResponse or ErrorResponse.

Attributes:

Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemDeviceManagementGetEventStatusSummaryCountRequest(OCIRequest):
    """Request a summary table of the number of events in state 'Pending',
        'Queued Internally', and 'Completed' in the system per action.
        One row is returned per action.
        Actions are as per the DeviceManagementEventActionType (ex: Delete, Download, Rebuild, Reset, Upload).
        The state 'Queued Internally' includes total for events with status
        equal to 'Queued' and 'In Progress' as per DeviceManagementEventStatus.
        The response is either SystemDeviceManagementGetEventStatusSummaryCountResponse or ErrorResponse.

    Attributes:

    """

Responses

Bases: OCIDataResponse

Response to SystemDeviceManagementGetEventStatusSummaryCountRequest. The column headings are "Action, "Pending", "Queued Internally", and "Completed"

Attributes:

status_count_table (OCITable):
Source code in src/mercury_ocip/commands/commands.py
@dataclass(kw_only=True)
class SystemDeviceManagementGetEventStatusSummaryCountResponse(OCIDataResponse):
    """Response to SystemDeviceManagementGetEventStatusSummaryCountRequest.
        The column headings are \"Action, \"Pending\", \"Queued Internally\", and \"Completed\"

    Attributes:

        status_count_table (OCITable):

    """

    status_count_table: OCITable = field(metadata={"alias": "statusCountTable"})

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 SystemDeviceManagementGetEventStatusSummaryCountRequest

client = Client()

command = SystemDeviceManagementGetEventStatusSummaryCountRequest()

response = client.command(command)

print(response)

Example 2 with Raw Command

from mercury_ocip.client import Client

client = Client()

response = client.raw_command("SystemDeviceManagementGetEventStatusSummaryCountRequest")

print(response)