CronJob

Functions can used as sinks for Knative Eventing event sources such as CronJob.

Here's how to setup a function as an event sink for the CronJob event source:

functions:
  myFunction:
    handler: gcr.io/knative-releases/github.com/knative/eventing-contrib/cmd/event_display:latest
    events:
      - cron:
          schedule: '* * * * *'
          data: '{"message": "Hello world from a Cron event source!"}'
Edit this page

CronJob

Functions can used as sinks for Knative Eventing event sources such as CronJob.

Here's how to setup a function as an event sink for the CronJob event source:

functions:
  myFunction:
    handler: gcr.io/knative-releases/github.com/knative/eventing-contrib/cmd/event_display:latest
    events:
      - cron:
          schedule: '* * * * *'
          data: '{"message": "Hello world from a Cron event source!"}'