events

The cfy events command is used to view events of a specific execution.

Optional flags

These commands support the common CLI flags.

Commands

list

Usage

cfy events list [OPTIONS] EXECUTION_ID

Display events for an execution.

EXECUTION_ID is the unique identifier for the execution.

Optional flags

 

Example

$ cfy events list dcf2dc2f-dc4f-4036-85a6-e693196e6331
...

Listing events for execution id dcf2dc2f-dc4f-4036-85a6-e693196e6331 [include_logs=True]
2017-03-30 10:26:12.723  CFY <cloudify-nodecellar-example> Starting 'update' workflow execution
2017-03-30 10:26:13.201  CFY <cloudify-nodecellar-example> 'update' workflow execution succeeded

Total events: 2

...

delete

Usage

cfy events delete [OPTIONS] DEPLOYMENT_ID

Delete events attached to a deployment.

DEPLOYMENT_ID is the ID of the deployment events to delete.

Optional flags

 

Examples

$ cfy events delete cloudify-nodecellar-example
...

Deleting events for deployment id cloudify-nodecellar-example [include_logs=True]

Deleted 344 events

...

$ cfy events delete --from "2020-05-13 15:49:40" --to "2020-05-13 15:49:46" --store-before cloudify-nodecellar-example
...

Deleting events for deployment id test [include_logs=True, from_datetime=2020-05-13 15:49:40, to_datetime=2020-05-13 15:49:46]

Deleted 8 events

...

$ cfy events delete --before "10 seconds" --store-before --output-path ~/deleted-test-logs.txt test
...

Deleting events for deployment id test [include_logs=True, to_datetime=2020-05-13 15:53:43.892]

Deleted 6 events

...