Description and usage of PublishGCPubSub processor:
Publishes the content of the incoming flowfile to the configured Google Cloud PubSub topic. The processor supports dynamic properties. If any dynamic properties are present, they will be sent along with the message in the form of ‘attributes’.
Tags:
google, google-cloud, gcp, message, pubsub, publish
Properties:
In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, and whether a property supports the Expression Language Guide.
Name |
Default Value |
Allowable Values |
Description |
Project ID |
Google Cloud Project ID Supports Expression Language: true (will be evaluated using variable registry only) |
||
GCP Credentials Provider Service |
Controller Service API: GCPCredentialsService Implementation: GCPCredentialsControllerServicellerService |
The Controller Service used to obtain Google Cloud Platform credentials. | |
Topic Name |
Name of the Google Cloud PubSub Topic Supports Expression Language: true (will be evaluated using variable registry only) |
||
Batch Size |
15 | Indicates the number of messages the cloud service should bundle together in a batch. If not set and left empty, only one message will be used in a batch |
Dynamic Properties:
Dynamic Properties allow the user to specify both the name and value of a property.
Name |
Value |
Description |
Attribute name | Value to be set to the attribute |
Attributes to be set for the outgoing Google Cloud PubSub message Supports Expression Language: true (will be evaluated using flow file attributes and variable registry) |
Relationships:
Name |
Description |
retry | FlowFiles are routed to this relationship if the Google Cloud Pub/Sub operation fails but attempting the operation again may succeed. |
success | FlowFiles are routed to this relationship after a successful Google Cloud Pub/Sub operation. |
failure | FlowFiles are routed to this relationship if the Google Cloud Pub/Sub operation fails. |
Reads Attributes:
None specified.
Writes Attributes:
Name |
Description |
gcp.pubsub.messageId | ID of the pubsub message published to the configured Google Cloud PubSub topic |
gcp.pubsub.topic | Name of the Google Cloud PubSub topic the message was published to |
State management:
This component does not store state.
Restricted:
This component is not restricted.
Input requirement:
This component requires an incoming relationship.
System Resource Considerations:
None specified.