Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

A common use of macros is in Path fields. Instead of using hard coded paths, you can use dynamic paths. For example, in a GCS source plugin, you might replace the path using multiple macros to split the bucket, folder, and file portions as follows: gs://${bucket.name}/${folder}/${file.name}. Or, if you want to ingest data from a bucket that is static and a file with a name that isn’t static, enter the name of the bucket and use a macro for the file name. The Path field will look like this:  

...

Info

Want to watch the video?

To add a macro to a field in a plugin, follow these steps:

...