Skip to content

Commit

Permalink
feat: match provider v0.21.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Duologic committed Nov 15, 2024
1 parent bcc3f73 commit b68c524
Show file tree
Hide file tree
Showing 54 changed files with 5,136 additions and 417 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
LIBRARY_VERSION:=0.0.3
PROVIDER_VERSION:=0.18.0
LIBRARY_VERSION:=0.0.4
PROVIDER_VERSION:=0.21.0
JSONNET_BIN:=jrsonnet

VENDOR_DEPTHS:=$(shell find generator/vendor -type f)
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Jsonnet library providing a namespaced set of compositions/XRDs for the Grafana
## Install

```
jb install github.com/Duologic/grafana-crossplane-libsonnet/[email protected].3-0.18.0
jb install github.com/Duologic/grafana-crossplane-libsonnet/[email protected].4-0.21.0
```

## Usage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ PARAMETERS:

* **value** (`object`)

value pairs of metadata to attach to the alert rule that may add user-defined context, but cannot be used for matching, grouping, or routing. Defaults to map[].
Key-value pairs of metadata to attach to the alert rule that may add user-defined context, but cannot be used for matching, grouping, or routing. Defaults to `map[]`.
value pairs of metadata to attach to the alert rule. They add additional information, such as a summary or runbook_url, to help identify and investigate alerts. The dashboardUId and panelId annotations, which link alerts to a panel, must be set together. Defaults to map[].
Key-value pairs of metadata to attach to the alert rule. They add additional information, such as a `summary` or `runbook_url`, to help identify and investigate alerts. The `dashboardUId` and `panelId` annotations, which link alerts to a panel, must be set together. Defaults to `map[]`.
### fn withAnnotationsMixin

```jsonnet
Expand All @@ -48,8 +48,8 @@ PARAMETERS:

* **value** (`object`)

value pairs of metadata to attach to the alert rule that may add user-defined context, but cannot be used for matching, grouping, or routing. Defaults to map[].
Key-value pairs of metadata to attach to the alert rule that may add user-defined context, but cannot be used for matching, grouping, or routing. Defaults to `map[]`.
value pairs of metadata to attach to the alert rule. They add additional information, such as a summary or runbook_url, to help identify and investigate alerts. The dashboardUId and panelId annotations, which link alerts to a panel, must be set together. Defaults to map[].
Key-value pairs of metadata to attach to the alert rule. They add additional information, such as a `summary` or `runbook_url`, to help identify and investigate alerts. The `dashboardUId` and `panelId` annotations, which link alerts to a panel, must be set together. Defaults to `map[]`.
### fn withCondition

```jsonnet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ PARAMETERS:

* **value** (`object`)

value pairs of metadata to attach to the alert rule that may add user-defined context, but cannot be used for matching, grouping, or routing. Defaults to map[].
Key-value pairs of metadata to attach to the alert rule that may add user-defined context, but cannot be used for matching, grouping, or routing. Defaults to `map[]`.
value pairs of metadata to attach to the alert rule. They add additional information, such as a summary or runbook_url, to help identify and investigate alerts. The dashboardUId and panelId annotations, which link alerts to a panel, must be set together. Defaults to map[].
Key-value pairs of metadata to attach to the alert rule. They add additional information, such as a `summary` or `runbook_url`, to help identify and investigate alerts. The `dashboardUId` and `panelId` annotations, which link alerts to a panel, must be set together. Defaults to `map[]`.
### fn withAnnotationsMixin

