Pub/Sub (Google) Inputs

George Alpizar
George Alpizar

Overview

This input type allows you to specify a Pub/Sub project for Edge Delta to monitor. Specifically, EdgeDelta will consume messages from Pub/Sub subscriptions.


Review Parameters

Review the following parameters that you can configure in the Edge Delta App:

Visual Editor YAML Description
Pub/Sub Input Labels  labels

Enter a descriptive name for this input. 

When you create a workflow, you will use this label to enter your input into the workflow. 

This parameter is required. 

Review the following example: 

labels: "google_pubsub_with_key"
Pub/Sub Project ID  project_id

Enter the project ID of the corresponding topic / subscription.

This parameter is required. 

Review the following example: 

project_id: "projectID1"
Pub/Sub Subscription ID  sub_id

Enter the subscription ID.

This parameter is required. 

Review the following example: 

sub_id: "subID1"
Service Account Key  key

Enter your key so that the agent can authenticate calls to Pub/Sub

If you do not enter a key, then you must enter a Path To Key File

This parameter is optional. 

Review the following example: 

key: "{\"pubsub_key\": \"key_123\"}"
Path To Key File  key_path

Enter a path so that the agent can authenticate calls to Pub/Sub

If you do not enter a path, then you must enter a Service Account Key

This parameter is optional. 

Review the following example: 

key_path: "pubsub_key_path"
Filters filters

Select an existing filter to add to this input. 

To learn how to create a filter, see Filters.

This parameter is optional. 

Review the following example: 

filters:
  - info

Review Sample Configuration 

Review the following sample configuration: 

  pubsubs:
    - labels: "google_pubsub_with_key"
      project_id: "projectID1"
      sub_id: "subID1"
      key: "{\"pubsub_key\": \"key_123\"}"
    - labels: "google_pubsub_with_key_path"
      project_id: "projectID2"
      sub_id: "subID2"
      key_path: "pubsub_key_path"

 

Share this document