@pulumiverse/grafana 2.5.0 → 2.6.0-alpha.1759504609

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/cloud/getIps.d.ts CHANGED
@@ -32,6 +32,10 @@ export interface GetIpsResult {
32
32
  * Set of IP addresses that are used for hosted metrics.
33
33
  */
34
34
  readonly hostedMetrics: string[];
35
+ /**
36
+ * Set of IP addresses that are used for hosted profiles.
37
+ */
38
+ readonly hostedProfiles: string[];
35
39
  /**
36
40
  * Set of IP addresses that are used for hosted traces.
37
41
  */
@@ -1 +1 @@
1
- {"version":3,"file":"getIps.js","sourceRoot":"","sources":["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,OAAO,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,6BAA6B,EAAE,EACjE,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAJD,oCAIC"}
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.1759504609",
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.1759504609",
28
28
  "server": "github://api.github.com/pulumiverse"
29
29
  }
30
30
  }
package/types/input.d.ts CHANGED
@@ -1,6 +1,196 @@
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
+ * Integrate with Grafana Asserts for enrichment.
75
+ */
76
+ asserts?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepAsserts>;
77
+ /**
78
+ * Assign annotations to an alert.
79
+ */
80
+ assign?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepAssign>;
81
+ /**
82
+ * Use AI assistant to investigate alerts and add insights.
83
+ */
84
+ assistantInvestigations?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepAssistantInvestigations>;
85
+ /**
86
+ * Query Grafana data sources and add results to alerts.
87
+ */
88
+ dataSource?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepDataSource>;
89
+ /**
90
+ * Generate AI explanation and store in an annotation.
91
+ */
92
+ explain?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepExplain>;
93
+ /**
94
+ * Call an external HTTP service for enrichment.
95
+ */
96
+ external?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepExternal>;
97
+ /**
98
+ * Analyze alerts for patterns and insights.
99
+ */
100
+ sift?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepSift>;
101
+ }
102
+ interface AlertEnrichmentSpecStepAsserts {
103
+ /**
104
+ * Maximum execution time (e.g., '30s', '1m')
105
+ */
106
+ timeout?: pulumi.Input<string>;
107
+ }
108
+ interface AlertEnrichmentSpecStepAssign {
109
+ /**
110
+ * Map of annotation names to values to set on matching alerts.
111
+ */
112
+ annotations?: pulumi.Input<{
113
+ [key: string]: pulumi.Input<string>;
114
+ }>;
115
+ /**
116
+ * Maximum execution time (e.g., '30s', '1m')
117
+ */
118
+ timeout?: pulumi.Input<string>;
119
+ }
120
+ interface AlertEnrichmentSpecStepAssistantInvestigations {
121
+ /**
122
+ * Maximum execution time (e.g., '30s', '1m')
123
+ */
124
+ timeout?: pulumi.Input<string>;
125
+ }
126
+ interface AlertEnrichmentSpecStepDataSource {
127
+ /**
128
+ * Logs query configuration for querying log data sources.
129
+ */
130
+ logsQuery?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepDataSourceLogsQuery>;
131
+ /**
132
+ * Raw query configuration for advanced data source queries.
133
+ */
134
+ rawQuery?: pulumi.Input<inputs.alerting.AlertEnrichmentSpecStepDataSourceRawQuery>;
135
+ /**
136
+ * Maximum execution time (e.g., '30s', '1m')
137
+ */
138
+ timeout?: pulumi.Input<string>;
139
+ }
140
+ interface AlertEnrichmentSpecStepDataSourceLogsQuery {
141
+ /**
142
+ * Data source type (e.g., 'loki').
143
+ */
144
+ dataSourceType?: pulumi.Input<string>;
145
+ /**
146
+ * UID of the data source to query.
147
+ */
148
+ dataSourceUid?: pulumi.Input<string>;
149
+ /**
150
+ * Log query expression to execute.
151
+ */
152
+ expr?: pulumi.Input<string>;
153
+ /**
154
+ * Maximum number of log lines to include. Defaults to 3.
155
+ */
156
+ maxLines?: pulumi.Input<number>;
157
+ }
158
+ interface AlertEnrichmentSpecStepDataSourceRawQuery {
159
+ /**
160
+ * Reference ID for correlating queries.
161
+ */
162
+ refId?: pulumi.Input<string>;
163
+ /**
164
+ * Raw request payload for the data source query.
165
+ */
166
+ request?: pulumi.Input<string>;
167
+ }
168
+ interface AlertEnrichmentSpecStepExplain {
169
+ /**
170
+ * Annotation name to set the explanation in. Defaults to 'ai_explanation'.
171
+ */
172
+ annotation?: pulumi.Input<string>;
173
+ /**
174
+ * Maximum execution time (e.g., '30s', '1m')
175
+ */
176
+ timeout?: pulumi.Input<string>;
177
+ }
178
+ interface AlertEnrichmentSpecStepExternal {
179
+ /**
180
+ * Maximum execution time (e.g., '30s', '1m')
181
+ */
182
+ timeout?: pulumi.Input<string>;
183
+ /**
184
+ * HTTP endpoint URL to call for enrichment
185
+ */
186
+ url?: pulumi.Input<string>;
187
+ }
188
+ interface AlertEnrichmentSpecStepSift {
189
+ /**
190
+ * Maximum execution time (e.g., '30s', '1m')
191
+ */
192
+ timeout?: pulumi.Input<string>;
193
+ }
4
194
  interface ContactPointAlertmanager {
5
195
  /**
6
196
  * The password component of the basic auth credentials to use.
@@ -836,6 +1026,20 @@ export declare namespace alerting {
836
1026
  * Whether to disable sending resolve messages. Defaults to `false`.
837
1027
  */
838
1028
  disableResolveMessage?: pulumi.Input<boolean>;
1029
+ /**
1030
+ * Custom headers to attach to the request.
1031
+ */
1032
+ headers?: pulumi.Input<{
1033
+ [key: string]: pulumi.Input<string>;
1034
+ }>;
1035
+ /**
1036
+ * HMAC signature configuration options.
1037
+ */
1038
+ hmacConfig?: pulumi.Input<inputs.alerting.ContactPointWebhookHmacConfig>;
1039
+ /**
1040
+ * Common HTTP client options.
1041
+ */
1042
+ httpConfig?: pulumi.Input<inputs.alerting.ContactPointWebhookHttpConfig>;
839
1043
  /**
840
1044
  * The HTTP method to use in the request. Defaults to `POST`.
841
1045
  */
@@ -848,6 +1052,10 @@ export declare namespace alerting {
848
1052
  * Custom message. You can use template variables.
849
1053
  */
850
1054
  message?: pulumi.Input<string>;
1055
+ /**
1056
+ * Optionally provide a templated payload. Overrides 'Message' and 'Title' field.
1057
+ */
1058
+ payload?: pulumi.Input<inputs.alerting.ContactPointWebhookPayload>;
851
1059
  /**
852
1060
  * Additional custom properties to attach to the notifier. Defaults to `map[]`.
853
1061
  */
@@ -873,6 +1081,108 @@ export declare namespace alerting {
873
1081
  */
874
1082
  url: pulumi.Input<string>;
875
1083
  }
1084
+ interface ContactPointWebhookHmacConfig {
1085
+ /**
1086
+ * The header in which the HMAC signature will be included. Defaults to `X-Grafana-Alerting-Signature`.
1087
+ */
1088
+ header?: pulumi.Input<string>;
1089
+ /**
1090
+ * The secret key used to generate the HMAC signature.
1091
+ */
1092
+ secret: pulumi.Input<string>;
1093
+ /**
1094
+ * If set, the timestamp will be included in the HMAC signature. The value should be the name of the header to use.
1095
+ */
1096
+ timestampHeader?: pulumi.Input<string>;
1097
+ }
1098
+ interface ContactPointWebhookHttpConfig {
1099
+ /**
1100
+ * OAuth2 configuration options.
1101
+ */
1102
+ oauth2?: pulumi.Input<inputs.alerting.ContactPointWebhookHttpConfigOauth2>;
1103
+ }
1104
+ interface ContactPointWebhookHttpConfigOauth2 {
1105
+ /**
1106
+ * Client ID to use when authenticating.
1107
+ */
1108
+ clientId: pulumi.Input<string>;
1109
+ /**
1110
+ * Client secret to use when authenticating.
1111
+ */
1112
+ clientSecret: pulumi.Input<string>;
1113
+ /**
1114
+ * Optional parameters to append to the access token request.
1115
+ */
1116
+ endpointParams?: pulumi.Input<{
1117
+ [key: string]: pulumi.Input<string>;
1118
+ }>;
1119
+ /**
1120
+ * Optional proxy configuration for OAuth2 requests.
1121
+ */
1122
+ proxyConfig?: pulumi.Input<inputs.alerting.ContactPointWebhookHttpConfigOauth2ProxyConfig>;
1123
+ /**
1124
+ * Optional scopes to request when obtaining an access token.
1125
+ */
1126
+ scopes?: pulumi.Input<pulumi.Input<string>[]>;
1127
+ /**
1128
+ * Optional TLS configuration options for OAuth2 requests.
1129
+ */
1130
+ tlsConfig?: pulumi.Input<inputs.alerting.ContactPointWebhookHttpConfigOauth2TlsConfig>;
1131
+ /**
1132
+ * URL for the access token endpoint.
1133
+ */
1134
+ tokenUrl: pulumi.Input<string>;
1135
+ }
1136
+ interface ContactPointWebhookHttpConfigOauth2ProxyConfig {
1137
+ /**
1138
+ * Comma-separated list of addresses that should not use a proxy.
1139
+ */
1140
+ noProxy?: pulumi.Input<string>;
1141
+ /**
1142
+ * Optional headers to send to proxies during CONNECT requests.
1143
+ */
1144
+ proxyConnectHeader?: pulumi.Input<{
1145
+ [key: string]: pulumi.Input<string>;
1146
+ }>;
1147
+ /**
1148
+ * Use environment HTTP*PROXY, HTTPS*PROXY and NO_PROXY to determine proxies. Defaults to `false`.
1149
+ */
1150
+ proxyFromEnvironment?: pulumi.Input<boolean>;
1151
+ /**
1152
+ * HTTP proxy server to use to connect to the targets.
1153
+ */
1154
+ proxyUrl?: pulumi.Input<string>;
1155
+ }
1156
+ interface ContactPointWebhookHttpConfigOauth2TlsConfig {
1157
+ /**
1158
+ * Certificate in PEM format to use when verifying the server's certificate chain.
1159
+ */
1160
+ caCertificate?: pulumi.Input<string>;
1161
+ /**
1162
+ * Client certificate in PEM format to use when connecting to the server.
1163
+ */
1164
+ clientCertificate?: pulumi.Input<string>;
1165
+ /**
1166
+ * Client key in PEM format to use when connecting to the server.
1167
+ */
1168
+ clientKey?: pulumi.Input<string>;
1169
+ /**
1170
+ * Do not verify the server's certificate chain and host name. Defaults to `false`.
1171
+ */
1172
+ insecureSkipVerify?: pulumi.Input<boolean>;
1173
+ }
1174
+ interface ContactPointWebhookPayload {
1175
+ /**
1176
+ * Custom payload template.
1177
+ */
1178
+ template: pulumi.Input<string>;
1179
+ /**
1180
+ * Optionally provide a variables to be used in the payload template. They will be available in the template as `.Vars.<variable_name>`.
1181
+ */
1182
+ vars?: pulumi.Input<{
1183
+ [key: string]: pulumi.Input<string>;
1184
+ }>;
1185
+ }
876
1186
  interface ContactPointWecom {
877
1187
  /**
878
1188
  * Agent ID added to the request payload when using APIAPP.
package/types/output.d.ts CHANGED
@@ -1,5 +1,195 @@
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
+ * Integrate with Grafana Asserts for enrichment.
74
+ */
75
+ asserts?: outputs.alerting.AlertEnrichmentSpecStepAsserts;
76
+ /**
77
+ * Assign annotations to an alert.
78
+ */
79
+ assign?: outputs.alerting.AlertEnrichmentSpecStepAssign;
80
+ /**
81
+ * Use AI assistant to investigate alerts and add insights.
82
+ */
83
+ assistantInvestigations?: outputs.alerting.AlertEnrichmentSpecStepAssistantInvestigations;
84
+ /**
85
+ * Query Grafana data sources and add results to alerts.
86
+ */
87
+ dataSource?: outputs.alerting.AlertEnrichmentSpecStepDataSource;
88
+ /**
89
+ * Generate AI explanation and store in an annotation.
90
+ */
91
+ explain?: outputs.alerting.AlertEnrichmentSpecStepExplain;
92
+ /**
93
+ * Call an external HTTP service for enrichment.
94
+ */
95
+ external?: outputs.alerting.AlertEnrichmentSpecStepExternal;
96
+ /**
97
+ * Analyze alerts for patterns and insights.
98
+ */
99
+ sift?: outputs.alerting.AlertEnrichmentSpecStepSift;
100
+ }
101
+ interface AlertEnrichmentSpecStepAsserts {
102
+ /**
103
+ * Maximum execution time (e.g., '30s', '1m')
104
+ */
105
+ timeout?: string;
106
+ }
107
+ interface AlertEnrichmentSpecStepAssign {
108
+ /**
109
+ * Map of annotation names to values to set on matching alerts.
110
+ */
111
+ annotations?: {
112
+ [key: string]: string;
113
+ };
114
+ /**
115
+ * Maximum execution time (e.g., '30s', '1m')
116
+ */
117
+ timeout?: string;
118
+ }
119
+ interface AlertEnrichmentSpecStepAssistantInvestigations {
120
+ /**
121
+ * Maximum execution time (e.g., '30s', '1m')
122
+ */
123
+ timeout?: string;
124
+ }
125
+ interface AlertEnrichmentSpecStepDataSource {
126
+ /**
127
+ * Logs query configuration for querying log data sources.
128
+ */
129
+ logsQuery?: outputs.alerting.AlertEnrichmentSpecStepDataSourceLogsQuery;
130
+ /**
131
+ * Raw query configuration for advanced data source queries.
132
+ */
133
+ rawQuery?: outputs.alerting.AlertEnrichmentSpecStepDataSourceRawQuery;
134
+ /**
135
+ * Maximum execution time (e.g., '30s', '1m')
136
+ */
137
+ timeout?: string;
138
+ }
139
+ interface AlertEnrichmentSpecStepDataSourceLogsQuery {
140
+ /**
141
+ * Data source type (e.g., 'loki').
142
+ */
143
+ dataSourceType?: string;
144
+ /**
145
+ * UID of the data source to query.
146
+ */
147
+ dataSourceUid?: string;
148
+ /**
149
+ * Log query expression to execute.
150
+ */
151
+ expr?: string;
152
+ /**
153
+ * Maximum number of log lines to include. Defaults to 3.
154
+ */
155
+ maxLines: number;
156
+ }
157
+ interface AlertEnrichmentSpecStepDataSourceRawQuery {
158
+ /**
159
+ * Reference ID for correlating queries.
160
+ */
161
+ refId: string;
162
+ /**
163
+ * Raw request payload for the data source query.
164
+ */
165
+ request?: string;
166
+ }
167
+ interface AlertEnrichmentSpecStepExplain {
168
+ /**
169
+ * Annotation name to set the explanation in. Defaults to 'ai_explanation'.
170
+ */
171
+ annotation: string;
172
+ /**
173
+ * Maximum execution time (e.g., '30s', '1m')
174
+ */
175
+ timeout?: string;
176
+ }
177
+ interface AlertEnrichmentSpecStepExternal {
178
+ /**
179
+ * Maximum execution time (e.g., '30s', '1m')
180
+ */
181
+ timeout?: string;
182
+ /**
183
+ * HTTP endpoint URL to call for enrichment
184
+ */
185
+ url?: string;
186
+ }
187
+ interface AlertEnrichmentSpecStepSift {
188
+ /**
189
+ * Maximum execution time (e.g., '30s', '1m')
190
+ */
191
+ timeout?: string;
192
+ }
3
193
  interface ContactPointAlertmanager {
4
194
  /**
5
195
  * The password component of the basic auth credentials to use.
@@ -835,6 +1025,20 @@ export declare namespace alerting {
835
1025
  * Whether to disable sending resolve messages. Defaults to `false`.
836
1026
  */
837
1027
  disableResolveMessage?: boolean;
1028
+ /**
1029
+ * Custom headers to attach to the request.
1030
+ */
1031
+ headers?: {
1032
+ [key: string]: string;
1033
+ };
1034
+ /**
1035
+ * HMAC signature configuration options.
1036
+ */
1037
+ hmacConfig?: outputs.alerting.ContactPointWebhookHmacConfig;
1038
+ /**
1039
+ * Common HTTP client options.
1040
+ */
1041
+ httpConfig?: outputs.alerting.ContactPointWebhookHttpConfig;
838
1042
  /**
839
1043
  * The HTTP method to use in the request. Defaults to `POST`.
840
1044
  */
@@ -847,6 +1051,10 @@ export declare namespace alerting {
847
1051
  * Custom message. You can use template variables.
848
1052
  */
849
1053
  message?: string;
1054
+ /**
1055
+ * Optionally provide a templated payload. Overrides 'Message' and 'Title' field.
1056
+ */
1057
+ payload?: outputs.alerting.ContactPointWebhookPayload;
850
1058
  /**
851
1059
  * Additional custom properties to attach to the notifier. Defaults to `map[]`.
852
1060
  */
@@ -872,6 +1080,108 @@ export declare namespace alerting {
872
1080
  */
873
1081
  url: string;
874
1082
  }
1083
+ interface ContactPointWebhookHmacConfig {
1084
+ /**
1085
+ * The header in which the HMAC signature will be included. Defaults to `X-Grafana-Alerting-Signature`.
1086
+ */
1087
+ header?: string;
1088
+ /**
1089
+ * The secret key used to generate the HMAC signature.
1090
+ */
1091
+ secret: string;
1092
+ /**
1093
+ * If set, the timestamp will be included in the HMAC signature. The value should be the name of the header to use.
1094
+ */
1095
+ timestampHeader?: string;
1096
+ }
1097
+ interface ContactPointWebhookHttpConfig {
1098
+ /**
1099
+ * OAuth2 configuration options.
1100
+ */
1101
+ oauth2?: outputs.alerting.ContactPointWebhookHttpConfigOauth2;
1102
+ }
1103
+ interface ContactPointWebhookHttpConfigOauth2 {
1104
+ /**
1105
+ * Client ID to use when authenticating.
1106
+ */
1107
+ clientId: string;
1108
+ /**
1109
+ * Client secret to use when authenticating.
1110
+ */
1111
+ clientSecret: string;
1112
+ /**
1113
+ * Optional parameters to append to the access token request.
1114
+ */
1115
+ endpointParams?: {
1116
+ [key: string]: string;
1117
+ };
1118
+ /**
1119
+ * Optional proxy configuration for OAuth2 requests.
1120
+ */
1121
+ proxyConfig?: outputs.alerting.ContactPointWebhookHttpConfigOauth2ProxyConfig;
1122
+ /**
1123
+ * Optional scopes to request when obtaining an access token.
1124
+ */
1125
+ scopes?: string[];
1126
+ /**
1127
+ * Optional TLS configuration options for OAuth2 requests.
1128
+ */
1129
+ tlsConfig?: outputs.alerting.ContactPointWebhookHttpConfigOauth2TlsConfig;
1130
+ /**
1131
+ * URL for the access token endpoint.
1132
+ */
1133
+ tokenUrl: string;
1134
+ }
1135
+ interface ContactPointWebhookHttpConfigOauth2ProxyConfig {
1136
+ /**
1137
+ * Comma-separated list of addresses that should not use a proxy.
1138
+ */
1139
+ noProxy?: string;
1140
+ /**
1141
+ * Optional headers to send to proxies during CONNECT requests.
1142
+ */
1143
+ proxyConnectHeader?: {
1144
+ [key: string]: string;
1145
+ };
1146
+ /**
1147
+ * Use environment HTTP*PROXY, HTTPS*PROXY and NO_PROXY to determine proxies. Defaults to `false`.
1148
+ */
1149
+ proxyFromEnvironment?: boolean;
1150
+ /**
1151
+ * HTTP proxy server to use to connect to the targets.
1152
+ */
1153
+ proxyUrl?: string;
1154
+ }
1155
+ interface ContactPointWebhookHttpConfigOauth2TlsConfig {
1156
+ /**
1157
+ * Certificate in PEM format to use when verifying the server's certificate chain.
1158
+ */
1159
+ caCertificate?: string;
1160
+ /**
1161
+ * Client certificate in PEM format to use when connecting to the server.
1162
+ */
1163
+ clientCertificate?: string;
1164
+ /**
1165
+ * Client key in PEM format to use when connecting to the server.
1166
+ */
1167
+ clientKey?: string;
1168
+ /**
1169
+ * Do not verify the server's certificate chain and host name. Defaults to `false`.
1170
+ */
1171
+ insecureSkipVerify?: boolean;
1172
+ }
1173
+ interface ContactPointWebhookPayload {
1174
+ /**
1175
+ * Custom payload template.
1176
+ */
1177
+ template: string;
1178
+ /**
1179
+ * Optionally provide a variables to be used in the payload template. They will be available in the template as `.Vars.<variable_name>`.
1180
+ */
1181
+ vars?: {
1182
+ [key: string]: string;
1183
+ };
1184
+ }
875
1185
  interface ContactPointWecom {
876
1186
  /**
877
1187
  * Agent ID added to the request payload when using APIAPP.