From 97ed6de4ac4c0ad75e0b83e80d00be8c998837b4 Mon Sep 17 00:00:00 2001 From: hungran <26101787+hungran@users.noreply.github.com> Date: Tue, 8 Nov 2022 23:41:04 +0700 Subject: [PATCH] fix(example): correct docs when metrics got result empty (#2309) * chore(deps): bump github.com/newrelic/newrelic-client-go (#2267) Bumps [github.com/newrelic/newrelic-client-go](https://github.com/newrelic/newrelic-client-go) from 0.86.5 to 1.0.0. - [Release notes](https://github.com/newrelic/newrelic-client-go/releases) - [Changelog](https://github.com/newrelic/newrelic-client-go/blob/main/CHANGELOG.md) - [Commits](https://github.com/newrelic/newrelic-client-go/compare/v0.86.5...v1.0.0) --- updated-dependencies: - dependency-name: github.com/newrelic/newrelic-client-go dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: hungran <26101787+hungran@users.noreply.github.com> * fix: correct docs when metrics got result empty Signed-off-by: hungran <26101787+hungran@users.noreply.github.com> Signed-off-by: dependabot[bot] Signed-off-by: hungran <26101787+hungran@users.noreply.github.com> Signed-off-by: zachaller Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: zachaller --- docs/features/analysis.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/features/analysis.md b/docs/features/analysis.md index 478a7280f3..9e96cd1d65 100644 --- a/docs/features/analysis.md +++ b/docs/features/analysis.md @@ -1061,7 +1061,7 @@ Here are two examples where a metric result of empty array is considered success apiVersion: argoproj.io/v1alpha1 kind: AnalysisRun ... - successCondition: len(result) == 0 || result >= 0.95 + successCondition: len(result) == 0 || result[0] >= 0.95 status: metricResults: - count: 1 @@ -1081,7 +1081,7 @@ status: apiVersion: argoproj.io/v1alpha1 kind: AnalysisRun ... - successCondition: len(result) > 0 && result >= 0.95 + successCondition: len(result) > 0 && result[0] >= 0.95 status: metricResults: - count: 1