psm analyticssub activities
Use this command to list activities for a service created with Oracle Analytics Cloud Subscription.
Syntax
In the following syntax, line breaks have been added for clarity. Don't include them when entering the command.
psm analyticssub 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:
|
—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 .
|
|
(Optional) Specifies the output format of the command’s response:
The default output format is the one you specified
when using the |
Examples
The following example requests the failed activities of the
analytics–001
service from 01 January 2018 to 28 February
2019:
$ psm analyticssub activities -s analytics-001 -f 2018-01-01 -t 2019-02-28 -a FAILED