google.cloud.forseti.notifier.notifiers.cscc_notifier module

Upload violations to GCS bucket as Findings.

class CsccNotifier(inv_index_id)[source]

Bases: object

Upload violations to GCS bucket as CSCC findings.

static _get_output_filename()[source]

Create the output filename. :returns: The output filename for the violations json. :rtype: str

_transform_to_findings(violations)[source]

Transform forseti violations to findings format.

Parameters:violations (dict) – Violations to be uploaded as findings.
Returns:violations in findings format; each violation is a dict.
Return type:list
run(violations, gcs_path)[source]

Generate the temporary json file and upload to GCS. :param violations: Violations to be uploaded as findings. :type violations: dict :param gcs_path: The GCS bucket to upload the findings. :type gcs_path: str