@pulumiverse/grafana 2.14.0-alpha.1762332341 → 2.14.0

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.
@@ -2,7 +2,143 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "../types/input";
3
3
  import * as outputs from "../types/output";
4
4
  /**
5
- * This resource is currently under development. Documentation will be provided in a future release.
5
+ * Manages [Grafana Cloud Alert Enrichment](https://grafana.com/docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/alert-enrichment/).
6
+ *
7
+ * Alert enrichment is currently in private preview. Grafana Labs offers support on a best-effort basis, and breaking changes might occur prior to the feature being made generally available
8
+ *
9
+ * ## Example Usage
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as grafana from "@pulumiverse/grafana";
14
+ *
15
+ * const enrichment = new grafana.alerting.AlertEnrichment("enrichment", {
16
+ * metadata: {
17
+ * uid: "test_enrichment",
18
+ * },
19
+ * spec: {
20
+ * title: "Comprehensive alert enrichment",
21
+ * description: "Demonstrates many enrichment steps and configurations",
22
+ * alertRuleUids: [
23
+ * "alert-rule-1",
24
+ * "alert-rule-2",
25
+ * ],
26
+ * receivers: [
27
+ * "webhook",
28
+ * "slack-critical",
29
+ * ],
30
+ * labelMatchers: [
31
+ * {
32
+ * type: "=",
33
+ * name: "severity",
34
+ * value: "critical",
35
+ * },
36
+ * {
37
+ * type: "=~",
38
+ * name: "team",
39
+ * value: "alerting|alerting-team",
40
+ * },
41
+ * ],
42
+ * annotationMatchers: [{
43
+ * type: "!=",
44
+ * name: "runbook_url",
45
+ * value: "",
46
+ * }],
47
+ * steps: [
48
+ * {
49
+ * assign: {
50
+ * timeout: "30s",
51
+ * annotations: {
52
+ * priority: "high",
53
+ * runbook_url: "https://runbooks.grafana.com/alert-handling",
54
+ * },
55
+ * },
56
+ * },
57
+ * {
58
+ * external: {
59
+ * url: "https://some-api.grafana.com/alert-enrichment",
60
+ * },
61
+ * },
62
+ * {
63
+ * dataSource: {
64
+ * timeout: "30s",
65
+ * logsQuery: {
66
+ * dataSourceType: "loki",
67
+ * dataSourceUid: "loki-uid-123",
68
+ * expr: "{job=\"my-app\"} |= \"error\"",
69
+ * maxLines: 5,
70
+ * },
71
+ * },
72
+ * },
73
+ * {
74
+ * dataSource: {
75
+ * timeout: "30s",
76
+ * rawQuery: {
77
+ * refId: "A",
78
+ * request: JSON.stringify({
79
+ * datasource: {
80
+ * type: "prometheus",
81
+ * uid: "prometheus-uid-456",
82
+ * },
83
+ * expr: "rate(http_requests_total[5m])",
84
+ * refId: "A",
85
+ * intervalMs: 1000,
86
+ * maxDataPoints: 43200,
87
+ * }),
88
+ * },
89
+ * },
90
+ * },
91
+ * {
92
+ * sift: {},
93
+ * },
94
+ * {
95
+ * explain: {
96
+ * annotation: "ai_explanation",
97
+ * },
98
+ * },
99
+ * {
100
+ * assistantInvestigations: {},
101
+ * },
102
+ * {
103
+ * conditional: {
104
+ * "if": {
105
+ * labelMatchers: [{
106
+ * type: "=",
107
+ * name: "severity",
108
+ * value: "critical",
109
+ * }],
110
+ * },
111
+ * then: {
112
+ * steps: [
113
+ * {
114
+ * assign: {
115
+ * annotations: {
116
+ * escalation_level: "immediate",
117
+ * },
118
+ * },
119
+ * },
120
+ * {
121
+ * external: {
122
+ * url: "https://irm.grafana.com/create-incident",
123
+ * },
124
+ * },
125
+ * ],
126
+ * },
127
+ * "else": {
128
+ * steps: [{
129
+ * assign: {
130
+ * annotations: {
131
+ * escalation_level: "standard",
132
+ * },
133
+ * },
134
+ * }],
135
+ * },
136
+ * },
137
+ * },
138
+ * ],
139
+ * },
140
+ * });
141
+ * ```
6
142
  */
