Events
Let's learn how to create and assign events to Google Cloud Functions. Associating these triggers with Google Cloud Functions will execute a function when an event is fired on the Google Cloud services. Within a Google Cloud Platform, such as AWS and Azure, cloud events are emitted when there is a change in the data in the storage system or database when new files are added to Google Cloud Storage or messages that are being sent to Google Cloud Pub/Sub. At the time of writing (July 2018), Google Cloud Functions only supported the following four event types:
- HTTP
- Google Cloud Storage
- Google Pub/Sub
- Firebase (https://firebase.google.com/)
Let's learn more about the event parameter and triggers for Google Cloud Functions in the next sections.
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
...