Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example manifests for v1beta2 version #746

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: alertsmanagement.azure.upbound.io/v1beta2
kind: MonitorActionRuleActionGroup
metadata:
annotations:
meta.upbound.io/example-id: alertsmanagement/v1beta2/monitoractionruleactiongroup
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
actionGroupIdSelector:
matchLabels:
testing.upbound.io/example-name: example
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example

---

apiVersion: insights.azure.upbound.io/v1beta2
kind: MonitorActionGroup
metadata:
annotations:
meta.upbound.io/example-id: alertsmanagement/v1beta2/monitoractionruleactiongroup
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
shortName: examplegroup

---

apiVersion: azure.upbound.io/v1beta1
kind: ResourceGroup
metadata:
annotations:
meta.upbound.io/example-id: alertsmanagement/v1beta1/monitoractionruleactiongroup
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
location: West Europe
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: alertsmanagement.azure.upbound.io/v1beta2
kind: MonitorActionRuleSuppression
metadata:
annotations:
meta.upbound.io/example-id: alertsmanagement/v1beta2/monitoractionrulesuppression
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
suppression:
recurrenceType: Weekly
schedule:
endDateUtc: "2019-01-03T15:02:07Z"
recurrenceWeekly:
- Sunday
- Monday
- Friday
- Saturday
startDateUtc: "2019-01-01T01:02:03Z"

---

apiVersion: azure.upbound.io/v1beta1
kind: ResourceGroup
metadata:
annotations:
meta.upbound.io/example-id: alertsmanagement/v1beta1/monitoractionrulesuppression
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
location: West Europe
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: alertsmanagement.azure.upbound.io/v1beta2
kind: MonitorAlertProcessingRuleActionGroup
metadata:
annotations:
meta.upbound.io/example-id: alertsmanagement/v1beta2/monitoralertprocessingruleactiongroup
labels:
testing.upbound.io/example-name: example
name: mapragex
spec:
forProvider:
addActionGroupIdsRefs:
- name: mapragex
condition:
severity:
operator: Equals
values:
- Sev0
- Sev1
- Sev2
targetResourceType:
operator: Equals
values:
- Microsoft.Compute/VirtualMachines
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
schedule:
effectiveFrom: 2022-01-01T01:02:03
effectiveUntil: 2022-02-02T01:02:03
recurrence:
daily:
- endTime: "09:00:00"
startTime: "17:00:00"
weekly:
- daysOfWeek:
- Saturday
- Sunday
timeZone: Pacific Standard Time
scopesRefs:
- name: mapragex
tags:
foo: bar

---

apiVersion: insights.azure.upbound.io/v1beta2
kind: MonitorActionGroup
metadata:
annotations:
meta.upbound.io/example-id: alertsmanagement/v1beta2/monitoralertprocessingruleactiongroup
labels:
testing.upbound.io/example-name: example
name: mapragex
spec:
forProvider:
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
shortName: mapragex

---

apiVersion: azure.upbound.io/v1beta1
kind: ResourceGroup
metadata:
annotations:
meta.upbound.io/example-id: alertsmanagement/v1beta1/monitoralertprocessingruleactiongroup
labels:
testing.upbound.io/example-name: example
name: mapragex
spec:
forProvider:
location: West Europe
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: alertsmanagement.azure.upbound.io/v1beta2
kind: MonitorAlertProcessingRuleSuppression
metadata:
annotations:
meta.upbound.io/example-id: alertsmanagement/v1beta2/monitoralertprocessingrulesuppression
labels:
testing.upbound.io/example-name: example
name: maprsexample
spec:
forProvider:
condition:
severity:
operator: Equals
values:
- Sev0
- Sev1
- Sev2
targetResourceType:
operator: Equals
values:
- Microsoft.Compute/VirtualMachines
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
schedule:
effectiveFrom: 2022-01-01T01:02:03
effectiveUntil: 2022-02-02T01:02:03
recurrence:
daily:
- endTime: "09:00:00"
startTime: "17:00:00"
weekly:
- daysOfWeek:
- Saturday
- Sunday
timeZone: Pacific Standard Time
scopesRefs:
- name: maprsexample
tags:
foo: bar

---

apiVersion: azure.upbound.io/v1beta1
kind: ResourceGroup
metadata:
annotations:
meta.upbound.io/example-id: alertsmanagement/v1beta1/monitoralertprocessingrulesuppression
labels:
testing.upbound.io/example-name: example
name: maprsexample
spec:
forProvider:
location: West Europe
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: alertsmanagement.azure.upbound.io/v1beta2
kind: MonitorSmartDetectorAlertRule
metadata:
annotations:
meta.upbound.io/example-id: alertsmanagement/v1beta2/monitorsmartdetectoralertrule
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
actionGroup:
idsRefs:
- name: example
detectorType: FailureAnomaliesDetector
frequency: PT1M
name: myrule
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
scopeResourceIdsRefs:
- name: example
severity: Sev0

---

apiVersion: insights.azure.upbound.io/v1beta1
kind: ApplicationInsights
metadata:
annotations:
meta.upbound.io/example-id: alertsmanagement/v1beta2/monitorsmartdetectoralertrule
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
applicationType: web
location: West Europe
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example

---

apiVersion: insights.azure.upbound.io/v1beta2
kind: MonitorActionGroup
metadata:
annotations:
meta.upbound.io/example-id: alertsmanagement/v1beta2/monitorsmartdetectoralertrule
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
shortName: examplegroup

---

apiVersion: azure.upbound.io/v1beta1
kind: ResourceGroup
metadata:
annotations:
meta.upbound.io/example-id: alertsmanagement/v1beta1/monitorsmartdetectoralertrule
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
location: West Europe
63 changes: 63 additions & 0 deletions examples/apimanagement/v1beta2/api.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# SPDX-FileCopyrightText: 2024 The Crossplane Authors <https://crossplane.io>
#
# SPDX-License-Identifier: Apache-2.0

apiVersion: apimanagement.azure.upbound.io/v1beta2
kind: API
metadata:
annotations:
meta.upbound.io/example-id: apimanagement/v1beta2/api
labels:
testing.upbound.io/example-name: example
name: example
spec:
forProvider:
apiManagementNameSelector:
matchLabels:
testing.upbound.io/example-name: example
displayName: Example API
import:
contentFormat: swagger-link-json
contentValue: http://conferenceapi.azurewebsites.net/?format=json
path: example
protocols:
- https
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
revision: "1"

---

apiVersion: apimanagement.azure.upbound.io/v1beta2
kind: Management
metadata:
annotations:
meta.upbound.io/example-id: apimanagement/v1beta2/api
uptest.upbound.io/timeout: "7200"
labels:
testing.upbound.io/example-name: example
name: uptest-management-example
spec:
forProvider:
location: West Europe
publisherEmail: company@terraform.io
publisherName: My Company
resourceGroupNameSelector:
matchLabels:
testing.upbound.io/example-name: example
skuName: Developer_1

---

apiVersion: azure.upbound.io/v1beta1
kind: ResourceGroup
metadata:
annotations:
meta.upbound.io/example-id: apimanagement/v1beta1/api
labels:
testing.upbound.io/example-name: example
name: uptest-resourcegroup-example
spec:
forProvider:
location: West Europe
Loading
Loading