7
143
  export declare class AlertEnrichment extends pulumi.CustomResource {
8
144
  /**
@@ -6,7 +6,143 @@ exports.AlertEnrichment = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
- * This resource is currently under development. Documentation will be provided in a future release.
9
+ * Manages [Grafana Cloud Alert Enrichment](https://grafana.com/docs/grafana-cloud/alerting-and-irm/alerting/configure-notifications/alert-enrichment/).
10
+ *
11
+ * Alert enrichment is currently in private preview. Grafana Labs offers support on a best-effort basis, and breaking changes might occur prior to the feature being made generally available
12
+ *
13
+ * ## Example Usage
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as grafana from "@pulumiverse/grafana";
18
+ *
19
+ * const enrichment = new grafana.alerting.AlertEnrichment("enrichment", {
20
+ * metadata: {
21
+ * uid: "test_enrichment",
22
+ * },
23
+ * spec: {
24
+ * title: "Comprehensive alert enrichment",
25
+ * description: "Demonstrates many enrichment steps and configurations",
26
+ * alertRuleUids: [
27
+ * "alert-rule-1",
28
+ * "alert-rule-2",
29
+ * ],
30
+ * receivers: [
31
+ * "webhook",
32
+ * "slack-critical",
33
+ * ],
34
+ * labelMatchers: [
35
+ * {
36
+ * type: "=",
37
+ * name: "severity",
38
+ * value: "critical",
39
+ * },
40
+ * {
41
+ * type: "=~",
42
+ * name: "team",
43
+ * value: "alerting|alerting-team",
44
+ * },
45
+ * ],
46
+ * annotationMatchers: [{
47
+ * type: "!=",
48
+ * name: "runbook_url",
49
+ * value: "",
50
+ * }],
51
+ * steps: [
52
+ * {
53
+ * assign: {
54
+ * timeout: "30s",
55
+ * annotations: {
56
+ * priority: "high",
57
+ * runbook_url: "https://runbooks.grafana.com/alert-handling",
58
+ * },
59
+ * },
60
+ * },
61
+ * {
62
+ * external: {
63
+ * url: "https://some-api.grafana.com/alert-enrichment",
64
+ * },
65
+ * },
66
+ * {
67
+ * dataSource: {
68
+ * timeout: "30s",
69
+ * logsQuery: {
70
+ * dataSourceType: "loki",
71
+ * dataSourceUid: "loki-uid-123",
72
+ * expr: "{job=\"my-app\"} |= \"error\"",
73
+ * maxLines: 5,
74
+ * },
75
+ * },
76
+ * },
77
+ * {
78
+ * dataSource: {
79
+ * timeout: "30s",
80
+ * rawQuery: {
81
+ * refId: "A",
82
+ * request: JSON.stringify({
83
+ * datasource: {
84
+ * type: "prometheus",
85
+ * uid: "prometheus-uid-456",
86
+ * },
87
+ * expr: "rate(http_requests_total[5m])",
88
+ * refId: "A",
89
+ * intervalMs: 1000,
90
+ * maxDataPoints: 43200,
91
+ * }),
92
+ * },
93
+ * },
94
+ * },
95
+ * {
96
+ * sift: {},
97
+ * },
98
+ * {
99
+ * explain: {
100
+ * annotation: "ai_explanation",
101
+ * },
102
+ * },
103
+ * {
104
+ * assistantInvestigations: {},
105
+ * },
106
+ * {
107
+ * conditional: {
108
+ * "if": {
109
+ * labelMatchers: [{
110
+ * type: "=",
111
+ * name: "severity",
112
+ * value: "critical",
113
+ * }],
114
+ * },
115
+ * then: {
116
+ * steps: [
117
+ * {
118
+ * assign: {
119
+ * annotations: {
120
+ * escalation_level: "immediate",
121
+ * },
122
+ * },
123
+ * },
124
+ * {
125
+ * external: {
126
+ * url: "https://irm.grafana.com/create-incident",
127
+ * },
128
+ * },
129
+ * ],
130
+ * },
131
+ * "else": {
132
+ * steps: [{
133
+ * assign: {
134
+ * annotations: {
135
+ * escalation_level: "standard",
136
+ * },
137
+ * },
138
+ * }],
139
+ * },
140
+ * },
141
+ * },
142
+ * ],
143
+ * },
144
+ * });
145
+ * ```
10
146
  */
11
147
  class AlertEnrichment extends pulumi.CustomResource {
12
148
  /**
@@ -1 +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,IA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,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"}
@@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "../types/input";
3
3
  import * as outputs from "../types/output";
4
4
  /**
5
- * Manages Asserts Custom Model Rules through the Grafana API.
5
+ * Manages Knowledge Graph Custom Model Rules through the Grafana API.
6
6
  *
7
7
  * ## Example Usage
8
8
  *
@@ -6,7 +6,7 @@ exports.CustomModelRules = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
- * Manages Asserts Custom Model Rules through the Grafana API.
9
+ * Manages Knowledge Graph Custom Model Rules through the Grafana API.
10
10
  *
11
11
  * ## Example Usage
12
12
  *
package/assert/index.d.ts CHANGED
@@ -10,3 +10,6 @@ export declare const NotificationAlertsConfig: typeof import("./notificationAler
10
10
  export { SuppressedAssertionsConfigArgs, SuppressedAssertionsConfigState } from "./suppressedAssertionsConfig";
11
11
  export type SuppressedAssertionsConfig = import("./suppressedAssertionsConfig").SuppressedAssertionsConfig;
12
12
  export declare const SuppressedAssertionsConfig: typeof import("./suppressedAssertionsConfig").SuppressedAssertionsConfig;
13
+ export { ThresholdsArgs, ThresholdsState } from "./thresholds";
14
+ export type Thresholds = import("./thresholds").Thresholds;
15
+ export declare const Thresholds: typeof import("./thresholds").Thresholds;
package/assert/index.js CHANGED
@@ -2,7 +2,7 @@
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.SuppressedAssertionsConfig = exports.NotificationAlertsConfig = exports.LogConfig = exports.CustomModelRules = void 0;
5
+ exports.Thresholds = exports.SuppressedAssertionsConfig = exports.NotificationAlertsConfig = exports.LogConfig = exports.CustomModelRules = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  exports.CustomModelRules = null;
@@ -13,6 +13,8 @@ exports.NotificationAlertsConfig = null;
13
13
  utilities.lazyLoad(exports, ["NotificationAlertsConfig"], () => require("./notificationAlertsConfig"));
14
14
  exports.SuppressedAssertionsConfig = null;
15
15
  utilities.lazyLoad(exports, ["SuppressedAssertionsConfig"], () => require("./suppressedAssertionsConfig"));
16
+ exports.Thresholds = null;
17
+ utilities.lazyLoad(exports, ["Thresholds"], () => require("./thresholds"));
16
18
  const _module = {
17
19
  version: utilities.getVersion(),
18
20
  construct: (name, type, urn) => {
@@ -25,6 +27,8 @@ const _module = {
25
27
  return new exports.NotificationAlertsConfig(name, undefined, { urn });
26
28
  case "grafana:assert/suppressedAssertionsConfig:SuppressedAssertionsConfig":
27
29
  return new exports.SuppressedAssertionsConfig(name, undefined, { urn });
30
+ case "grafana:assert/thresholds:Thresholds":
31
+ return new exports.Thresholds(name, undefined, { urn });
28
32
  default:
29
33
  throw new Error(`unknown resource type ${type}`);
30
34
  }
@@ -34,4 +38,5 @@ pulumi.runtime.registerResourceModule("grafana", "assert/customModelRules", _mod
34
38
  pulumi.runtime.registerResourceModule("grafana", "assert/logConfig", _module);
35
39
  pulumi.runtime.registerResourceModule("grafana", "assert/notificationAlertsConfig", _module);
36
40
  pulumi.runtime.registerResourceModule("grafana", "assert/suppressedAssertionsConfig", _module);
41
+ pulumi.runtime.registerResourceModule("grafana", "assert/thresholds", _module);
37
42
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"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CAAC,SAAS,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAAA;AAC7E,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,iCAAiC,EAAE,OAAO,CAAC,CAAA;AAC5F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,mCAAmC,EAAE,OAAO,CAAC,CAAA;AAC9F,MAAM,CAAC,OAAO,CAAC,sBAAsB,CAAC,SAAS,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAA"}
@@ -2,7 +2,7 @@ import * as pulumi from "@pulumi/pulumi";
2
2
  import * as inputs from "../types/input";
3
3
  import * as outputs from "../types/output";
4
4
  /**
5
- * Manages Asserts Log Configuration through Grafana API.
5
+ * Manages Knowledge Graph Log Configuration through Grafana API.
6
6
  *
7
7
  * ## Example Usage
8
8
  *
@@ -6,7 +6,7 @@ exports.LogConfig = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
- * Manages Asserts Log Configuration through Grafana API.
9
+ * Manages Knowledge Graph Log Configuration through Grafana API.
10
10
  *
11
11
  * ## Example Usage
12
12
  *
@@ -1,6 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * Manages Asserts Alert Configurations through Grafana API.
3
+ * Manages Knowledge Graph Alert Configurations through Grafana API.
4
4
  *
5
5
  * ## Example Usage
6
6
  *
@@ -6,7 +6,7 @@ exports.NotificationAlertsConfig = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
- * Manages Asserts Alert Configurations through Grafana API.
9
+ * Manages Knowledge Graph Alert Configurations through Grafana API.
10
10
  *
11
11
  * ## Example Usage
12
12
  *
@@ -1,6 +1,6 @@
1
1
  import * as pulumi from "@pulumi/pulumi";
2
2
  /**
3
- * Manages Asserts Disabled Alert Configurations through Grafana API.
3
+ * Manages Knowledge Graph Disabled Alert Configurations through Grafana API.
4
4
  *
5
5
  * ## Example Usage
6
6
  *
@@ -6,7 +6,7 @@ exports.SuppressedAssertionsConfig = void 0;
6
6
  const pulumi = require("@pulumi/pulumi");
7
7
  const utilities = require("../utilities");
8
8
  /**
9
- * Manages Asserts Disabled Alert Configurations through Grafana API.
9
+ * Manages Knowledge Graph Disabled Alert Configurations through Grafana API.
10
10
  *
11
11
  * ## Example Usage
12
12
  *
@@ -0,0 +1,113 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "../types/input";
3
+ import * as outputs from "../types/output";
4
+ /**
5
+ * Manages Knowledge Graph Thresholds configuration (request, resource, health) via bulk endpoints.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as grafana from "@pulumiverse/grafana";
12
+ *
13
+ * const basic = new grafana.assert.Thresholds("basic", {
14
+ * requestThresholds: [{
15
+ * entityName: "payment-service",
16
+ * assertionName: "ErrorRatioBreach",
17
+ * requestType: "inbound",
18
+ * requestContext: "/charge",
19
+ * value: 0.01,
20
+ * }],
21
+ * resourceThresholds: [{
22
+ * assertionName: "Saturation",
23
+ * resourceType: "container",
24
+ * containerName: "worker",
25
+ * source: "metrics",
26
+ * severity: "warning",
27
+ * value: 75,
28
+ * }],
29
+ * healthThresholds: [{
30
+ * assertionName: "ServiceDown",
31
+ * expression: "up < 1",
32
+ * entityType: "Service",
33
+ * }],
34
+ * });
35
+ * ```
36
+ *
37
+ * ## Import
38
+ *
39
+ * ```sh
40
+ * $ pulumi import grafana:assert/thresholds:Thresholds name "{{ id }}"
41
+ * ```
42
+ */
43
+ export declare class Thresholds extends pulumi.CustomResource {
44
+ /**
45
+ * Get an existing Thresholds resource's state with the given name, ID, and optional extra
46
+ * properties used to qualify the lookup.
47
+ *
48
+ * @param name The _unique_ name of the resulting resource.
49
+ * @param id The _unique_ provider ID of the resource to lookup.
50
+ * @param state Any extra arguments used during the lookup.
51
+ * @param opts Optional settings to control the behavior of the CustomResource.
52
+ */
53
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ThresholdsState, opts?: pulumi.CustomResourceOptions): Thresholds;
54
+ /**
55
+ * Returns true if the given object is an instance of Thresholds. This is designed to work even
56
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
57
+ */
58
+ static isInstance(obj: any): obj is Thresholds;
59
+ /**
60
+ * List of health thresholds.
61
+ */
62
+ readonly healthThresholds: pulumi.Output<outputs.assert.ThresholdsHealthThreshold[] | undefined>;
63
+ /**
64
+ * List of request thresholds.
65
+ */
66
+ readonly requestThresholds: pulumi.Output<outputs.assert.ThresholdsRequestThreshold[] | undefined>;
67
+ /**
68
+ * List of resource thresholds.
69
+ */
70
+ readonly resourceThresholds: pulumi.Output<outputs.assert.ThresholdsResourceThreshold[] | undefined>;
71
+ /**
72
+ * Create a Thresholds resource with the given unique name, arguments, and options.
73
+ *
74
+ * @param name The _unique_ name of the resource.
75
+ * @param args The arguments to use to populate this resource's properties.
76
+ * @param opts A bag of options that control this resource's behavior.
77
+ */
78
+ constructor(name: string, args?: ThresholdsArgs, opts?: pulumi.CustomResourceOptions);
79
+ }
80
+ /**
81
+ * Input properties used for looking up and filtering Thresholds resources.
82
+ */
83
+ export interface ThresholdsState {
84
+ /**
85
+ * List of health thresholds.
86
+ */
87
+ healthThresholds?: pulumi.Input<pulumi.Input<inputs.assert.ThresholdsHealthThreshold>[]>;
88
+ /**
89
+ * List of request thresholds.
90
+ */
91
+ requestThresholds?: pulumi.Input<pulumi.Input<inputs.assert.ThresholdsRequestThreshold>[]>;
92
+ /**
93
+ * List of resource thresholds.
94
+ */
95
+ resourceThresholds?: pulumi.Input<pulumi.Input<inputs.assert.ThresholdsResourceThreshold>[]>;
96
+ }
97
+ /**
98
+ * The set of arguments for constructing a Thresholds resource.
99
+ */
100
+ export interface ThresholdsArgs {
101
+ /**
102
+ * List of health thresholds.
103
+ */
104
+ healthThresholds?: pulumi.Input<pulumi.Input<inputs.assert.ThresholdsHealthThreshold>[]>;
105
+ /**
106
+ * List of request thresholds.
107
+ */
108
+ requestThresholds?: pulumi.Input<pulumi.Input<inputs.assert.ThresholdsRequestThreshold>[]>;
109
+ /**
110
+ * List of resource thresholds.
111
+ */
112
+ resourceThresholds?: pulumi.Input<pulumi.Input<inputs.assert.ThresholdsResourceThreshold>[]>;
113
+ }
@@ -0,0 +1,92 @@
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.Thresholds = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("../utilities");
8
+ /**
9
+ * Manages Knowledge Graph Thresholds configuration (request, resource, health) via bulk endpoints.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as grafana from "@pulumiverse/grafana";
16
+ *
17
+ * const basic = new grafana.assert.Thresholds("basic", {
18
+ * requestThresholds: [{
19
+ * entityName: "payment-service",
20
+ * assertionName: "ErrorRatioBreach",
21
+ * requestType: "inbound",
22
+ * requestContext: "/charge",
23
+ * value: 0.01,
24
+ * }],
25
+ * resourceThresholds: [{
26
+ * assertionName: "Saturation",
27
+ * resourceType: "container",
28
+ * containerName: "worker",
29
+ * source: "metrics",
30
+ * severity: "warning",
31
+ * value: 75,
32
+ * }],
33
+ * healthThresholds: [{
34
+ * assertionName: "ServiceDown",
35
+ * expression: "up < 1",
36
+ * entityType: "Service",
37
+ * }],
38
+ * });
39
+ * ```
40
+ *
41
+ * ## Import
42
+ *
43
+ * ```sh
44
+ * $ pulumi import grafana:assert/thresholds:Thresholds name "{{ id }}"
45
+ * ```
46
+ */
47
+ class Thresholds extends pulumi.CustomResource {
48
+ /**
49
+ * Get an existing Thresholds resource's state with the given name, ID, and optional extra
50
+ * properties used to qualify the lookup.
51
+ *
52
+ * @param name The _unique_ name of the resulting resource.
53
+ * @param id The _unique_ provider ID of the resource to lookup.
54
+ * @param state Any extra arguments used during the lookup.
55
+ * @param opts Optional settings to control the behavior of the CustomResource.
56
+ */
57
+ static get(name, id, state, opts) {
58
+ return new Thresholds(name, state, { ...opts, id: id });
59
+ }
60
+ /**
61
+ * Returns true if the given object is an instance of Thresholds. This is designed to work even
62
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
63
+ */
64
+ static isInstance(obj) {
65
+ if (obj === undefined || obj === null) {
66
+ return false;
67
+ }
68
+ return obj['__pulumiType'] === Thresholds.__pulumiType;
69
+ }
70
+ constructor(name, argsOrState, opts) {
71
+ let resourceInputs = {};
72
+ opts = opts || {};
73
+ if (opts.id) {
74
+ const state = argsOrState;
75
+ resourceInputs["healthThresholds"] = state?.healthThresholds;
76
+ resourceInputs["requestThresholds"] = state?.requestThresholds;
77
+ resourceInputs["resourceThresholds"] = state?.resourceThresholds;
78
+ }
79
+ else {
80
+ const args = argsOrState;
81
+ resourceInputs["healthThresholds"] = args?.healthThresholds;
82
+ resourceInputs["requestThresholds"] = args?.requestThresholds;
83
+ resourceInputs["resourceThresholds"] = args?.resourceThresholds;
84
+ }
85
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
86
+ super(Thresholds.__pulumiType, name, resourceInputs, opts);
87
+ }
88
+ }
89
+ exports.Thresholds = Thresholds;
90
+ /** @internal */
91
+ Thresholds.__pulumiType = 'grafana:assert/thresholds:Thresholds';
92
+ //# sourceMappingURL=thresholds.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"thresholds.js","sourceRoot":"","sources":["../../assert/thresholds.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,0CAA0C;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAa,UAAW,SAAQ,MAAM,CAAC,cAAc;IACjD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAA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AjEL,gCAkEC;AApDG,gBAAgB;AACO,uBAAY,GAAG,sCAAsC,CAAC"}
@@ -57,7 +57,7 @@ export declare class Schedule extends pulumi.CustomResource {
57
57
  /**
58
58
  * The schedule's time zone.
59
59
  */
60
- readonly timeZone: pulumi.Output<string | undefined>;
60
+ readonly timeZone: pulumi.Output<string>;
61
61
  /**
62
62
  * The schedule's type. Valid values are `ical`, `calendar`, `web`.
63
63
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulumiverse/grafana",
3
- "version": "2.14.0-alpha.1762332341",
3
+ "version": "2.14.0",
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.14.0-alpha.1762332341",
27
+ "version": "2.14.0",
28
28
  "server": "github://api.github.com/pulumiverse"
29
29
  }
30
30
  }
package/types/input.d.ts CHANGED
@@ -2016,6 +2016,72 @@ export declare namespace assert {
2016
2016
  */
2017
2017
  values: pulumi.Input<pulumi.Input<string>[]>;
2018
2018
  }
2019
+ interface ThresholdsHealthThreshold {
2020
+ /**
2021
+ * Optional alert category label for the health threshold.
2022
+ */
2023
+ alertCategory?: pulumi.Input<string>;
2024
+ /**
2025
+ * Assertion name.
2026
+ */
2027
+ assertionName: pulumi.Input<string>;
2028
+ /**
2029
+ * Entity type for the health threshold (e.g., Service, Pod, Namespace, Volume).
2030
+ */
2031
+ entityType: pulumi.Input<string>;
2032
+ /**
2033
+ * Prometheus expression.
2034
+ */
2035
+ expression: pulumi.Input<string>;
2036
+ }
2037
+ interface ThresholdsRequestThreshold {
2038
+ /**
2039
+ * Assertion name (e.g., RequestRateAnomaly, ErrorRatioBreach).
2040
+ */
2041
+ assertionName: pulumi.Input<string>;
2042
+ /**
2043
+ * Entity name the threshold applies to.
2044
+ */
2045
+ entityName: pulumi.Input<string>;
2046
+ /**
2047
+ * Request context (e.g., path or context identifier).
2048
+ */
2049
+ requestContext: pulumi.Input<string>;
2050
+ /**
2051
+ * Request type (e.g., inbound/outbound).
2052
+ */
2053
+ requestType: pulumi.Input<string>;
2054
+ /**
2055
+ * Threshold value.
2056
+ */
2057
+ value: pulumi.Input<number>;
2058
+ }
2059
+ interface ThresholdsResourceThreshold {
2060
+ /**
2061
+ * Assertion name (e.g., Saturation, ResourceRateBreach).
2062
+ */
2063
+ assertionName: pulumi.Input<string>;
2064
+ /**
2065
+ * Container name.
2066
+ */
2067
+ containerName: pulumi.Input<string>;
2068
+ /**
2069
+ * Resource type (e.g., container/pod/node).
2070
+ */
2071
+ resourceType: pulumi.Input<string>;
2072
+ /**
2073
+ * Severity (warning or critical).
2074
+ */
2075
+ severity: pulumi.Input<string>;
2076
+ /**
2077
+ * Data source for the threshold (e.g., metrics/logs).
2078
+ */
2079
+ source: pulumi.Input<string>;
2080
+ /**
2081
+ * Threshold value.
2082
+ */
2083
+ value: pulumi.Input<number>;
2084
+ }
2019
2085
  }
