Skip to content

Commit

Permalink
docs: update the docs to incorporate smart_queries
Browse files Browse the repository at this point in the history
  • Loading branch information
sean- committed Sep 29, 2018
1 parent 090c8bd commit 3a18f1b
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions website/docs/r/worksheet.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,22 @@ resource "circonus_graph" "latency-graph" {
tags = [ "${var.myapp-tags}" ]
}
resource "circonus_worksheet" "latency_worksheet" {
title = "%s"
resource "circonus_worksheet" "myapp_latency" {
title = "MyApp: Latencies"
graphs = [
"${circonus_graph.latency-graph.id}",
]
}
resource "circonus_worksheet" "service_myapp" {
title = "Service: MyApp"
smart_queries = [
{
name = "MyApp"
query = "(tags:${var.myapp-tags})"
}
]
}
```

## Argument Reference
Expand All @@ -73,6 +83,9 @@ resource "circonus_worksheet" "latency_worksheet" {

### `smart_queries` Attributes

`smart_queries` is a list of smart query objects. Each smart query object has
the following required attributes:

* `name` - (Required) The name (heading) for the smart graph section in the worksheet.

* `query` - (Required) A search query that determines which graphs will be shown..
Expand Down

0 comments on commit 3a18f1b

Please sign in to comment.