From 1b15aa4fe9b144a16e81e1eeb3fb6fbb95ef3fbf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 10 Oct 2022 00:49:57 +0000 Subject: [PATCH 1/2] 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> --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index b1b6a8d17e..9218c15c19 100644 --- a/go.mod +++ b/go.mod @@ -20,7 +20,7 @@ require ( github.com/influxdata/influxdb-client-go/v2 v2.11.0 github.com/juju/ansiterm v1.0.0 github.com/mitchellh/mapstructure v1.5.0 - github.com/newrelic/newrelic-client-go v0.86.5 + github.com/newrelic/newrelic-client-go v1.0.0 github.com/pkg/errors v0.9.1 github.com/prometheus/client_golang v1.12.2-0.20220620141757-4ad265f1b4ee github.com/prometheus/client_model v0.2.0 diff --git a/go.sum b/go.sum index 18fd48f4a8..5441629136 100644 --- a/go.sum +++ b/go.sum @@ -804,8 +804,8 @@ github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRW github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f h1:KUppIJq7/+SVif2QVs3tOP0zanoHgBEVAwHxUSIzRqU= github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U= github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw= -github.com/newrelic/newrelic-client-go v0.86.5 h1:RxjhA/xdjcnMTxl1oq+ms6tGTuZOOL+h8IcfBCD1PVY= -github.com/newrelic/newrelic-client-go v0.86.5/go.mod h1:RYMXt7hgYw7nzuXIGd2BH0F1AivgWw7WrBhNBQZEB4k= +github.com/newrelic/newrelic-client-go v1.0.0 h1:0ugZUujCiJg3WGDxnmOT1QRP2gDiZKIMN0Z04SvxVBc= +github.com/newrelic/newrelic-client-go v1.0.0/go.mod h1:RYMXt7hgYw7nzuXIGd2BH0F1AivgWw7WrBhNBQZEB4k= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nlopes/slack v0.5.0/go.mod h1:jVI4BBK3lSktibKahxBF74txcK2vyvkza1z/+rRnVAM= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= From 4806a6208eabe69f3961d6946b398419222b8c8e Mon Sep 17 00:00:00 2001 From: hungran <26101787+hungran@users.noreply.github.com> Date: Tue, 11 Oct 2022 11:39:47 +0700 Subject: [PATCH 2/2] fix: correct docs when metrics got result empty Signed-off-by: hungran <26101787+hungran@users.noreply.github.com> --- 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