github.com/argoproj/argo-cd@v1.8.7/resource_customizations/argoproj.io/AnalysisRun/testdata/successfulAnalysisRun.yaml (about) 1 apiVersion: argoproj.io/v1alpha1 2 kind: AnalysisRun 3 metadata: 4 name: canary-demo-analysis-template-6c6bb7cf6f-zvcmx 5 namespace: default 6 spec: 7 analysisSpec: 8 metrics: 9 - failureCondition: len(result) == 0 10 name: memory-usage 11 provider: 12 prometheus: 13 address: 'http://prometheus-operator-prometheus.prometheus-operator:9090' 14 query: > 15 sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview",status!~"[4-5].*"}[2m])) 16 / 17 sum(rate(nginx_ingress_controller_requests{ingress="canary-demo-preview"}[2m])) 18 successCondition: len(result) > 0 19 status: 20 metricResults: 21 - count: 1 22 measurements: 23 - finishedAt: '2019-10-28T18:20:37Z' 24 startedAt: '2019-10-28T18:20:37Z' 25 phase: Successful 26 value: '[0.965324384787472]' 27 name: memory-usage 28 phase: Successful 29 successful: 1 30 phase: Successful