Tags allow you to easily refer to a collection of actions. This can be useful in creating schedules and triggering runs.
Suppose we would like to add a "daily" tag to a dataset.
To add a tag to a dataset:
1config { 2 type: "table", 3 name: "users", 4 tags: ["daily"] 5}
Alternatively you can use the JavaScript API:
1publish("users").query("SELECT ...").tags(["daily"]);
Tags can be added to datasets, assertions, operations and declarations.
You can add more than one tag to each action like so:
1config { 2 type: "view", 3 name: "user_counts", 4 tags: ["daily", "view"] 5}
Once you have assigned tags to actions, you can use the tags to define a run or schedule . For example, in the schedule creation screen, simply choose the tags you'd like to include in that schedule.
Tags can also be used with the CLI using the --tags
argument.