roboto.domain.platform_events.samples#
One fixed scenario, rendered as a platform event of every type.
Every sample envelope and every sample entity record draws its ids from the constants below, so samples of different event types agree with each other.
Module Contents#
- roboto.domain.platform_events.samples.SAMPLE_ACTION_DIGEST = 'sha256:9f1c2e7b4a0d8c6f3e5b1a7d2c4f8e6a0b3d5c7e9f1a2b4c6d8e0f2a4b6c8d0e'#
- roboto.domain.platform_events.samples.SAMPLE_ACTION_NAME = 'ros-ingest'#
- roboto.domain.platform_events.samples.SAMPLE_API_DOMAIN = 'api.roboto.ai'#
- roboto.domain.platform_events.samples.SAMPLE_CHANGESET#
- roboto.domain.platform_events.samples.SAMPLE_DATASET_ID = 'ds_7h2k9m4qxp3w'#
- roboto.domain.platform_events.samples.SAMPLE_EVENT_ID = 'ev_7g3n5kq2wxrd'#
- roboto.domain.platform_events.samples.SAMPLE_FILE_ID = 'fl_q8v2n6ty4mcs'#
- roboto.domain.platform_events.samples.SAMPLE_FILE_VERSION = 2#
- roboto.domain.platform_events.samples.SAMPLE_INVOCATION_ID = 'iv_2x9pd7wk5rhf'#
- roboto.domain.platform_events.samples.SAMPLE_ORG_ID = 'og_k3m8w2rq7nxd'#
- roboto.domain.platform_events.samples.SAMPLE_SESSION_ID = 'se_m4t7c1zq9bvn'#
- roboto.domain.platform_events.samples.SAMPLE_TAGS_ADDED = ['validated', 'nightly']#
- roboto.domain.platform_events.samples.SAMPLE_TIME#
The instant every sample event and record is dated from, so samples are stable across calls.
- roboto.domain.platform_events.samples.SAMPLE_TRANSACTION_ID = 'tx_5jw8r3ne2kpq'#
- roboto.domain.platform_events.samples.SAMPLE_TRIGGER_ID = 'tr_3nq7wk2mx9pd'#
- roboto.domain.platform_events.samples.SAMPLE_USER = 'maria.chen@acme-robotics.com'#
- roboto.domain.platform_events.samples.sample_platform_event(event_type)#
A valid, fully populated event of
event_typefrom the sample scenario.- Parameters:
event_type (roboto.domain.platform_events.events.PlatformEventType)
- Return type: