Skip to content

Commit

Permalink
chore: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Jun 26, 2024
1 parent 6cd1100 commit df3bf3d
Showing 1 changed file with 17 additions and 11 deletions.
28 changes: 17 additions & 11 deletions canary-checker/docs/reference/1-prometheus.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,38 @@ The Prometheus Check connects to the Prometheus host, performs the desired query
{ field: 'query', description: 'PromQL query to execute', required: true },
{
field: 'username',
description: 'PromQL query to execute',
description: 'Username for basic auth',
scheme: 'EnvVar'
},
{
field: 'password',
description: 'PromQL query to execute',
description: 'Password for basic auth',
scheme: 'EnvVar'
},
{
field: 'bearer',
description: 'PromQL query to execute',
description: 'Bearer token to use for authentication',
scheme: 'EnvVar'
},
{ field: 'oauth', description: 'PromQL query to execute', scheme: '[oAuth](#oauth)' },
{ field: 'oauth', scheme: '[OAuth](#oauth)' }

Check failure on line 39 in canary-checker/docs/reference/1-prometheus.mdx

View workflow job for this annotation

GitHub Actions / vale

[vale] canary-checker/docs/reference/1-prometheus.mdx#L39

[Vale.Terms] Use 'OAuth' instead of 'oauth'.
Raw output
{"message": "[Vale.Terms] Use 'OAuth' instead of 'oauth'.", "location": {"path": "canary-checker/docs/reference/1-prometheus.mdx", "range": {"start": {"line": 39, "column": 15}}}, "severity": "ERROR"}
]}
/>

## OAuth

<Fields rows={[
{field: "clientID", description: "Client ID", scheme: "EnvVar"},
{field: "clientSecret", description: "Client Secret", scheme: "EnvVar"},
{field: "scope", description: "oAuth Scopes", scheme: "`[]string`"},
{field: "tokenURL", description: "Token URL", scheme: "string"},
{field: "params", description: "Endpoint parameters", scheme: "`map[string]string`"},
]}/>
<Fields
rows={[
{ field: 'clientID', description: 'Client ID', scheme: 'EnvVar' },
{ field: 'clientSecret', description: 'Client Secret', scheme: 'EnvVar' },
{ field: 'scope', description: 'Scopes to request', scheme: '`[]string`' },
{ field: 'tokenURL', description: 'Token URL', scheme: 'string' },
{
field: 'params',
description: 'OAuth parameters when requesting a token',
scheme: '`map[string]string`'
}
]}
/>

## Result Variables

Expand Down

0 comments on commit df3bf3d

Please sign in to comment.