2020
2086
  export declare namespace cloud {
2021
2087
  interface AccessPolicyCondition {
@@ -2853,21 +2919,21 @@ export declare namespace fleetManagement {
2853
2919
  export declare namespace k6 {
2854
2920
  interface GetScheduleCron {
2855
2921
  /**
2856
- * A cron expression with exactly 5 entries, or an alias. The allowed aliases are: @yearly, @annually, @monthly, @weekly, @daily, @hourly.
2922
+ * A cron expression with exactly 5 entries, or an alias. The allowed aliases are: `@yearly`, `@annually`, `@monthly`, `@weekly`, `@daily`, `@hourly`.
2857
2923
  */
2858
2924
  schedule?: string;
2859
2925
  /**
2860
- * The timezone of the cron expression. For example, 'UTC' or 'Europe/London'.
2926
+ * The timezone of the cron expression. For example, `UTC` or `Europe/London`.
2861
2927
  */
2862
2928
  timezone?: string;
2863
2929
  }
2864
2930
  interface GetScheduleCronArgs {
2865
2931
  /**
2866
- * A cron expression with exactly 5 entries, or an alias. The allowed aliases are: @yearly, @annually, @monthly, @weekly, @daily, @hourly.
2932
+ * A cron expression with exactly 5 entries, or an alias. The allowed aliases are: `@yearly`, `@annually`, `@monthly`, `@weekly`, `@daily`, `@hourly`.
2867
2933
  */
2868
2934
  schedule?: pulumi.Input<string>;
2869
2935
  /**
2870
- * The timezone of the cron expression. For example, 'UTC' or 'Europe/London'.
2936
+ * The timezone of the cron expression. For example, `UTC` or `Europe/London`.
2871
2937
  */
2872
2938
  timezone?: pulumi.Input<string>;
2873
2939
  }
@@ -2917,11 +2983,11 @@ export declare namespace k6 {
2917
2983
  }
2918
2984
  interface ScheduleCron {
2919
2985
  /**
2920
- * A cron expression with exactly 5 entries, or an alias. The allowed aliases are: @yearly, @annually, @monthly, @weekly, @daily, @hourly.
2986
+ * A cron expression with exactly 5 entries, or an alias. The allowed aliases are: `@yearly`, `@annually`, `@monthly`, `@weekly`, `@daily`, `@hourly`.
2921
2987
  */
2922
2988
  schedule?: pulumi.Input<string>;
2923
2989
  /**
2924
- * The timezone of the cron expression. For example, 'UTC' or 'Europe/London'.
2990
+ * The timezone of the cron expression. For example, `UTC` or `Europe/London`.
2925
2991
  */
2926
2992
  timezone?: pulumi.Input<string>;
2927
2993
  }
package/types/output.d.ts CHANGED
@@ -2015,6 +2015,72 @@ export declare namespace assert {
2015
2015
  */
2016
2016
  values: string[];
2017
2017
  }
2018
+ interface ThresholdsHealthThreshold {
2019
+ /**
2020
+ * Optional alert category label for the health threshold.
2021
+ */
2022
+ alertCategory?: string;
2023
+ /**
2024
+ * Assertion name.
2025
+ */
2026
+ assertionName: string;
2027
+ /**
2028
+ * Entity type for the health threshold (e.g., Service, Pod, Namespace, Volume).
2029
+ */
2030
+ entityType: string;
2031
+ /**
2032
+ * Prometheus expression.
2033
+ */
2034
+ expression: string;
2035
+ }
2036
+ interface ThresholdsRequestThreshold {
2037
+ /**
2038
+ * Assertion name (e.g., RequestRateAnomaly, ErrorRatioBreach).
2039
+ */
2040
+ assertionName: string;
2041
+ /**
2042
+ * Entity name the threshold applies to.
2043
+ */
2044
+ entityName: string;
2045
+ /**
2046
+ * Request context (e.g., path or context identifier).
2047
+ */
2048
+ requestContext: string;
2049
+ /**
2050
+ * Request type (e.g., inbound/outbound).
2051
+ */
2052
+ requestType: string;
2053
+ /**
2054
+ * Threshold value.
2055
+ */
2056
+ value: number;
2057
+ }
2058
+ interface ThresholdsResourceThreshold {
2059
+ /**
2060
+ * Assertion name (e.g., Saturation, ResourceRateBreach).
2061
+ */
2062
+ assertionName: string;
2063
+ /**
2064
+ * Container name.
2065
+ */
2066
+ containerName: string;
2067
+ /**
2068
+ * Resource type (e.g., container/pod/node).
2069
+ */
2070
+ resourceType: string;
2071
+ /**
2072
+ * Severity (warning or critical).
2073
+ */
2074
+ severity: string;
2075
+ /**
2076
+ * Data source for the threshold (e.g., metrics/logs).
2077
+ */
2078
+ source: string;
2079
+ /**
2080
+ * Threshold value.
2081
+ */
2082
+ value: number;
2083
+ }
2018
2084
  }
2019
2085
  export declare namespace cloud {
2020
2086
  interface AccessPolicyCondition {
@@ -2695,11 +2761,11 @@ export declare namespace k6 {
2695
2761
  }
2696
2762
  interface GetScheduleCron {
2697
2763
  /**
2698
- * A cron expression with exactly 5 entries, or an alias. The allowed aliases are: @yearly, @annually, @monthly, @weekly, @daily, @hourly.
2764
+ * A cron expression with exactly 5 entries, or an alias. The allowed aliases are: `@yearly`, `@annually`, `@monthly`, `@weekly`, `@daily`, `@hourly`.
2699
2765
  */
2700
2766
  schedule: string;
2701
2767
  /**
2702
- * The timezone of the cron expression. For example, 'UTC' or 'Europe/London'.
2768
+ * The timezone of the cron expression. For example, `UTC` or `Europe/London`.
2703
2769
  */
2704
2770
  timezone: string;
2705
2771
  }
@@ -2748,11 +2814,11 @@ export declare namespace k6 {
2748
2814
  }
2749
2815
  interface ScheduleCron {
2750
2816
  /**
2751
- * A cron expression with exactly 5 entries, or an alias. The allowed aliases are: @yearly, @annually, @monthly, @weekly, @daily, @hourly.
2817
+ * A cron expression with exactly 5 entries, or an alias. The allowed aliases are: `@yearly`, `@annually`, `@monthly`, `@weekly`, `@daily`, `@hourly`.
2752
2818
  */
2753
2819
  schedule?: string;
2754
2820
  /**
2755
- * The timezone of the cron expression. For example, 'UTC' or 'Europe/London'.
2821
+ * The timezone of the cron expression. For example, `UTC` or `Europe/London`.
2756
2822
  */
2757
2823
  timezone?: string;
2758
2824
  }