Skip to content

Commit

Permalink
fix(data-apis): Clarify shorthand option
Browse files Browse the repository at this point in the history
  • Loading branch information
rhetoric101 committed Apr 15, 2024
1 parent 57365c7 commit 97de0f1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -201,7 +201,7 @@ If used in a query, `myNeatProcess.%.duration` will return results for all three

There are [multiple types of `Metric` data](/docs/data-apis/understand-data/metric-data/metric-data-type/#metric-types) (for example, `gauge` and `count`) and each type has several associated <DoNotTranslate>**fields**</DoNotTranslate>. For details on the types of fields available, see [`getField()`](/docs/query-your-data/nrql-new-relic-query-language/get-started/nrql-syntax-clauses-functions/#func-getfield).

You can use `getField()` to extract those fields. For example, if you want to use a single value within a metric to do a comparison in a `WHERE` clause, you can use `getField(metricName, field)` or `metricName[field]`.
You can use `getField()` to extract those fields. For example, if you want to use a single value within a metric to do a comparison in a `WHERE` clause, you can use `getField(metricName, field)` or the shorthand syntax `metricName[field]`.

<CollapserGroup>
<Collapser
Expand Down

0 comments on commit 97de0f1

Please sign in to comment.