Skip to content

Commit

Permalink
fix: userPayload JSON should not be a string (#430)
Browse files Browse the repository at this point in the history
  • Loading branch information
devstein authored and VaibhavPage committed Dec 12, 2019
1 parent 04a2ce4 commit 4f685b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions examples/event-sources/calendar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ spec:
schedule: "30 * * * *"
# userPayload is a static string that will be send to the the sensor with each event payload
# whatever you put here is blindly delivered to sensor.
userPayload: "{\"hello\": \"world\"}"
# access in resourceParameters or templateParameters via the path userPayload.hello
userPayload: {"hello": "world"}

schedule-in-specific-timezone:
# creates an event every 20 seconds
interval: "20s"
# userPayload is a static string that will be send to the the sensor with each event payload
# whatever you put here is blindly delivered to sensor.
userPayload: "{\"hello\": \"world\"}"
# access in resourceParameters or templateParameters via the path userPayload.hello
userPayload: {"hello": "world"}
# timezone
# more info: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
timezone: "America/New_York"
Expand Down

0 comments on commit 4f685b2

Please sign in to comment.