Skip to content

Commit

Permalink
[src] - OceanCD - Add baseline field
Browse files Browse the repository at this point in the history
  • Loading branch information
AvishagK committed Nov 28, 2023
1 parent 3f9c110 commit c110529
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 0 deletions.
12 changes: 12 additions & 0 deletions api/services/ocean/cd/schemas/oceanCDRolloutBaseline.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
type: object
title: Ocean CD Verification Baseline
description: Represents object of Verification Baseline
properties:
baselineResult:
type: double
example: 2.45
description: describe the baseline metric result
metric:
type: object
$ref: "./oceanCDRolloutBaselineMetric.yaml"
description: describe the baseline metric
13 changes: 13 additions & 0 deletions api/services/ocean/cd/schemas/oceanCDRolloutBaselineMetric.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
type: object
title: Ocean CD Verification Baseline Metric
description: Represents object of Verification Baseline Metric
properties:
threshold:
type: string
example: "<"
description: represent the baseline threshold
enum: [ "<", "<=", ">", ">=", "=", "range" ]
provider:
description: represent the baseline provider.
type: object
$ref: "./oceanCDRolloutBaselineMetricProvider.yaml"
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
type: object
title: Ocean CD Verification Baseline Metric Provider
description: Represents object of Verification Baseline Metric Provider
properties:
prometheus:
type: object
$ref: "../verificationTemplate/oceanCDVerificationTemplateMetricPrometheus.yaml"
newRelic:
type: object
$ref: "../verificationTemplate/oceanCDVerificationTemplateMetricNewRelic.yaml"
datadog:
type: object
$ref: "../verificationTemplate/oceanCDVerificationTemplateMetricDatadog.yaml"
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ properties:
type: string
description: The step where the failure/success comes from
example: "1"
baseline:
type: object
description: Describe baseline metric such as metric, threshold and result
$ref: "./oceanCDRolloutBaseline.yaml"
providerDetails:
type: object
description: The chosen for the metric monitoring tool's details
Expand Down

0 comments on commit c110529

Please sign in to comment.