psm autoanalyticsinst activities

Use this command to list activity associated with a service created with Oracle Analytics Cloud. For example, operations such as create, stop, start, delete, and so on.

Syntax

In the following syntax, line breaks have been added for clarity. Don't include them when entering the command.

psm autoanalyticsinst activities -s|--service-name service-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 json|html|short]

Parameters

Parameter Description
-s|--service-name instance-name Specifies the name of the service.
—f|--from-start-date Retrieves activities performed after this date. Specifies the start of a range. If no end date is defined, uses the current date. 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 Specifies the end of a range. You can use it with from-start-range.
—a|--status Specifies the types of activity required. Valid values are NEW|RUNNING|SUCCEED|FAILED|WARN.
—o|--operation-type Specifies the types of operation required.
-l|--limit-row-count Specifies how many rows of results to return. The default is 10.
-e|--offset 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. You can combine this with limit-row-count to further restrict the number of activities in the result set.
-d|--order-by Filter criteria that sorts the result set. Defined as fieldName: asc|desc.

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

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

  • json — output is formatted as a JSON array.

  • html — output is formatted as HTML.

  • short — output is formatted as a brief summary.

The default output format is the one you specified when using the psm setup command to configure the psm command-line interface. See Configuring the Command Line Interface.

Examples

The following example requests the failed activities of the analytics–001 service from 01 January 2018 to 28 February 2019:

$ psm autoanalyticsinst activities -s analytics-001 -f 2018-01-01 -t 2019-02-28 -a FAILED