Wei-Yu Chen | ad55cb8 | 2022-02-15 20:07:01 +0800 | [diff] [blame] | 1 | # SPDX-FileCopyrightText: 2020 The Magma Authors. |
| 2 | # SPDX-FileCopyrightText: 2022 Open Networking Foundation <support@opennetworking.org> |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
Wei-Yu Chen | 49950b9 | 2021-11-08 19:19:18 +0800 | [diff] [blame] | 5 | |
| 6 | import snowflake |
| 7 | from eventd.eventd_client import log_event |
| 8 | from orc8r.protos.eventd_pb2 import Event |
| 9 | |
| 10 | |
| 11 | def deleted_stored_mconfig(): |
| 12 | log_event( |
| 13 | Event( |
| 14 | stream_name="magmad", |
| 15 | event_type="deleted_stored_mconfig", |
| 16 | tag=snowflake.snowflake(), |
| 17 | value="{}", |
| 18 | ), |
| 19 | ) |
| 20 | |
| 21 | |
| 22 | def updated_stored_mconfig(): |
| 23 | log_event( |
| 24 | Event( |
| 25 | stream_name="magmad", |
| 26 | event_type="updated_stored_mconfig", |
| 27 | tag=snowflake.snowflake(), |
| 28 | value="{}", |
| 29 | ), |
| 30 | ) |