Skip to content

Commit

Permalink
update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
mrproliu committed Dec 5, 2023
1 parent edb592b commit 915bdd5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/en/api/metrics-query-expression.md
Original file line number Diff line number Diff line change
@@ -293,6 +293,9 @@ The following example would return the content of the **service_cpm** metric.
view_as_seq(not_existing, service_cpm)
```

#### Result Type
The result type is determined by the type of selected not-null metric expression.

### IsPresent Operation
IsPresent operation represents that in a list of metrics, if any expression has a value, it would return `1` in the result; otherwise, it would return `0`.

@@ -305,11 +308,11 @@ For example:
When the meter does not exist or the metrics has no value, it would return `0`.
However, if the metrics list contains meter with values, it would return `1`.
```text
is_present(not_existing, existing_without_value, exiting_with_value)
is_present(not_existing, existing_without_value, existing_with_value)
```

#### Result Type
The result type is determined by the type of selected not-null metric expression.
The result type is `SINGLE_VALUE`, and the result(`1` or `0`) in the first result.

## Trend Operation
Trend Operation takes an expression and performs a trend calculation on its results.

0 comments on commit 915bdd5

Please sign in to comment.