Skip to content

Commit

Permalink
[src] OceanCD - Verification Template - Add baseline fields
Browse files Browse the repository at this point in the history
  • Loading branch information
caduri committed Sep 20, 2023
1 parent 2dbccef commit 50a1c0c
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ properties:
provider:
type: object
$ref: "oceanCDVerificationTemplateMetricProvider.yaml"
baseline:
type: objet
$ref: "oceanCDVerificationTemplateMetricBaseline.yaml"
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
type: object
required:
- threshold
- provider
title: Ocean CD Verification Metric Baseline
properties:
threshold:
type: string
enum: ["<", ">", "<=", ">=", "=", "range"]
description: A mathematical expression needed for the comparison
example: ">"
minRange:
type: integer
example: 45
description: Number in percent we allow the new version’s data result to be under baseline data result
maxRange:
type: integer
example: 55
description: Number in percent we allow the new version’s data result to be under baseline data result
provider:
type: object
$ref: "oceanCDVerificationTemplateMetricBaselineProvider.yaml"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
type: object
title: Ocean CD Verification Metric Baseline Provider, only one provider type can be defined and it must be equal to the metric provider
description: The name of the monitoring tool chosen for the metric
properties:
prometheus:
type: object
$ref: "oceanCDVerificationTemplateMetricPrometheus.yaml"
newRelic:
type: object
$ref: "oceanCDVerificationTemplateMetricNewRelic.yaml"
datadog:
type: object
$ref: "oceanCDVerificationTemplateMetricDatadog.yaml"

0 comments on commit 50a1c0c

Please sign in to comment.