Skip to Content
Hands-On Serverless Computing
book

Hands-On Serverless Computing

by Kuldeep Chowhan
July 2018
Intermediate to advanced
350 pages
8h 47m
English
Packt Publishing
Content preview from Hands-On Serverless Computing

Event parameter

The event parameter, which is the first parameter that Google Cloud Functions accepts, holds the data associated with the event that triggered the execution of Google Cloud Functions. The actual event data is available within the data property of the event object.

Let's look at the properties of the event parameter:

  • Data: This is the property where the event data is available for the Google Cloud Function
  • Context: The context object for the event that triggered the Google Cloud Function
  • context.eventId: This is a unique ID that has been generated for the event that triggered the Google Cloud Function
  • context.timestamp: This is the date timestamp on which the event was triggered from the source
  • context.eventType: This holds ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn AWS Serverless Computing

Learn AWS Serverless Computing

Scott Patterson
Erlang and OTP in Action

Erlang and OTP in Action

Eric Merritt, Richard Carlsson, Martin Logan

Publisher Resources

ISBN: 9781788836654Supplemental Content