Network Flow Log¶
Network flow log resources store configuration and delivery information regarding traffic flows between networking components in a cloud network. This resource inherits from Resource and has direct access to the resource’s database object. The following attributes are directly accessible:
|The primary resource identifier that takes the form of a prefix followed by numbers and letters|
|The ID of the parent organization service (cloud)|
|The region that the instance resides in|
|The provider ID of the flow log|
|attr status:||The status of log delivery (active, inactive)|
|The type of traffic being logged|
|The name of the logging group|
|Logging status of the flow log (success, failed)|
|Delivery error description|
|Time the flow log was created|
Network Flow Log Operations
Network flow logs don’t have a name so we will use the log_group_name as the name.
This should be called when a resource is created/discovered after the basic data is added to the database. This gives an opportunity for post-addition hooks (assignment to projects/groups, alerts, etc)
This should be called when a resource is destroyed before the basic data is removed from the database. This gives an opportunity for pre-destruction hooks (removal from projects/groups, alerts, etc).
handle_resource_modified(resource, *args, **kwargs)¶
This should be called when a resource is modified after the new data has been updated in the DB session. This gives an opportunity for post-modification hooks.