def METHOD_NAME(self, secrets):
    if (
        self.should_send_vault_loaded_event and
        secrets.get('DATADOG_API_KEY') and
        self.record_to_datadog
    ):
        self.should_send_vault_loaded_event = False
        datadog.initialize(
            api_key=secrets['DATADOG_API_KEY'],
            app_key=secrets['DATADOG_APP_KEY'],
        )
        datadog.api.Event.create(
            title="commcare-cloud vault loaded",
            text=' '.join([shlex_quote(arg) for arg in sys.argv]),
            tags=["environment:{}".format(self.env_name)],
            source_type_name='ansible',
        )