```jsonnet
Expand All @@ -48,8 +48,8 @@ PARAMETERS:

* **value** (`object`)

value pairs of metadata to attach to the alert rule that may add user-defined context, but cannot be used for matching, grouping, or routing. Defaults to map[].
Key-value pairs of metadata to attach to the alert rule that may add user-defined context, but cannot be used for matching, grouping, or routing. Defaults to `map[]`.
value pairs of metadata to attach to the alert rule. They add additional information, such as a summary or runbook_url, to help identify and investigate alerts. The dashboardUId and panelId annotations, which link alerts to a panel, must be set together. Defaults to map[].
Key-value pairs of metadata to attach to the alert rule. They add additional information, such as a `summary` or `runbook_url`, to help identify and investigate alerts. The `dashboardUId` and `panelId` annotations, which link alerts to a panel, must be set together. Defaults to `map[]`.
### fn withCondition

```jsonnet
Expand Down
42 changes: 34 additions & 8 deletions docs/raw/oncall/v1alpha1/escalation.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@
* [`fn withPersonsToNotifyNextEachTime(value)`](#fn-specparametersforproviderwithpersonstonotifynexteachtime)
* [`fn withPersonsToNotifyNextEachTimeMixin(value)`](#fn-specparametersforproviderwithpersonstonotifynexteachtimemixin)
* [`fn withPosition(value)`](#fn-specparametersforproviderwithposition)
* [`fn withSeverity(value)`](#fn-specparametersforproviderwithseverity)
* [`fn withType(value)`](#fn-specparametersforproviderwithtype)
* [`obj actionToTriggerRef`](#obj-specparametersforprovideractiontotriggerref)
* [`fn withName(value)`](#fn-specparametersforprovideractiontotriggerrefwithname)
Expand Down Expand Up @@ -170,6 +171,7 @@
* [`fn withPersonsToNotifyNextEachTime(value)`](#fn-specparametersinitproviderwithpersonstonotifynexteachtime)
* [`fn withPersonsToNotifyNextEachTimeMixin(value)`](#fn-specparametersinitproviderwithpersonstonotifynexteachtimemixin)
* [`fn withPosition(value)`](#fn-specparametersinitproviderwithposition)
* [`fn withSeverity(value)`](#fn-specparametersinitproviderwithseverity)
* [`fn withType(value)`](#fn-specparametersinitproviderwithtype)
* [`obj actionToTriggerRef`](#obj-specparametersinitprovideractiontotriggerref)
* [`fn withName(value)`](#fn-specparametersinitprovideractiontotriggerrefwithname)
Expand Down Expand Up @@ -1057,8 +1059,8 @@ PARAMETERS:

* **value** (`number`)

(Number) The duration of delay for wait type step.
The duration of delay for wait type step.
86400) seconds
The duration of delay for wait type step. (60-86400) seconds
###### fn spec.parameters.forProvider.withEscalationChainId

```jsonnet
Expand Down Expand Up @@ -1292,6 +1294,18 @@ PARAMETERS:

(Number) The position of the escalation step (starts from 0).
The position of the escalation step (starts from 0).
###### fn spec.parameters.forProvider.withSeverity

```jsonnet
spec.parameters.forProvider.withSeverity(value)
```

PARAMETERS:

* **value** (`string`)

(String) The severity of the incident for declare_incident type step.
The severity of the incident for declare_incident type step.
###### fn spec.parameters.forProvider.withType

```jsonnet
Expand All @@ -1302,8 +1316,8 @@ PARAMETERS:

* **value** (`string`)

(String) The type of escalation policy. Can be wait, notify_persons, notify_person_next_each_time, notify_on_call_from_schedule, trigger_webhook, notify_user_group, resolve, notify_whole_channel, notify_if_time_from_to, repeat_escalation, notify_team_members
The type of escalation policy. Can be wait, notify_persons, notify_person_next_each_time, notify_on_call_from_schedule, trigger_webhook, notify_user_group, resolve, notify_whole_channel, notify_if_time_from_to, repeat_escalation, notify_team_members
(String) The type of escalation policy. Can be wait, notify_persons, notify_person_next_each_time, notify_on_call_from_schedule, trigger_webhook, notify_user_group, resolve, notify_whole_channel, notify_if_time_from_to, repeat_escalation, notify_team_members, declare_incident
The type of escalation policy. Can be wait, notify_persons, notify_person_next_each_time, notify_on_call_from_schedule, trigger_webhook, notify_user_group, resolve, notify_whole_channel, notify_if_time_from_to, repeat_escalation, notify_team_members, declare_incident
###### obj spec.parameters.forProvider.actionToTriggerRef


Expand Down Expand Up @@ -1865,8 +1879,8 @@ PARAMETERS:

* **value** (`number`)

(Number) The duration of delay for wait type step.
The duration of delay for wait type step.
86400) seconds
The duration of delay for wait type step. (60-86400) seconds
###### fn spec.parameters.initProvider.withEscalationChainId

```jsonnet
Expand Down Expand Up @@ -2100,6 +2114,18 @@ PARAMETERS:

(Number) The position of the escalation step (starts from 0).
The position of the escalation step (starts from 0).
###### fn spec.parameters.initProvider.withSeverity

```jsonnet
spec.parameters.initProvider.withSeverity(value)
```

PARAMETERS:

* **value** (`string`)

(String) The severity of the incident for declare_incident type step.
The severity of the incident for declare_incident type step.
###### fn spec.parameters.initProvider.withType

```jsonnet
Expand All @@ -2110,8 +2136,8 @@ PARAMETERS:

* **value** (`string`)

(String) The type of escalation policy. Can be wait, notify_persons, notify_person_next_each_time, notify_on_call_from_schedule, trigger_webhook, notify_user_group, resolve, notify_whole_channel, notify_if_time_from_to, repeat_escalation, notify_team_members
The type of escalation policy. Can be wait, notify_persons, notify_person_next_each_time, notify_on_call_from_schedule, trigger_webhook, notify_user_group, resolve, notify_whole_channel, notify_if_time_from_to, repeat_escalation, notify_team_members
(String) The type of escalation policy. Can be wait, notify_persons, notify_person_next_each_time, notify_on_call_from_schedule, trigger_webhook, notify_user_group, resolve, notify_whole_channel, notify_if_time_from_to, repeat_escalation, notify_team_members, declare_incident
The type of escalation policy. Can be wait, notify_persons, notify_person_next_each_time, notify_on_call_from_schedule, trigger_webhook, notify_user_group, resolve, notify_whole_channel, notify_if_time_from_to, repeat_escalation, notify_team_members, declare_incident
###### obj spec.parameters.initProvider.actionToTriggerRef


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

* [email](email.md)
* [microsoftTeams](microsoftTeams.md)
* [mobileApp](mobileApp.md)
* [phoneCall](phoneCall.md)
* [slack](slack.md)
* [sms](sms.md)
Expand All @@ -20,6 +21,8 @@
* [`fn withGroupingKey(value)`](#fn-withgroupingkey)
* [`fn withMicrosoftTeams(value)`](#fn-withmicrosoftteams)
* [`fn withMicrosoftTeamsMixin(value)`](#fn-withmicrosoftteamsmixin)
* [`fn withMobileApp(value)`](#fn-withmobileapp)
* [`fn withMobileAppMixin(value)`](#fn-withmobileappmixin)
* [`fn withPhoneCall(value)`](#fn-withphonecall)
* [`fn withPhoneCallMixin(value)`](#fn-withphonecallmixin)
* [`fn withResolveSignal(value)`](#fn-withresolvesignal)
Expand Down Expand Up @@ -93,8 +96,8 @@ PARAMETERS:

* **value** (`array`)

(Block List, Max: 1) Templates for Microsoft Teams. (see below for nested schema)
Templates for Microsoft Teams.
(Block List, Max: 1) Templates for Microsoft Teams. NOTE: Microsoft Teams templates are only available on Grafana Cloud. (see below for nested schema)
Templates for Microsoft Teams. **NOTE**: Microsoft Teams templates are only available on Grafana Cloud.
### fn withMicrosoftTeamsMixin

```jsonnet
Expand All @@ -105,8 +108,32 @@ PARAMETERS:

* **value** (`array`)

(Block List, Max: 1) Templates for Microsoft Teams. (see below for nested schema)
Templates for Microsoft Teams.
(Block List, Max: 1) Templates for Microsoft Teams. NOTE: Microsoft Teams templates are only available on Grafana Cloud. (see below for nested schema)
Templates for Microsoft Teams. **NOTE**: Microsoft Teams templates are only available on Grafana Cloud.
### fn withMobileApp

```jsonnet
withMobileApp(value)
```

PARAMETERS:

* **value** (`array`)

(Block List, Max: 1) Templates for Mobile app push notifications. (see below for nested schema)
Templates for Mobile app push notifications.
### fn withMobileAppMixin

```jsonnet
withMobileAppMixin(value)
```

PARAMETERS:

* **value** (`array`)

(Block List, Max: 1) Templates for Mobile app push notifications. (see below for nested schema)
Templates for Mobile app push notifications.
### fn withPhoneCall

```jsonnet
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# mobileApp



## Index

* [`fn withMessage(value)`](#fn-withmessage)
* [`fn withTitle(value)`](#fn-withtitle)

## Fields

### fn withMessage

```jsonnet
withMessage(value)
```

PARAMETERS:

* **value** (`string`)

(String) Template for Alert message.
Template for Alert message.
### fn withTitle

```jsonnet
withTitle(value)
```

PARAMETERS:

* **value** (`string`)

(String) Template for Alert title.
Template for Alert title.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

* [email](email.md)
* [microsoftTeams](microsoftTeams.md)
* [mobileApp](mobileApp.md)
* [phoneCall](phoneCall.md)
* [slack](slack.md)
* [sms](sms.md)
Expand All @@ -20,6 +21,8 @@
* [`fn withGroupingKey(value)`](#fn-withgroupingkey)
* [`fn withMicrosoftTeams(value)`](#fn-withmicrosoftteams)
* [`fn withMicrosoftTeamsMixin(value)`](#fn-withmicrosoftteamsmixin)
* [`fn withMobileApp(value)`](#fn-withmobileapp)
* [`fn withMobileAppMixin(value)`](#fn-withmobileappmixin)
* [`fn withPhoneCall(value)`](#fn-withphonecall)
* [`fn withPhoneCallMixin(value)`](#fn-withphonecallmixin)
* [`fn withResolveSignal(value)`](#fn-withresolvesignal)
Expand Down Expand Up @@ -93,8 +96,8 @@ PARAMETERS:

* **value** (`array`)

(Block List, Max: 1) Templates for Microsoft Teams. (see below for nested schema)
Templates for Microsoft Teams.
(Block List, Max: 1) Templates for Microsoft Teams. NOTE: Microsoft Teams templates are only available on Grafana Cloud. (see below for nested schema)
Templates for Microsoft Teams. **NOTE**: Microsoft Teams templates are only available on Grafana Cloud.
### fn withMicrosoftTeamsMixin

```jsonnet
Expand All @@ -105,8 +108,32 @@ PARAMETERS:

* **value** (`array`)

(Block List, Max: 1) Templates for Microsoft Teams. (see below for nested schema)
Templates for Microsoft Teams.
(Block List, Max: 1) Templates for Microsoft Teams. NOTE: Microsoft Teams templates are only available on Grafana Cloud. (see below for nested schema)
Templates for Microsoft Teams. **NOTE**: Microsoft Teams templates are only available on Grafana Cloud.
### fn withMobileApp

```jsonnet
withMobileApp(value)
```

PARAMETERS:

* **value** (`array`)

(Block List, Max: 1) Templates for Mobile app push notifications. (see below for nested schema)
Templates for Mobile app push notifications.
### fn withMobileAppMixin

```jsonnet
withMobileAppMixin(value)
```

PARAMETERS:

* **value** (`array`)

(Block List, Max: 1) Templates for Mobile app push notifications. (see below for nested schema)
Templates for Mobile app push notifications.
### fn withPhoneCall

```jsonnet
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# mobileApp



## Index

* [`fn withMessage(value)`](#fn-withmessage)
* [`fn withTitle(value)`](#fn-withtitle)

## Fields

### fn withMessage

```jsonnet
withMessage(value)
```

PARAMETERS:

* **value** (`string`)

(String) Template for Alert message.
Template for Alert message.
### fn withTitle

```jsonnet
withTitle(value)
```

PARAMETERS:

* **value** (`string`)

(String) Template for Alert title.
Template for Alert title.
Loading

0 comments on commit b68c524

Please sign in to comment.