psm accs activities
This command displays the activities of an Oracle Application Container Cloud Service application.
Syntax
The syntax of this command appears on multiple lines for clarity. When you use this command, it must be on one line only.
psm accs activities
-n|--service-name app-name
[-f|--from-start-date timestamp]
[-t|--to-start-date timestamp]
[-a|--status status]
[-o|--operation-type type-list]
[-l|--limit-row-count row-count]
[-e|--offset row-number]
[-d|--order-by field:asc|desc]
[-of|--output-format json|html|short]
Parameters
All parameters are required unless otherwise noted.
Parameter | Description |
---|---|
-n , ––service-name |
Name of the application. |
-f , ––from-start-date |
(Optional) Includes activities after this timestamp. Use with ––to-start-date to specify a range. Supported date formats are yyyy-MM-dd'T'HH:mm:ss.SSSZ , yyyy-MM-dd HH:mm:ss , and yyyy-MM-dd .
|
-t , ––to-start-date |
(Optional) Includes activities before this timestamp. Use with ––from-start-date to specify a range. Supported date formats are yyyy-MM-dd'T'HH:mm:ss.SSSZ , yyyy-MM-dd HH:mm:ss , and yyyy-MM-dd .
|
-a , ––status |
(Optional) A space-separated list of activity statuses: NEW , RUNNING , SUCCEED , FAILED , or WARN .
|
-o , ––operation-type |
(Optional) A space-separated list of operation types. |
-l , ––limit-row-count |
(Optional) Maximum number of activities to display. Default is 10 .
|
-e , ––offset |
(Optional) Starts the list of activities at this row. Use with ––limit-row-count to get a specific subset of activities. For example, if ––limit-row-count is 10 , use an ––offset of 11 to get the second set of 10 activities.
|
-d , ––order-by |
(Optional) Orders activities by the specified field in ascending (asc ) or descending (desc ) order.
|
|
(Optional) Specifies the output format of the command’s response:
The default output format is the one you specified when using the |
Example
$ psm accs activities -n JavaExampleCache
{
"activityLogs":[
{
"activityLogId":8087,
"authDomain":"apaasuser",
"authUser":"weblogic",
"endDate":"2017-03-21T16:40:05.609+0000",
"identityDomain":"apaasuser",
"initiatedBy":"USER",
"jobId":20013,
"messages":[
{
"activityDate":"2017-03-21T16:38:51.375+0000",
"message":"Activity Submitted"
},
{
"activityDate":"2017-03-21T16:38:51.441+0000",
"message":"Activity Started"
},
{
"activityDate":"2017-03-21T16:38:55.336+0000",
"message":"Initialized new release v2..."
},
{
"activityDate":"2017-03-21T16:38:57.737+0000",
"message":"Undeployed application(v1) for instance(1G) web.1..."
},
{
"activityDate":"2017-03-21T16:39:01.899+0000",
"message":"Undeployed application instances..."
},
{
"activityDate":"2017-03-21T16:39:04.928+0000",
"message":"Acquired resources for instance(1G) web.1..."
},
{
"activityDate":"2017-03-21T16:39:36.011+0000",
"message":"Deployed application(v2) for instance(1G) web.1..."
},
{
"activityDate":"2017-03-21T16:40:05.585+0000",
"message":"Successfully deployed release..."
},
{
"activityDate":"2017-03-21T16:40:05.597+0000",
"message":"Activity Ended"
},
{
"activityDate":"2017-03-21T16:40:05.609+0000",
"message":"Activity Ended"
}
],
"operationId":152,
"operationType":"USER_UPDATE",
"serviceId":152,
"serviceName":"JavaExampleCache",
"serviceType":"apaas",
"startDate":"2017-03-21T16:38:51.375+0000",
"status":"SUCCEED",
"summaryMessage":"USER_UPDATE"
},
{
"activityLogId":8086,
"authDomain":"apaasuser",
"authUser":"weblogic",
"endDate":"2017-03-21T16:37:32.302+0000",
"identityDomain":"apaasuser",
"initiatedBy":"USER",
"jobId":20012,
"messages":[
{
"activityDate":"2017-03-21T16:37:26.025+0000",
"message":"Activity Submitted"
},
{
"activityDate":"2017-03-21T16:37:26.073+0000",
"message":"Activity Started"
},
{
"activityDate":"2017-03-21T16:37:32.275+0000",
"message":"Application logs retrieved for instance web.1..."
},
{
"activityDate":"2017-03-21T16:37:32.291+0000",
"message":"Activity Ended"
},
{
"activityDate":"2017-03-21T16:37:32.302+0000",
"message":"Activity Ended"
}
],
"operationId":152,
"operationType":"LOG_COLLECTION",
"serviceId":152,
"serviceName":"JavaExampleCache",
"serviceType":"apaas",
"startDate":"2017-03-21T16:37:26.025+0000",
"status":"SUCCEED",
"summaryMessage":"LOG_COLLECTION"
},
{
"activityLogId":8085,
"authDomain":"apaasuser",
"authUser":"weblogic",
"endDate":"2017-03-21T16:36:41.867+0000",
"identityDomain":"apaasuser",
"initiatedBy":"USER",
"jobId":20011,
"messages":[
{
"activityDate":"2017-03-21T16:36:35.587+0000",
"message":"Activity Submitted"
},
{
"activityDate":"2017-03-21T16:36:35.651+0000",
"message":"Activity Started"
},
{
"activityDate":"2017-03-21T16:36:41.832+0000",
"message":"Application logs retrieved for instance web.1..."
},
{
"activityDate":"2017-03-21T16:36:41.849+0000",
"message":"Activity Ended"
},
{
"activityDate":"2017-03-21T16:36:41.867+0000",
"message":"Activity Ended"
}
],
"operationId":152,
"operationType":"LOG_COLLECTION",
"serviceId":152,
"serviceName":"JavaExampleCache",
"serviceType":"apaas",
"startDate":"2017-03-21T16:36:35.587+0000",
"status":"SUCCEED",
"summaryMessage":"LOG_COLLECTION"
}
],
"totalCount":3
}