Skip to content

docs: removed macros that do not work in alerting #259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,10 @@ FROM `project.dataset.table`
WHERE $__timeFilter(time_column)
```

| Macro example | Description |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| _$\_\_timeFilter(timeColumn)_ | Will be replaced by a time range filter using the specified name. |
| _$\_\_timeGroup(timeColumn,interval)_ | Will be replaced by an expression usable in the GROUP BY clause. |
| _$\_\_from_ or _$\_\_to_ | Will be replaced by a Unix millisecond representation of the time filter start or end time. For example, `timestamp_millis($__to)` |
| _${\_\_from:date}_ or _${\_\_to:date}_ | Will be replaced by a date (ISO 8601/RFC 3339) representation of the time filter start or end time. For example, `SELECT DATE('${__from:date}')` |
| Macro example | Description |
| ------------------------------------- | ----------------------------------------------------------------- |
| _$\_\_timeFilter(timeColumn)_ | Will be replaced by a time range filter using the specified name. |
| _$\_\_timeGroup(timeColumn,interval)_ | Will be replaced by an expression usable in the GROUP BY clause. |

### Templates and variables

Expand Down
Loading