psm oehcs activities

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

Syntax

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

psm oehcs activities
	-s|--service-name instance-name
	[-f|--from-start-date]
	[-t|--to-start-date]
	[-a|--status]
	[-o|--operation-type]
	[-l|--limit-row-count]
	[-e|--offset]
	[-d|--order-by]
	[-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. The instance-name is the name of the instance.

-f|--from-start-date

(Optional) Specifies the start of a range. Include activities after this timestamp. Can be used along with to-start-date to specify a 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. Include activities before this timestamp. Can be used along with from-start-date to specify a 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 topicdemo1 instance in the usexample domain, from 01 September 2016, to 31 December 2016:

$ psm oehcs activities -s topicdemo1 -f 2016-09-01 -t 2016-12-31 -a SUCCEED
{
    "activityLogs":[
        {
            "activityLogId":2117,
            "serviceName":"Topic1",
            "serviceType":"oehcs",
            "identityDomain":"usexample",
            "serviceId":21,
            "jobId":769,
            "startDate":"2016-12-09T07:01:06.799+0000",
            "endDate":"2016-12-09T07:01:12.045+0000",
            "status":"SUCCEED",
            "operationId":21,
            "operationType":"CREATE_SERVICE",
            "summaryMessage":"CREATE_SERVICE",
            "authDomain":"usexample",
            "authUser":"oehcsadmin",
            "initiatedBy":"USER",
            "messages":[
                {
                    "activityDate":"2016-12-09T07:01:06.799+0000",
                    "message":"Activity Submitted"
                },
                {
                    "activityDate":"2016-12-09T07:01:06.831+0000",
                    "message":"Activity Started"
                },
                {
                    "activityDate":"2016-12-09T07:01:07.179+0000",
                    "message":"Allocating resources"
                },
                {
                    "activityDate":"2016-12-09T07:01:12.045+0000",
                    "message":"Activity Ended"
                }
            ]
        }
    ],
    "totalCount":1
}