psm oehpcs activities

Lists the activities of an Oracle Event Hub Cloud Service - Dedicated instance.

Syntax

In the following syntax, line breaks have been added for clarity. Do not include them when entering the command.

psm oehpcs activities 
	-s|--service-name instance-name 
	[-f|--from-start-date date] 
	[-t|--to-start-date date ]
	[-a|--status NEW|RUNNING|SUCCEED|FAILED|WARN ]
	[-o|--operation-type LIST ]
	[-l|--limit-row-count integer ]
	[-e|--offset  ]
	[-d|--order-by fieldName ]
	[-of|--output-format short|json|html]

Parameters

Parameter Description

-s|--service-name instance-name

Specifies the unique name used to identify the service in the tenant domain.

—f|--from-start-date

(Optional) Specifies the start of a range. Get activities that were created after this date. Can be used along with to-start-date to get activities created within a date range. If no end date is defined, the current date is used. Supported formats are ISO date and time formats:

  • yyyy-MM-dd’T’HH:mm:ss

  • yyyy-MM-dd HH:mm:ss

  • yyy-MM-dd

—t|--to-start-date

(Optional) Specifies the end of a range. Get activities that were created before this date. Can be used along with from-start-date to get activities created within a date range. Supported formats are ISO date and time formats:

  • yyyy-MM-dd’T’HH:mm:ss

  • yyyy-MM-dd HH:mm:ss

  • yyy-MM-dd

—a|--status

(Optional) Specifies the types of activity required. Valid values are NEW|RUNNING|SUCCEED|FAILED|WARN.

—o|--operation-type

(Optional) Specifies the types of operation required.

-l|--limit-row-count

(Optional) Specifies the maximum number of activities to display. The default is 10.

-e|--offset

(Optional) Defines the number of activities to display. If the offset is set to 3, and 5 activities are returned, only the last 3 activities are displayed. This can be combined with limit-row-count to further restrict the number of activities in the result set.

-d|--order-by

(Optional) Filter criteria to sort the result set. Defined as fieldName: asc|desc.

-of|--output-format short|json|html

(Optional) Specifies the output format of the command’s response:

  • short—output is formatted as a brief summary.

  • json—output is formatted as a JSON array.

  • html—output is formatted as HTML

The default output format is the one you specified when using the psm setup command to configure the psm CLI.

Examples

The following example requests the succeeded activities of the clusterdemo1 instance in the usexample domain, from 01 January 2017, to 15 January 2017:

$ psm oehpcs activities -s clusterdemo1 -f 2017-01-01 -t 2017-01-15 -a SUCCEED
{
    "activityLogs":[
    {
        "activityLogId":2499,
        "serviceName":"clusterdemo1",
        "serviceType":"oehpcs",
        "identityDomain":"useexample",
        "serviceId":74,
        "jobId":7469,
        "startDate":"2017-01-13T03:08:36.339+0000",
        "endDate":"2017-01-13T03:08:53.235+0000",
        "status":"SUCCEED",
        "operationId":74,
        "operationType":"SYSTEM_UPDATE",
        "summaryMessage":"SYSTEM_UPDATE",
        "authDomain":"useexample",
        "initiatedBy":"SYSTEM",
        "messages":[
            {
                "activityDate":"2017-01-13T03:08:36.339+0000",
                "message":"Activity Submitted"
            },
            {
                "activityDate":"2017-01-13T03:08:36.399+0000",
                "message":"Activity Started"
            },
            {
                "activityDate":"2017-01-13T03:08:53.235+0000",
                "message":"Activity Ended"
            }
        ]
    }
],
"totalCount":1
}