Skip to content
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

Improve documentation #79

Merged
merged 2 commits into from
Jul 12, 2018
Merged

Improve documentation #79

merged 2 commits into from
Jul 12, 2018

Conversation

masci
Copy link
Contributor

@masci masci commented Jul 12, 2018

This is an attempt to improve docs as a way to mitigate a few recurring issues. In some cases, a better documentation is the only workaround we can provide in the short term to mitigate known pain points.

@masci masci added this to the 1.1.0 milestone Jul 12, 2018
Copy link
Contributor

@zippolyte zippolyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments about wording

@@ -57,7 +57,9 @@ The following arguments are supported:
* `composite`
* `name` - (Required) Name of Datadog monitor
* `query` - (Required) The monitor query to notify on with syntax varying depending on what type of monitor
you are creating. See [API Reference](http://docs.datadoghq.com/api) for options.
you are creating. Note this is not the same query you see in the UI, the format is different depending on the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had a hard time reading this sentence. I'd split the sentence, something like:

The monitor query on which to notify. The syntax varies depending on the type of monitor you are creating.

@@ -74,6 +76,10 @@ The following arguments are supported:
warning_recovery = 75
}
```
**Warning:** the `critical` threshold value has to match the one contained in the `query` argument. For example, a
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd replace has to with *must* to emphasize

@@ -74,6 +76,10 @@ The following arguments are supported:
warning_recovery = 75
}
```
**Warning:** the `critical` threshold value has to match the one contained in the `query` argument. For example, a
query like `avg(last_1h):avg:system.disk.in_use{role:sqlserver} by {host} > 90` would be fine with the `threshold` above,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/would be fine/is valid

@@ -74,6 +76,10 @@ The following arguments are supported:
warning_recovery = 75
}
```
**Warning:** the `critical` threshold value has to match the one contained in the `query` argument. For example, a
query like `avg(last_1h):avg:system.disk.in_use{role:sqlserver} by {host} > 90` would be fine with the `threshold` above,
while `avg(last_1h):avg:system.disk.in_use{role:sqlserver} by {host} > 95` would be not, with the Datadog API returning
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/would be not/is invalid


Nested `graph` `marker` blocks have the following structure:

* `type` - (Required) How the marker lines will look. Possible values are {"error", "warning", "info", "ok"} {"dashed", "solid", "bold"}. Example: "error dashed".
* `value` - (Required) Mathematical expression describing the marker. Examples: "y > 1", "-5 < y < 0", "y = 19".
* `label` - (Optional) A label for the line or range.
* `label` - (Optional) A label for the line or range. **Warning:** when a label is enabled but left empty through the UI, the Datadog API returns a boolean value, not a string, making `terraform plan` fail with a JSON decoding error.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sentence seems long: we should maybe split ... not a string. This makes terraform ...

Copy link
Contributor

@zippolyte zippolyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds much better to me, thanks !

@masci masci merged commit 011180b into master Jul 12, 2018
@masci masci deleted the massi/docs branch July 12, 2018 17:04
nitrocode pushed a commit to nitrocode/terraform-provider-datadog that referenced this pull request Nov 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants