github.com/argoproj/argo-events@v1.9.1/docs/eventsources/setup/calendar.md (about) 1 # Calendar 2 3 Calendar event-source generates events on either a cron schedule or an interval and helps sensor trigger workloads. 4 5 ## Event Structure 6 7 The structure of an event dispatched by the event-source over the eventbus looks like following, 8 9 { 10 "context": { 11 "type": "type_of_event_source", 12 "specversion": "cloud_events_version", 13 "source": "name_of_the_event_source", 14 "id": "unique_event_id", 15 "time": "event_time", 16 "datacontenttype": "type_of_data", 17 "subject": "name_of_the_configuration_within_event_source" 18 }, 19 "data": { 20 "eventTime": {/* UTC time of the event */}, 21 "userPayload": { /* static payload available in the event source */}, 22 } 23 } 24 25 ## Specification 26 27 Calendar event-source specification is available [here](https://github.com/argoproj/argo-events/blob/master/api/event-source.md#calendareventsource). 28 29 ## Setup 30 31 1. Install the event source in the `argo-events` namespace. 32 33 kubectl apply -n argo-events -f https://raw.githubusercontent.com/argoproj/argo-events/stable/examples/event-sources/calendar.yaml 34 35 1. The event-source will generate events at every 10 seconds. Let's create the sensor. 36 37 kubectl apply -n argo-events -f https://raw.githubusercontent.com/argoproj/argo-events/stable/examples/sensors/calendar.yaml 38 39 1. Once the sensor pod is in running state, wait for next interval to occur for sensor to trigger workflow. 40 41 ## Troubleshoot 42 43 Please read the [FAQ](https://argoproj.github.io/argo-events/FAQ/).