Skip to content

Commit 5fe9108

Browse files
committed
change interval name and fix examples
1 parent 5a4e64d commit 5fe9108

28 files changed

+104
-100
lines changed

api/v1alpha1/federatedmanagedmetric_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ type FederatedManagedMetricSpec struct {
3838
// Projections []Projection `json:"projections,omitempty"`
3939

4040
// Define in what interval the query should be recorded
41-
// +kubebuilder:default:="12h"
42-
CheckInterval metav1.Duration `json:"checkInterval,omitempty"`
41+
// +kubebuilder:default:="10m"
42+
Interval metav1.Duration `json:"interval,omitempty"`
4343

4444
FederatedClusterAccessRef FederateClusterAccessRef `json:"federateClusterAccessRef,omitempty"`
4545
}

api/v1alpha1/federatedmetric_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ type FederatedMetricSpec struct {
4141
Projections []Projection `json:"projections,omitempty"`
4242

4343
// Define in what interval the query should be recorded
44-
// +kubebuilder:default:="12h"
45-
CheckInterval metav1.Duration `json:"checkInterval,omitempty"`
44+
// +kubebuilder:default:="10m"
45+
Interval metav1.Duration `json:"interval,omitempty"`
4646

4747
FederatedClusterAccessRef FederateClusterAccessRef `json:"federateClusterAccessRef,omitempty"`
4848
}

api/v1alpha1/managedmetric_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ type ManagedMetricSpec struct {
4343
// +optional
4444
FieldSelector string `json:"fieldSelector,omitempty"`
4545
// Define in what interval the query should be recorded
46-
// +kubebuilder:default:="12h"
47-
CheckInterval metav1.Duration `json:"checkInterval,omitempty"`
46+
// +kubebuilder:default:="10m"
47+
Interval metav1.Duration `json:"interval,omitempty"`
4848

4949
RemoteClusterAccessRef `json:"remoteClusterAccessRef,omitempty"`
5050
}

api/v1alpha1/metric_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ type MetricSpec struct {
5252
// +optional
5353
FieldSelector string `json:"fieldSelector,omitempty"`
5454
// Define in what interval the query should be recorded
55-
// +kubebuilder:default:="12h"
56-
CheckInterval metav1.Duration `json:"checkInterval,omitempty"`
55+
// +kubebuilder:default:="10m"
56+
Interval metav1.Duration `json:"interval,omitempty"`
5757

5858
RemoteClusterAccessRef `json:"remoteClusterAccessRef,omitempty"`
5959

api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/embedded/crds/metrics.cloud.sap_federatedmanagedmetrics.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ spec:
4040
spec:
4141
description: FederatedManagedMetricSpec defines the desired state of FederatedManagedMetric
4242
properties:
43-
checkInterval:
44-
default: 12h
45-
description: Define in what interval the query should be recorded
46-
type: string
4743
description:
4844
type: string
4945
federateClusterAccessRef:
@@ -58,6 +54,10 @@ spec:
5854
description: Define fields of your object to adapt filters of the
5955
query
6056
type: string
57+
interval:
58+
default: 10m
59+
description: Define in what interval the query should be recorded
60+
type: string
6161
labelSelector:
6262
description: Define labels of your object to adapt filters of the
6363
query

cmd/embedded/crds/metrics.cloud.sap_federatedmetrics.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,6 @@ spec:
3939
spec:
4040
description: FederatedMetricSpec defines the desired state of FederatedMetric
4141
properties:
42-
checkInterval:
43-
default: 12h
44-
description: Define in what interval the query should be recorded
45-
type: string
4642
description:
4743
type: string
4844
federateClusterAccessRef:
@@ -57,6 +53,10 @@ spec:
5753
description: Define fields of your object to adapt filters of the
5854
query
5955
type: string
56+
interval:
57+
default: 10m
58+
description: Define in what interval the query should be recorded
59+
type: string
6060
labelSelector:
6161
description: Define labels of your object to adapt filters of the
6262
query

cmd/embedded/crds/metrics.cloud.sap_managedmetrics.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ spec:
4949
spec:
5050
description: ManagedMetricSpec defines the desired state of ManagedMetric
5151
properties:
52-
checkInterval:
53-
default: 12h
54-
description: Define in what interval the query should be recorded
55-
type: string
5652
description:
5753
description: Sets the description that will be used to identify the
5854
metric in Dynatrace(or other providers)
@@ -65,6 +61,10 @@ spec:
6561
description: Define the group of your object that should be instrumented
6662
(without version at the end)
6763
type: string
64+
interval:
65+
default: 10m
66+
description: Define in what interval the query should be recorded
67+
type: string
6868
kind:
6969
description: Decide which kind the metric should keep track of (needs
7070
to be plural version)

cmd/embedded/crds/metrics.cloud.sap_metrics.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ spec:
4949
spec:
5050
description: MetricSpec defines the desired state of Metric
5151
properties:
52-
checkInterval:
53-
default: 12h
54-
description: Define in what interval the query should be recorded
55-
type: string
5652
description:
5753
description: Sets the description that will be used to identify the
5854
metric in Dynatrace(or other providers)
@@ -61,6 +57,10 @@ spec:
6157
description: Define fields of your object to adapt filters of the
6258
query
6359
type: string
60+
interval:
61+
default: 10m
62+
description: Define in what interval the query should be recorded
63+
type: string
6464
labelSelector:
6565
description: Define labels of your object to adapt filters of the
6666
query

config/crd/bases/metrics.cloud.sap_federatedmanagedmetrics.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ spec:
4040
spec:
4141
description: FederatedManagedMetricSpec defines the desired state of FederatedManagedMetric
4242
properties:
43-
checkInterval:
44-
default: 12h
45-
description: Define in what interval the query should be recorded
46-
type: string
4743
description:
4844
type: string
4945
federateClusterAccessRef:
@@ -58,6 +54,10 @@ spec:
5854
description: Define fields of your object to adapt filters of the
5955
query
6056
type: string
57+
interval:
58+
default: 10m
59+
description: Define in what interval the query should be recorded
60+
type: string
6161
labelSelector:
6262
description: Define labels of your object to adapt filters of the
6363
query

0 commit comments

Comments
 (0)