From 915bdd5d5a29c9673e785ba75c3d6bfc53c5011e Mon Sep 17 00:00:00 2001 From: mrproliu <741550557@qq.com> Date: Tue, 5 Dec 2023 14:42:04 +0800 Subject: [PATCH] update documentation --- docs/en/api/metrics-query-expression.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/en/api/metrics-query-expression.md b/docs/en/api/metrics-query-expression.md index 0556e96cc6ac..ec337bcc8ea1 100644 --- a/docs/en/api/metrics-query-expression.md +++ b/docs/en/api/metrics-query-expression.md @@ -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.