@pulumiverse/grafana 2.5.0 → 2.6.0-alpha.1759503730

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,77 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * This resource is currently under development. Documentation will be provided in a future release.
6
+ */
7
+ export declare class AlertEnrichment extends pulumi.CustomResource {
8
+ /**
9
+ * Get an existing AlertEnrichment resource's state with the given name, ID, and optional extra
10
+ * properties used to qualify the lookup.
11
+ *
12
+ * @param name The _unique_ name of the resulting resource.
13
+ * @param id The _unique_ provider ID of the resource to lookup.
14
+ * @param state Any extra arguments used during the lookup.
15
+ * @param opts Optional settings to control the behavior of the CustomResource.
16
+ */
17
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: AlertEnrichmentState, opts?: pulumi.CustomResourceOptions): AlertEnrichment;
18
+ /**
19
+ * Returns true if the given object is an instance of AlertEnrichment. This is designed to work even
20
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
21
+ */
22
+ static isInstance(obj: any): obj is AlertEnrichment;
23
+ /**
24
+ * The metadata of the resource.
25
+ */
26
+ readonly metadata: pulumi.Output<outputs.alerting.AlertEnrichmentMetadata | undefined>;
27
+ /**
28
+ * Options for applying the resource.
29
+ */
30
+ readonly options: pulumi.Output<outputs.alerting.AlertEnrichmentOptions | undefined>;
31
+ /**
32
+ * The spec of the resource.
33
+ */
34
+ readonly spec: pulumi.Output<outputs.alerting.AlertEnrichmentSpec | undefined>;
35
+ /**
36
+ * Create a AlertEnrichment resource with the given unique name, arguments, and options.
37
+ *
38
+ * @param name The _unique_ name of the resource.
39
+ * @param args The arguments to use to populate this resource's properties.
40
+ * @param opts A bag of options that control this resource's behavior.
41
+ */
42
+ constructor(name: string, args?: AlertEnrichmentArgs, opts?: pulumi.CustomResourceOptions);
43
+ }
44
+ /**
45
+ * Input properties used for looking up and filtering AlertEnrichment resources.
46
+ */
47
+ export interface AlertEnrichmentState {
48
+ /**
49
+ * The metadata of the resource.
50
+ */
51
+ metadata?: pulumi.Input<inputs.alerting.AlertEnrichmentMetadata>;
52
+ /**
53
+ * Options for applying the resource.
54
+ */
55
+ options?: pulumi.Input<inputs.alerting.AlertEnrichmentOptions>;
56
+ /**
57
+ * The spec of the resource.
58
+ */
59
+ spec?: pulumi.Input<inputs.alerting.AlertEnrichmentSpec>;
60
+ }
61
+ /**
62
+ * The set of arguments for constructing a AlertEnrichment resource.
63
+ */
64
+ export interface AlertEnrichmentArgs {
65
+ /**
66
+ * The metadata of the resource.
67
+ */
68
+ metadata?: pulumi.Input<inputs.alerting.AlertEnrichmentMetadata>;
69
+ /**
70
+ * Options for applying the resource.
71
+ */
72
+ options?: pulumi.Input<inputs.alerting.AlertEnrichmentOptions>;
73
+ /**
74
+ * The spec of the resource.
75
+ */
76
+ spec?: pulumi.Input<inputs.alerting.AlertEnrichmentSpec>;
77
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.AlertEnrichment = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * This resource is currently under development. Documentation will be provided in a future release.
10
+ */
11
+ class AlertEnrichment extends pulumi.CustomResource {
12
+ /**
13
+ * Get an existing AlertEnrichment resource's state with the given name, ID, and optional extra
14
+ * properties used to qualify the lookup.
15
+ *
16
+ * @param name The _unique_ name of the resulting resource.
17
+ * @param id The _unique_ provider ID of the resource to lookup.
18
+ * @param state Any extra arguments used during the lookup.
19
+ * @param opts Optional settings to control the behavior of the CustomResource.
20
+ */
21
+ static get(name, id, state, opts) {
22
+ return new AlertEnrichment(name, state, { ...opts, id: id });
23
+ }
24
+ /**
25
+ * Returns true if the given object is an instance of AlertEnrichment. This is designed to work even
26
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
27
+ */
28
+ static isInstance(obj) {
29
+ if (obj === undefined || obj === null) {
30
+ return false;
31
+ }
32
+ return obj['__pulumiType'] === AlertEnrichment.__pulumiType;
33
+ }
34
+ constructor(name, argsOrState, opts) {
35
+ let resourceInputs = {};
36
+ opts = opts || {};
37
+ if (opts.id) {
38
+ const state = argsOrState;
39
+ resourceInputs["metadata"] = state?.metadata;
40
+ resourceInputs["options"] = state?.options;
41
+ resourceInputs["spec"] = state?.spec;
42
+ }
43
+ else {
44
+ const args = argsOrState;
45
+ resourceInputs["metadata"] = args?.metadata;
46
+ resourceInputs["options"] = args?.options;
47
+ resourceInputs["spec"] = args?.spec;
48
+ }
49
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
50
+ super(AlertEnrichment.__pulumiType, name, resourceInputs, opts);
51
+ }
52
+ }
53
+ exports.AlertEnrichment = AlertEnrichment;
54
+ /** @internal */
55
+ AlertEnrichment.__pulumiType = 'grafana:alerting/alertEnrichment:AlertEnrichment';
56
+ //# sourceMappingURL=alertEnrichment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alertEnrichment.js","sourceRoot":"","sources":["../../alerting/alertEnrichment.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;GAEG;AACH,MAAa,eAAgB,SAAQ,MAAM,CAAC,cAAc;IACtD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA4B,EAAE,IAAmC;QAC1H,OAAO,IAAI,eAAe,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACtE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,eAAe,CAAC,YAAY,CAAC;IAChE,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAwD,EAAE,IAAmC;QACnH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA+C,CAAC;YAC9D,cAAc,CAAC,UAAU,CAAC,GAAG,KAAK,EAAE,QAAQ,CAAC;YAC7C,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,EAAE,OAAO,CAAC;YAC3C,cAAc,CAAC,MAAM,CAAC,GAAG,KAAK,EAAE,IAAI,CAAC;SACxC;aAAM;YACH,MAAM,IAAI,GAAG,WAA8C,CAAC;YAC5D,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,EAAE,QAAQ,CAAC;YAC5C,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;YAC1C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;SACvC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,eAAe,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACpE,CAAC;;AAjEL,0CAkEC;AApDG,gBAAgB;AACO,4BAAY,GAAG,kDAAkD,CAAC"}
@@ -1,3 +1,6 @@
1
+ export { AlertEnrichmentArgs, AlertEnrichmentState } from "./alertEnrichment";
2
+ export type AlertEnrichment = import("./alertEnrichment").AlertEnrichment;
3
+ export declare const AlertEnrichment: typeof import("./alertEnrichment").AlertEnrichment;
1
4
  export { ContactPointArgs, ContactPointState } from "./contactPoint";
2
5
  export type ContactPoint = import("./contactPoint").ContactPoint;
3
6
  export declare const ContactPoint: typeof import("./contactPoint").ContactPoint;
package/alerting/index.js CHANGED
@@ -2,9 +2,11 @@
2
2
  // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.RuleGroup = exports.NotificationPolicy = exports.MuteTiming = exports.MessageTemplate = exports.ContactPoint = void 0;
5
+ exports.RuleGroup = exports.NotificationPolicy = exports.MuteTiming = exports.MessageTemplate = exports.ContactPoint = exports.AlertEnrichment = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
+ exports.AlertEnrichment = null;
9
+ utilities.lazyLoad(exports, ["AlertEnrichment"], () => require("./alertEnrichment"));
8
10
  exports.ContactPoint = null;
9
11
  utilities.lazyLoad(exports, ["ContactPoint"], () => require("./contactPoint"));
10
12
  exports.MessageTemplate = null;
@@ -19,6 +21,8 @@ const _module = {
19
21
  version: utilities.getVersion(),
20
22
  construct: (name, type, urn) => {
21
23
  switch (type) {
24
+ case "grafana:alerting/alertEnrichment:AlertEnrichment":
25
+ return new exports.AlertEnrichment(name, undefined, { urn });
22
26
  case "grafana:alerting/contactPoint:ContactPoint":
23
27
  return new exports.ContactPoint(name, undefined, { urn });
24
28
  case "grafana:alerting/messageTemplate:MessageTemplate":
@@ -34,6 +38,7 @@ const _module = {
34
38
  }
35
39
  },
36
40
  };
41
+ pulumi.runtime.registerResourceModule("grafana", "alerting/alertEnrichment", _module);
37
42
  pulumi.runtime.registerResourceModule("grafana", "alerting/contactPoint", _module);
38
43
  pulumi.runtime.registerResourceModule("grafana", "alerting/messageTemplate", _module);
39
44
  pulumi.runtime.registerResourceModule("grafana", "alerting/muteTiming", _module);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../alerting/index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEj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AAwC;gBACzC,OAAO,IAAI,kBAAU,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACxD,KAAK,wDAAwD;gBACzD,OAAO,IAAI,0BAAkB,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YAChE,KAAK,sCAAsC;gBACvC,OAAO,IAAI,iBAAS,CAAC,IAAI,EAAO,SAAS,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;YACvD;gBACI,MAAM,IAAI,KAAK,CAAC,yBAAyB,IAAI,EAAE,CAAC,CAAC;SACxD;IACL,CAAC;CACJ,CAAC;AACF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,0BAA0B,EAAE,OAAO,CAAC,CAAA;AACrF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,uBAAuB,EAAE,OAAO,CAAC,CAAA;AAClF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,0BAA0B,EAAE,OAAO,CAAC,CAAA;AACrF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,qBAAqB,EAAE,OAAO,CAAC,CAAA;AAChF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,6BAA6B,EAAE,OAAO,CAAC,CAAA;AACxF,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,oBAAoB,EAAE,OAAO,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumiverse/grafana",
3
- "version": "2.5.0",
3
+ "version": "2.6.0-alpha.1759503730",
4
4
  "description": "A Pulumi package for creating and managing grafana.",
5
5
  "keywords": [
6
6
  "pulumi",
@@ -24,7 +24,7 @@
24
24
  "pulumi": {
25
25
  "resource": true,
26
26
  "name": "grafana",
27
- "version": "2.5.0",
27
+ "version": "2.6.0-alpha.1759503730",
28
28
  "server": "github://api.github.com/pulumiverse"
29
29
  }
30
30
  }
package/types/input.d.ts CHANGED
@@ -1,6 +1,92 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "../types/input";
3
3
  export declare namespace alerting {
4
+ interface AlertEnrichmentMetadata {
5
+ /**
6
+ * The UID of the folder to save the resource in.
7
+ */
8
+ folderUid?: pulumi.Input<string>;
9
+ /**
10
+ * The unique identifier of the resource.
11
+ */
12
+ uid: pulumi.Input<string>;
13
+ /**
14
+ * The full URL of the resource.
15
+ */
16
+ url?: pulumi.Input<string>;
17
+ /**
18
+ * The globally unique identifier of a resource, used by the API for tracking.
19
+ */
20
+ uuid?: pulumi.Input<string>;
21
+ /**
22
+ * The version of the resource.
23
+ */
24
+ version?: pulumi.Input<string>;
25
+ }
26
+ interface AlertEnrichmentOptions {
27
+ /**
28
+ * Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
29
+ */
30
+ overwrite?: pulumi.Input<boolean>;
31
+ }
32
+ interface AlertEnrichmentSpec {
33
+ /**
34
+ * UIDs of alert rules this enrichment applies to. If empty, applies to all alert rules.
35
+ */
36
+ alertRuleUids?: pulumi.Input<pulumi.Input<string>[]>;
37
+ /**
38
+ * Annotation matchers that an alert must satisfy for this enrichment to apply. Each matcher is an object with: 'type' (string, one of: =, !=, =~, !~), 'name' (string, annotation key to match), 'value' (string, annotation value to compare against, supports regex for =~/!~ operators).
39
+ */
40
+ annotationMatchers?: pulumi.Input<pulumi.Input<inputs.alerting.AlertEnrichmentSpecAnnotationMatcher>[]>;
41
+ /**
42
+ * Description of the alert enrichment.
43
+ */
44
+ description?: pulumi.Input<string>;
45
+ /**
46
+ * Label matchers that an alert must satisfy for this enrichment to apply. Each matcher is an object with: 'type' (string, one of: =, !=, =~, !~), 'name' (string, label key to match), 'value' (string, label value to compare against, supports regex for =~/!~ operators).
47
+ */
48
+ labelMatchers?: pulumi.Input<pulumi.Input<inputs.alerting.AlertEnrichmentSpecLabelMatcher>[]>;
49
+ /**
50
+ * Receiver names to match. If empty, applies to all receivers.
51
+ */
52
+ receivers?: pulumi.Input<pulumi.Input<string>[]>;
53
+ /**
54
+ * Enrichment step. Can be repeated multiple times to define a sequence of steps. Each step must contain exactly one enrichment block.
55
+ */
56
+ steps?: pulumi.Input<pulumi.Input<inputs.alerting.AlertEnrichmentSpecStep>[]>;
57
+ /**
58
+ * The title of the alert enrichment.
59
+ */
60
+ title: pulumi.Input<string>;
61
+ }
62
+ interface AlertEnrichmentSpecAnnotationMatcher {
63
+ name: pulumi.Input<string>;
64
+ type: pulumi.Input<string>;
65
+ value: pulumi.Input<string>;
66
+ }
67
+ interface AlertEnrichmentSpecLabelMatcher {
68
+ name: pulumi.Input<string>;
69
+ type: pulumi.Input<string>;
70
+ value: pulumi.Input<string>;
71
+ }
72
+ interface AlertEnrichmentSpecStep {
73
+ /**
74
+ * Assign annotations to an alert.
75
+ */
76
+ assign?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepAssign>;
77
+ }
78
+ interface AlertEnrichmentSpecStepAssign {
79
+ /**
80
+ * Map of annotation names to values to set on matching alerts.
81
+ */
82
+ annotations?: pulumi.Input<{
83
+ [key: string]: pulumi.Input<string>;
84
+ }>;
85
+ /**
86
+ * Maximum execution time (e.g., '30s', '1m')
87
+ */
88
+ timeout?: pulumi.Input<string>;
89
+ }
4
90
  interface ContactPointAlertmanager {
5
91
  /**
6
92
  * The password component of the basic auth credentials to use.
@@ -836,6 +922,20 @@ export declare namespace alerting {
836
922
  * Whether to disable sending resolve messages. Defaults to `false`.
837
923
  */
838
924
  disableResolveMessage?: pulumi.Input<boolean>;
925
+ /**
926
+ * Custom headers to attach to the request.
927
+ */
928
+ headers?: pulumi.Input<{
929
+ [key: string]: pulumi.Input<string>;
930
+ }>;
931
+ /**
932
+ * HMAC signature configuration options.
933
+ */
934
+ hmacConfig?: pulumi.Input<inputs.alerting.ContactPointWebhookHmacConfig>;
935
+ /**
936
+ * Common HTTP client options.
937
+ */
938
+ httpConfig?: pulumi.Input<inputs.alerting.ContactPointWebhookHttpConfig>;
839
939
  /**
840
940
  * The HTTP method to use in the request. Defaults to `POST`.
841
941
  */
@@ -848,6 +948,10 @@ export declare namespace alerting {
848
948
  * Custom message. You can use template variables.
849
949
  */
850
950
  message?: pulumi.Input<string>;
951
+ /**
952
+ * Optionally provide a templated payload. Overrides 'Message' and 'Title' field.
953
+ */
954
+ payload?: pulumi.Input<inputs.alerting.ContactPointWebhookPayload>;
851
955
  /**
852
956
  * Additional custom properties to attach to the notifier. Defaults to `map[]`.
853
957
  */
@@ -873,6 +977,108 @@ export declare namespace alerting {
873
977
  */
874
978
  url: pulumi.Input<string>;
875
979
  }
980
+ interface ContactPointWebhookHmacConfig {
981
+ /**
982
+ * The header in which the HMAC signature will be included. Defaults to `X-Grafana-Alerting-Signature`.
983
+ */
984
+ header?: pulumi.Input<string>;
985
+ /**
986
+ * The secret key used to generate the HMAC signature.
987
+ */
988
+ secret: pulumi.Input<string>;
989
+ /**
990
+ * If set, the timestamp will be included in the HMAC signature. The value should be the name of the header to use.
991
+ */
992
+ timestampHeader?: pulumi.Input<string>;
993
+ }
994
+ interface ContactPointWebhookHttpConfig {
995
+ /**
996
+ * OAuth2 configuration options.
997
+ */
998
+ oauth2?: pulumi.Input<inputs.alerting.ContactPointWebhookHttpConfigOauth2>;
999
+ }
1000
+ interface ContactPointWebhookHttpConfigOauth2 {
1001
+ /**
1002
+ * Client ID to use when authenticating.
1003
+ */
1004
+ clientId: pulumi.Input<string>;
1005
+ /**
1006
+ * Client secret to use when authenticating.
1007
+ */
1008
+ clientSecret: pulumi.Input<string>;
1009
+ /**
1010
+ * Optional parameters to append to the access token request.
1011
+ */
1012
+ endpointParams?: pulumi.Input<{
1013
+ [key: string]: pulumi.Input<string>;
1014
+ }>;
1015
+ /**
1016
+ * Optional proxy configuration for OAuth2 requests.
1017
+ */
1018
+ proxyConfig?: pulumi.Input<inputs.alerting.ContactPointWebhookHttpConfigOauth2ProxyConfig>;
1019
+ /**
1020
+ * Optional scopes to request when obtaining an access token.
1021
+ */
1022
+ scopes?: pulumi.Input<pulumi.Input<string>[]>;
1023
+ /**
1024
+ * Optional TLS configuration options for OAuth2 requests.
1025
+ */
1026
+ tlsConfig?: pulumi.Input<inputs.alerting.ContactPointWebhookHttpConfigOauth2TlsConfig>;
1027
+ /**
1028
+ * URL for the access token endpoint.
1029
+ */
1030
+ tokenUrl: pulumi.Input<string>;
1031
+ }
1032
+ interface ContactPointWebhookHttpConfigOauth2ProxyConfig {
1033
+ /**
1034
+ * Comma-separated list of addresses that should not use a proxy.
1035
+ */
1036
+ noProxy?: pulumi.Input<string>;
1037
+ /**
1038
+ * Optional headers to send to proxies during CONNECT requests.
1039
+ */
1040
+ proxyConnectHeader?: pulumi.Input<{
1041
+ [key: string]: pulumi.Input<string>;
1042
+ }>;
1043
+ /**
1044
+ * Use environment HTTP*PROXY, HTTPS*PROXY and NO_PROXY to determine proxies. Defaults to `false`.
1045
+ */
1046
+ proxyFromEnvironment?: pulumi.Input<boolean>;
1047
+ /**
1048
+ * HTTP proxy server to use to connect to the targets.
1049
+ */
1050
+ proxyUrl?: pulumi.Input<string>;
1051
+ }
1052
+ interface ContactPointWebhookHttpConfigOauth2TlsConfig {
1053
+ /**
1054
+ * Certificate in PEM format to use when verifying the server's certificate chain.
1055
+ */
1056
+ caCertificate?: pulumi.Input<string>;
1057
+ /**
1058
+ * Client certificate in PEM format to use when connecting to the server.
1059
+ */
1060
+ clientCertificate?: pulumi.Input<string>;
1061
+ /**
1062
+ * Client key in PEM format to use when connecting to the server.
1063
+ */
1064
+ clientKey?: pulumi.Input<string>;
1065
+ /**
1066
+ * Do not verify the server's certificate chain and host name. Defaults to `false`.
1067
+ */
1068
+ insecureSkipVerify?: pulumi.Input<boolean>;
1069
+ }
1070
+ interface ContactPointWebhookPayload {
1071
+ /**
1072
+ * Custom payload template.
1073
+ */
1074
+ template: pulumi.Input<string>;
1075
+ /**
1076
+ * Optionally provide a variables to be used in the payload template. They will be available in the template as `.Vars.<variable_name>`.
1077
+ */
1078
+ vars?: pulumi.Input<{
1079
+ [key: string]: pulumi.Input<string>;
1080
+ }>;
1081
+ }
876
1082
  interface ContactPointWecom {
877
1083
  /**
878
1084
  * Agent ID added to the request payload when using APIAPP.
package/types/output.d.ts CHANGED
@@ -1,5 +1,91 @@
1
1
  import * as outputs from "../types/output";
2
2
  export declare namespace alerting {
3
+ interface AlertEnrichmentMetadata {
4
+ /**
5
+ * The UID of the folder to save the resource in.
6
+ */
7
+ folderUid?: string;
8
+ /**
9
+ * The unique identifier of the resource.
10
+ */
11
+ uid: string;
12
+ /**
13
+ * The full URL of the resource.
14
+ */
15
+ url: string;
16
+ /**
17
+ * The globally unique identifier of a resource, used by the API for tracking.
18
+ */
19
+ uuid: string;
20
+ /**
21
+ * The version of the resource.
22
+ */
23
+ version: string;
24
+ }
25
+ interface AlertEnrichmentOptions {
26
+ /**
27
+ * Set to true if you want to overwrite existing resource with newer version, same resource title in folder or same resource uid.
28
+ */
29
+ overwrite?: boolean;
30
+ }
31
+ interface AlertEnrichmentSpec {
32
+ /**
33
+ * UIDs of alert rules this enrichment applies to. If empty, applies to all alert rules.
34
+ */
35
+ alertRuleUids?: string[];
36
+ /**
37
+ * Annotation matchers that an alert must satisfy for this enrichment to apply. Each matcher is an object with: 'type' (string, one of: =, !=, =~, !~), 'name' (string, annotation key to match), 'value' (string, annotation value to compare against, supports regex for =~/!~ operators).
38
+ */
39
+ annotationMatchers?: outputs.alerting.AlertEnrichmentSpecAnnotationMatcher[];
40
+ /**
41
+ * Description of the alert enrichment.
42
+ */
43
+ description?: string;
44
+ /**
45
+ * Label matchers that an alert must satisfy for this enrichment to apply. Each matcher is an object with: 'type' (string, one of: =, !=, =~, !~), 'name' (string, label key to match), 'value' (string, label value to compare against, supports regex for =~/!~ operators).
46
+ */
47
+ labelMatchers?: outputs.alerting.AlertEnrichmentSpecLabelMatcher[];
48
+ /**
49
+ * Receiver names to match. If empty, applies to all receivers.
50
+ */
51
+ receivers?: string[];
52
+ /**
53
+ * Enrichment step. Can be repeated multiple times to define a sequence of steps. Each step must contain exactly one enrichment block.
54
+ */
55
+ steps?: outputs.alerting.AlertEnrichmentSpecStep[];
56
+ /**
57
+ * The title of the alert enrichment.
58
+ */
59
+ title: string;
60
+ }
61
+ interface AlertEnrichmentSpecAnnotationMatcher {
62
+ name: string;
63
+ type: string;
64
+ value: string;
65
+ }
66
+ interface AlertEnrichmentSpecLabelMatcher {
67
+ name: string;
68
+ type: string;
69
+ value: string;
70
+ }
71
+ interface AlertEnrichmentSpecStep {
72
+ /**
73
+ * Assign annotations to an alert.
74
+ */
75
+ assign?: outputs.alerting.AlertEnrichmentSpecStepAssign;
76
+ }
77
+ interface AlertEnrichmentSpecStepAssign {
78
+ /**
79
+ * Map of annotation names to values to set on matching alerts.
80
+ */
81
+ annotations?: {
82
+ [key: string]: string;
83
+ };
84
+ /**
85
+ * Maximum execution time (e.g., '30s', '1m')
86
+ */
87
+ timeout?: string;
88
+ }
3
89
  interface ContactPointAlertmanager {
4
90
  /**
5
91
  * The password component of the basic auth credentials to use.
@@ -835,6 +921,20 @@ export declare namespace alerting {
835
921
  * Whether to disable sending resolve messages. Defaults to `false`.
836
922
  */
837
923
  disableResolveMessage?: boolean;
924
+ /**
925
+ * Custom headers to attach to the request.
926
+ */
927
+ headers?: {
928
+ [key: string]: string;
929
+ };
930
+ /**
931
+ * HMAC signature configuration options.
932
+ */
933
+ hmacConfig?: outputs.alerting.ContactPointWebhookHmacConfig;
934
+ /**
935
+ * Common HTTP client options.
936
+ */
937
+ httpConfig?: outputs.alerting.ContactPointWebhookHttpConfig;
838
938
  /**
839
939
  * The HTTP method to use in the request. Defaults to `POST`.
840
940
  */
@@ -847,6 +947,10 @@ export declare namespace alerting {
847
947
  * Custom message. You can use template variables.
848
948
  */
849
949
  message?: string;
950
+ /**
951
+ * Optionally provide a templated payload. Overrides 'Message' and 'Title' field.
952
+ */
953
+ payload?: outputs.alerting.ContactPointWebhookPayload;
850
954
  /**
851
955
  * Additional custom properties to attach to the notifier. Defaults to `map[]`.
852
956
  */
@@ -872,6 +976,108 @@ export declare namespace alerting {
872
976
  */
873
977
  url: string;
874
978
  }
979
+ interface ContactPointWebhookHmacConfig {
980
+ /**
981
+ * The header in which the HMAC signature will be included. Defaults to `X-Grafana-Alerting-Signature`.
982
+ */
983
+ header?: string;
984
+ /**
985
+ * The secret key used to generate the HMAC signature.
986
+ */
987
+ secret: string;
988
+ /**
989
+ * If set, the timestamp will be included in the HMAC signature. The value should be the name of the header to use.
990
+ */
991
+ timestampHeader?: string;
992
+ }
993
+ interface ContactPointWebhookHttpConfig {
994
+ /**
995
+ * OAuth2 configuration options.
996
+ */
997
+ oauth2?: outputs.alerting.ContactPointWebhookHttpConfigOauth2;
998
+ }
999
+ interface ContactPointWebhookHttpConfigOauth2 {
1000
+ /**
1001
+ * Client ID to use when authenticating.
1002
+ */
1003
+ clientId: string;
1004
+ /**
1005
+ * Client secret to use when authenticating.
1006
+ */
1007
+ clientSecret: string;
1008
+ /**
1009
+ * Optional parameters to append to the access token request.
1010
+ */
1011
+ endpointParams?: {
1012
+ [key: string]: string;
1013
+ };
1014
+ /**
1015
+ * Optional proxy configuration for OAuth2 requests.
1016
+ */
1017
+ proxyConfig?: outputs.alerting.ContactPointWebhookHttpConfigOauth2ProxyConfig;
1018
+ /**
1019
+ * Optional scopes to request when obtaining an access token.
1020
+ */
1021
+ scopes?: string[];
1022
+ /**
1023
+ * Optional TLS configuration options for OAuth2 requests.
1024
+ */
1025
+ tlsConfig?: outputs.alerting.ContactPointWebhookHttpConfigOauth2TlsConfig;
1026
+ /**
1027
+ * URL for the access token endpoint.
1028
+ */
1029
+ tokenUrl: string;
1030
+ }
1031
+ interface ContactPointWebhookHttpConfigOauth2ProxyConfig {
1032
+ /**
1033
+ * Comma-separated list of addresses that should not use a proxy.
1034
+ */
1035
+ noProxy?: string;
1036
+ /**
1037
+ * Optional headers to send to proxies during CONNECT requests.
1038
+ */
1039
+ proxyConnectHeader?: {
1040
+ [key: string]: string;
1041
+ };
1042
+ /**
1043
+ * Use environment HTTP*PROXY, HTTPS*PROXY and NO_PROXY to determine proxies. Defaults to `false`.
1044
+ */
1045
+ proxyFromEnvironment?: boolean;
1046
+ /**
1047
+ * HTTP proxy server to use to connect to the targets.
1048
+ */
1049
+ proxyUrl?: string;
1050
+ }
1051
+ interface ContactPointWebhookHttpConfigOauth2TlsConfig {
1052
+ /**
1053
+ * Certificate in PEM format to use when verifying the server's certificate chain.
1054
+ */
1055
+ caCertificate?: string;
1056
+ /**
1057
+ * Client certificate in PEM format to use when connecting to the server.
1058
+ */
1059
+ clientCertificate?: string;
1060
+ /**
1061
+ * Client key in PEM format to use when connecting to the server.
1062
+ */
1063
+ clientKey?: string;
1064
+ /**
1065
+ * Do not verify the server's certificate chain and host name. Defaults to `false`.
1066
+ */
1067
+ insecureSkipVerify?: boolean;
1068
+ }
1069
+ interface ContactPointWebhookPayload {
1070
+ /**
1071
+ * Custom payload template.
1072
+ */
1073
+ template: string;
1074
+ /**
1075
+ * Optionally provide a variables to be used in the payload template. They will be available in the template as `.Vars.<variable_name>`.
1076
+ */
1077
+ vars?: {
1078
+ [key: string]: string;
1079
+ };
1080
+ }
875
1081
  interface ContactPointWecom {
876
1082
  /**
877
1083
  * Agent ID added to the request payload when using APIAPP.