@pulumi/wavefront 1.2.0-alpha.1663005863 → 1.2.0-alpha.1669657115

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.
Files changed (129) hide show
  1. package/alert.d.ts +12 -0
  2. package/alert.js +24 -22
  3. package/alert.js.map +1 -1
  4. package/alertTarget.d.ts +2 -1
  5. package/alertTarget.js +22 -22
  6. package/alertTarget.js.map +1 -1
  7. package/cloudIntegrationAppDynamics.js +25 -23
  8. package/cloudIntegrationAppDynamics.js.map +1 -1
  9. package/cloudIntegrationAwsExternalId.js +12 -12
  10. package/cloudIntegrationAwsExternalId.js.map +1 -1
  11. package/cloudIntegrationAzure.js +25 -23
  12. package/cloudIntegrationAzure.js.map +1 -1
  13. package/cloudIntegrationAzureActivityLog.js +25 -23
  14. package/cloudIntegrationAzureActivityLog.js.map +1 -1
  15. package/cloudIntegrationCloudTrail.js +22 -22
  16. package/cloudIntegrationCloudTrail.js.map +1 -1
  17. package/cloudIntegrationCloudWatch.js +22 -22
  18. package/cloudIntegrationCloudWatch.js.map +1 -1
  19. package/cloudIntegrationEc2.js +22 -22
  20. package/cloudIntegrationEc2.js.map +1 -1
  21. package/cloudIntegrationGcp.js +25 -23
  22. package/cloudIntegrationGcp.js.map +1 -1
  23. package/cloudIntegrationGcpBilling.js +26 -24
  24. package/cloudIntegrationGcpBilling.js.map +1 -1
  25. package/cloudIntegrationNewRelic.d.ts +2 -1
  26. package/cloudIntegrationNewRelic.js +25 -23
  27. package/cloudIntegrationNewRelic.js.map +1 -1
  28. package/dashboard.d.ts +2 -1
  29. package/dashboard.js +22 -22
  30. package/dashboard.js.map +1 -1
  31. package/dashboardJson.d.ts +2 -0
  32. package/dashboardJson.js +19 -17
  33. package/dashboardJson.js.map +1 -1
  34. package/derivedMetric.js +22 -22
  35. package/derivedMetric.js.map +1 -1
  36. package/event.d.ts +120 -0
  37. package/event.js +87 -0
  38. package/event.js.map +1 -0
  39. package/externalLink.js +22 -22
  40. package/externalLink.js.map +1 -1
  41. package/getAlert.d.ts +145 -0
  42. package/getAlert.js +38 -0
  43. package/getAlert.js.map +1 -0
  44. package/getAlerts.d.ts +61 -0
  45. package/getAlerts.js +40 -0
  46. package/getAlerts.js.map +1 -0
  47. package/getDashboard.d.ts +112 -0
  48. package/getDashboard.js +37 -0
  49. package/getDashboard.js.map +1 -0
  50. package/getDashboards.d.ts +61 -0
  51. package/getDashboards.js +40 -0
  52. package/getDashboards.js.map +1 -0
  53. package/getDerivedMetric.d.ts +133 -0
  54. package/getDerivedMetric.js +37 -0
  55. package/getDerivedMetric.js.map +1 -0
  56. package/getDerivedMetrics.d.ts +61 -0
  57. package/getDerivedMetrics.js +40 -0
  58. package/getDerivedMetrics.js.map +1 -0
  59. package/getEvent.d.ts +78 -0
  60. package/getEvent.js +37 -0
  61. package/getEvent.js.map +1 -0
  62. package/getEvents.d.ts +87 -0
  63. package/getEvents.js +43 -0
  64. package/getEvents.js.map +1 -0
  65. package/getExternalLink.d.ts +94 -0
  66. package/getExternalLink.js +37 -0
  67. package/getExternalLink.js.map +1 -0
  68. package/getExternalLinks.d.ts +61 -0
  69. package/getExternalLinks.js +40 -0
  70. package/getExternalLinks.js.map +1 -0
  71. package/getMaintenanceWindow.d.ts +119 -0
  72. package/getMaintenanceWindow.js +37 -0
  73. package/getMaintenanceWindow.js.map +1 -0
  74. package/getMaintenanceWindowAll.d.ts +30 -0
  75. package/getMaintenanceWindowAll.js +24 -0
  76. package/getMaintenanceWindowAll.js.map +1 -0
  77. package/getMetricsPolicy.d.ts +16 -0
  78. package/getMetricsPolicy.js +16 -0
  79. package/getMetricsPolicy.js.map +1 -0
  80. package/getRole.d.ts +57 -0
  81. package/getRole.js +37 -0
  82. package/getRole.js.map +1 -0
  83. package/getRoles.d.ts +61 -0
  84. package/getRoles.js +40 -0
  85. package/getRoles.js.map +1 -0
  86. package/getUser.d.ts +60 -0
  87. package/getUser.js +37 -0
  88. package/getUser.js.map +1 -0
  89. package/getUserGroup.d.ts +61 -0
  90. package/getUserGroup.js +37 -0
  91. package/getUserGroup.js.map +1 -0
  92. package/getUserGroups.d.ts +61 -0
  93. package/getUserGroups.js +40 -0
  94. package/getUserGroups.js.map +1 -0
  95. package/getUsers.d.ts +29 -0
  96. package/getUsers.js +29 -0
  97. package/getUsers.js.map +1 -0
  98. package/index.d.ts +132 -25
  99. package/index.js +138 -92
  100. package/index.js.map +1 -1
  101. package/ingestionPolicy.d.ts +3 -0
  102. package/ingestionPolicy.js +24 -19
  103. package/ingestionPolicy.js.map +1 -1
  104. package/maintenanceWindow.js +22 -22
  105. package/maintenanceWindow.js.map +1 -1
  106. package/metricsPolicy.d.ts +83 -0
  107. package/metricsPolicy.js +73 -0
  108. package/metricsPolicy.js.map +1 -0
  109. package/package.json +4 -3
  110. package/package.json.bak +2 -1
  111. package/package.json.dev +4 -3
  112. package/provider.js +10 -10
  113. package/provider.js.map +1 -1
  114. package/role.js +20 -20
  115. package/role.js.map +1 -1
  116. package/serviceAccount.js +22 -22
  117. package/serviceAccount.js.map +1 -1
  118. package/types/index.js.map +1 -1
  119. package/types/input.d.ts +49 -1
  120. package/types/output.d.ts +1157 -1
  121. package/user.js +22 -22
  122. package/user.js.map +1 -1
  123. package/userGroup.js +19 -19
  124. package/userGroup.js.map +1 -1
  125. package/utilities.js +13 -1
  126. package/utilities.js.map +1 -1
  127. package/cloudIntegrationTesla.d.ts +0 -150
  128. package/cloudIntegrationTesla.js +0 -94
  129. package/cloudIntegrationTesla.js.map +0 -1
package/derivedMetric.js CHANGED
@@ -30,6 +30,28 @@ const utilities = require("./utilities");
30
30
  * ```
31
31
  */
32
32
  class DerivedMetric extends pulumi.CustomResource {
33
+ /**
34
+ * Get an existing DerivedMetric resource's state with the given name, ID, and optional extra
35
+ * properties used to qualify the lookup.
36
+ *
37
+ * @param name The _unique_ name of the resulting resource.
38
+ * @param id The _unique_ provider ID of the resource to lookup.
39
+ * @param state Any extra arguments used during the lookup.
40
+ * @param opts Optional settings to control the behavior of the CustomResource.
41
+ */
42
+ static get(name, id, state, opts) {
43
+ return new DerivedMetric(name, state, Object.assign(Object.assign({}, opts), { id: id }));
44
+ }
45
+ /**
46
+ * Returns true if the given object is an instance of DerivedMetric. This is designed to work even
47
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
48
+ */
49
+ static isInstance(obj) {
50
+ if (obj === undefined || obj === null) {
51
+ return false;
52
+ }
53
+ return obj['__pulumiType'] === DerivedMetric.__pulumiType;
54
+ }
33
55
  constructor(name, argsOrState, opts) {
34
56
  let resourceInputs = {};
35
57
  opts = opts || {};
@@ -58,28 +80,6 @@ class DerivedMetric extends pulumi.CustomResource {
58
80
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
59
81
  super(DerivedMetric.__pulumiType, name, resourceInputs, opts);
60
82
  }
61
- /**
62
- * Get an existing DerivedMetric resource's state with the given name, ID, and optional extra
63
- * properties used to qualify the lookup.
64
- *
65
- * @param name The _unique_ name of the resulting resource.
66
- * @param id The _unique_ provider ID of the resource to lookup.
67
- * @param state Any extra arguments used during the lookup.
68
- * @param opts Optional settings to control the behavior of the CustomResource.
69
- */
70
- static get(name, id, state, opts) {
71
- return new DerivedMetric(name, state, Object.assign(Object.assign({}, opts), { id: id }));
72
- }
73
- /**
74
- * Returns true if the given object is an instance of DerivedMetric. This is designed to work even
75
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
76
- */
77
- static isInstance(obj) {
78
- if (obj === undefined || obj === null) {
79
- return false;
80
- }
81
- return obj['__pulumiType'] === DerivedMetric.__pulumiType;
82
- }
83
83
  }
84
84
  exports.DerivedMetric = DerivedMetric;
85
85
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"derivedMetric.js","sourceRoot":"","sources":["../derivedMetric.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAA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;AAtEG,gBAAgB;AACO,0BAAY,GAAG,6CAA6C,CAAC"}
package/event.d.ts ADDED
@@ -0,0 +1,120 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides a Wavefront event resource. This allows events to be created, updated, and deleted.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * ```typescript
8
+ * import * as pulumi from "@pulumi/pulumi";
9
+ * import * as wavefront from "@pulumi/wavefront";
10
+ *
11
+ * const event = new wavefront.Event("event", {
12
+ * annotations: {
13
+ * details: "description",
14
+ * severity: "info",
15
+ * type: "event type",
16
+ * },
17
+ * tags: ["eventTag1"],
18
+ * });
19
+ * ```
20
+ *
21
+ * ## Import
22
+ *
23
+ * You can import events by using the id, for example
24
+ *
25
+ * ```sh
26
+ * $ pulumi import wavefront:index/event:Event event 1479868728473
27
+ * ```
28
+ */
29
+ export declare class Event extends pulumi.CustomResource {
30
+ /**
31
+ * Get an existing Event resource's state with the given name, ID, and optional extra
32
+ * properties used to qualify the lookup.
33
+ *
34
+ * @param name The _unique_ name of the resulting resource.
35
+ * @param id The _unique_ provider ID of the resource to lookup.
36
+ * @param state Any extra arguments used during the lookup.
37
+ * @param opts Optional settings to control the behavior of the CustomResource.
38
+ */
39
+ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: EventState, opts?: pulumi.CustomResourceOptions): Event;
40
+ /**
41
+ * Returns true if the given object is an instance of Event. This is designed to work even
42
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
43
+ */
44
+ static isInstance(obj: any): obj is Event;
45
+ /**
46
+ * The annotations associated with the event.
47
+ */
48
+ readonly annotations: pulumi.Output<{
49
+ [key: string]: string;
50
+ }>;
51
+ readonly endtimeKey: pulumi.Output<number | undefined>;
52
+ /**
53
+ * The name of the event as it is displayed in Wavefront.
54
+ */
55
+ readonly name: pulumi.Output<string>;
56
+ /**
57
+ * The start time of the event in epoch milliseconds.
58
+ */
59
+ readonly startTime: pulumi.Output<number | undefined>;
60
+ /**
61
+ * A set of tags to assign to this resource.
62
+ */
63
+ readonly tags: pulumi.Output<string[] | undefined>;
64
+ /**
65
+ * Create a Event resource with the given unique name, arguments, and options.
66
+ *
67
+ * @param name The _unique_ name of the resource.
68
+ * @param args The arguments to use to populate this resource's properties.
69
+ * @param opts A bag of options that control this resource's behavior.
70
+ */
71
+ constructor(name: string, args: EventArgs, opts?: pulumi.CustomResourceOptions);
72
+ }
73
+ /**
74
+ * Input properties used for looking up and filtering Event resources.
75
+ */
76
+ export interface EventState {
77
+ /**
78
+ * The annotations associated with the event.
79
+ */
80
+ annotations?: pulumi.Input<{
81
+ [key: string]: pulumi.Input<string>;
82
+ }>;
83
+ endtimeKey?: pulumi.Input<number>;
84
+ /**
85
+ * The name of the event as it is displayed in Wavefront.
86
+ */
87
+ name?: pulumi.Input<string>;
88
+ /**
89
+ * The start time of the event in epoch milliseconds.
90
+ */
91
+ startTime?: pulumi.Input<number>;
92
+ /**
93
+ * A set of tags to assign to this resource.
94
+ */
95
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
96
+ }
97
+ /**
98
+ * The set of arguments for constructing a Event resource.
99
+ */
100
+ export interface EventArgs {
101
+ /**
102
+ * The annotations associated with the event.
103
+ */
104
+ annotations: pulumi.Input<{
105
+ [key: string]: pulumi.Input<string>;
106
+ }>;
107
+ endtimeKey?: pulumi.Input<number>;
108
+ /**
109
+ * The name of the event as it is displayed in Wavefront.
110
+ */
111
+ name?: pulumi.Input<string>;
112
+ /**
113
+ * The start time of the event in epoch milliseconds.
114
+ */
115
+ startTime?: pulumi.Input<number>;
116
+ /**
117
+ * A set of tags to assign to this resource.
118
+ */
119
+ tags?: pulumi.Input<pulumi.Input<string>[]>;
120
+ }
package/event.js ADDED
@@ -0,0 +1,87 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.Event = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides a Wavefront event resource. This allows events to be created, updated, and deleted.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as wavefront from "@pulumi/wavefront";
16
+ *
17
+ * const event = new wavefront.Event("event", {
18
+ * annotations: {
19
+ * details: "description",
20
+ * severity: "info",
21
+ * type: "event type",
22
+ * },
23
+ * tags: ["eventTag1"],
24
+ * });
25
+ * ```
26
+ *
27
+ * ## Import
28
+ *
29
+ * You can import events by using the id, for example
30
+ *
31
+ * ```sh
32
+ * $ pulumi import wavefront:index/event:Event event 1479868728473
33
+ * ```
34
+ */
35
+ class Event extends pulumi.CustomResource {
36
+ /**
37
+ * Get an existing Event resource's state with the given name, ID, and optional extra
38
+ * properties used to qualify the lookup.
39
+ *
40
+ * @param name The _unique_ name of the resulting resource.
41
+ * @param id The _unique_ provider ID of the resource to lookup.
42
+ * @param state Any extra arguments used during the lookup.
43
+ * @param opts Optional settings to control the behavior of the CustomResource.
44
+ */
45
+ static get(name, id, state, opts) {
46
+ return new Event(name, state, Object.assign(Object.assign({}, opts), { id: id }));
47
+ }
48
+ /**
49
+ * Returns true if the given object is an instance of Event. This is designed to work even
50
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
51
+ */
52
+ static isInstance(obj) {
53
+ if (obj === undefined || obj === null) {
54
+ return false;
55
+ }
56
+ return obj['__pulumiType'] === Event.__pulumiType;
57
+ }
58
+ constructor(name, argsOrState, opts) {
59
+ let resourceInputs = {};
60
+ opts = opts || {};
61
+ if (opts.id) {
62
+ const state = argsOrState;
63
+ resourceInputs["annotations"] = state ? state.annotations : undefined;
64
+ resourceInputs["endtimeKey"] = state ? state.endtimeKey : undefined;
65
+ resourceInputs["name"] = state ? state.name : undefined;
66
+ resourceInputs["startTime"] = state ? state.startTime : undefined;
67
+ resourceInputs["tags"] = state ? state.tags : undefined;
68
+ }
69
+ else {
70
+ const args = argsOrState;
71
+ if ((!args || args.annotations === undefined) && !opts.urn) {
72
+ throw new Error("Missing required property 'annotations'");
73
+ }
74
+ resourceInputs["annotations"] = args ? args.annotations : undefined;
75
+ resourceInputs["endtimeKey"] = args ? args.endtimeKey : undefined;
76
+ resourceInputs["name"] = args ? args.name : undefined;
77
+ resourceInputs["startTime"] = args ? args.startTime : undefined;
78
+ resourceInputs["tags"] = args ? args.tags : undefined;
79
+ }
80
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
81
+ super(Event.__pulumiType, name, resourceInputs, opts);
82
+ }
83
+ }
84
+ exports.Event = Event;
85
+ /** @internal */
86
+ Event.__pulumiType = 'wavefront:index/event:Event';
87
+ //# sourceMappingURL=event.js.map
package/event.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.js","sourceRoot":"","sources":["../event.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,KAAM,SAAQ,MAAM,CAAC,cAAc;IAC5C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAkB,EAAE,IAAmC;QAChH,OAAO,IAAI,KAAK,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC5D,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,KAAK,CAAC,YAAY,CAAC;IACtD,CAAC;IA4BD,YAAY,IAAY,EAAE,WAAoC,EAAE,IAAmC;QAC/F,IAAI,cAAc,GAAkB,EAA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C,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC;YAChE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;SACzD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IAC1D,CAAC;;AA7EL,sBA8EC;AAhEG,gBAAgB;AACO,kBAAY,GAAG,6BAA6B,CAAC"}
package/externalLink.js CHANGED
@@ -29,6 +29,28 @@ const utilities = require("./utilities");
29
29
  * ```
30
30
  */
31
31
  class ExternalLink extends pulumi.CustomResource {
32
+ /**
33
+ * Get an existing ExternalLink resource's state with the given name, ID, and optional extra
34
+ * properties used to qualify the lookup.
35
+ *
36
+ * @param name The _unique_ name of the resulting resource.
37
+ * @param id The _unique_ provider ID of the resource to lookup.
38
+ * @param state Any extra arguments used during the lookup.
39
+ * @param opts Optional settings to control the behavior of the CustomResource.
40
+ */
41
+ static get(name, id, state, opts) {
42
+ return new ExternalLink(name, state, Object.assign(Object.assign({}, opts), { id: id }));
43
+ }
44
+ /**
45
+ * Returns true if the given object is an instance of ExternalLink. This is designed to work even
46
+ * when multiple copies of the Pulumi SDK have been loaded into the same process.
47
+ */
48
+ static isInstance(obj) {
49
+ if (obj === undefined || obj === null) {
50
+ return false;
51
+ }
52
+ return obj['__pulumiType'] === ExternalLink.__pulumiType;
53
+ }
32
54
  constructor(name, argsOrState, opts) {
33
55
  let resourceInputs = {};
34
56
  opts = opts || {};
@@ -61,28 +83,6 @@ class ExternalLink extends pulumi.CustomResource {
61
83
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
62
84
  super(ExternalLink.__pulumiType, name, resourceInputs, opts);
63
85
  }
64
- /**
65
- * Get an existing ExternalLink resource's state with the given name, ID, and optional extra
66
- * properties used to qualify the lookup.
67
- *
68
- * @param name The _unique_ name of the resulting resource.
69
- * @param id The _unique_ provider ID of the resource to lookup.
70
- * @param state Any extra arguments used during the lookup.
71
- * @param opts Optional settings to control the behavior of the CustomResource.
72
- */
73
- static get(name, id, state, opts) {
74
- return new ExternalLink(name, state, Object.assign(Object.assign({}, opts), { id: id }));
75
- }
76
- /**
77
- * Returns true if the given object is an instance of ExternalLink. This is designed to work even
78
- * when multiple copies of the Pulumi SDK have been loaded into the same process.
79
- */
80
- static isInstance(obj) {
81
- if (obj === undefined || obj === null) {
82
- return false;
83
- }
84
- return obj['__pulumiType'] === ExternalLink.__pulumiType;
85
- }
86
86
  }
87
87
  exports.ExternalLink = ExternalLink;
88
88
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"externalLink.js","sourceRoot":"","sources":["../externalLink.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAa,YAAa,SAAQ,MAAM,CAAC,cAAc;IAoEnD,YAAY,IAAY,EAAE,WAAkD,EAAE,IAAmC;QAC7G,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4C,CAAC;YAC3D,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,kBAAkB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,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AAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;YAChF,cAAc,CAAC,UAAU,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;SACjE;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACjE,CAAC;;AAlGL,oCAmGC;AArFG,gBAAgB;AACO,yBAAY,GAAG,2CAA2C,CAAC"}
package/getAlert.d.ts ADDED
@@ -0,0 +1,145 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Use this data source to get information about a Wavefront alert by its ID.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as wavefront from "@pulumi/wavefront";
11
+ *
12
+ * // Get the information about the alert.
13
+ * const example = pulumi.output(wavefront.getAlert({
14
+ * id: "alert-id",
15
+ * }));
16
+ * ```
17
+ */
18
+ export declare function getAlert(args: GetAlertArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertResult>;
19
+ /**
20
+ * A collection of arguments for invoking getAlert.
21
+ */
22
+ export interface GetAlertArgs {
23
+ /**
24
+ * The ID associated with the alert data to be fetched.
25
+ */
26
+ id: string;
27
+ /**
28
+ * A comma-separated list of the email addresses or integration endpoints (such as PagerDuty or webhook) to notify when the alert status changes. Multiple target types can be in the list.
29
+ */
30
+ targets?: {
31
+ [key: string]: string;
32
+ };
33
+ }
34
+ /**
35
+ * A collection of values returned by getAlert.
36
+ */
37
+ export interface GetAlertResult {
38
+ /**
39
+ * User-supplied additional explanatory information about this alert.
40
+ */
41
+ readonly additionalInformation: string;
42
+ readonly alertType: string;
43
+ /**
44
+ * A list of users or groups that can modify the alert.
45
+ */
46
+ readonly canModifies: string[];
47
+ /**
48
+ * A list of users or groups that can view the alert.
49
+ */
50
+ readonly canViews: string[];
51
+ /**
52
+ * A Wavefront query that is evaluated at regular intervals (default is 1 minute). The alert fires and notifications are triggered when a data series matching this query evaluates to a non-zero value for a set number of consecutive minutes.
53
+ */
54
+ readonly condition: string;
55
+ /**
56
+ * A map of severity to condition for which this alert will trigger.
57
+ */
58
+ readonly conditions: {
59
+ [key: string]: string;
60
+ };
61
+ /**
62
+ * A second query the results of which are displayed in the alert user interface instead of the condition query.
63
+ */
64
+ readonly displayExpression: string;
65
+ /**
66
+ * A Boolean flag to enable real-time evaluation.
67
+ */
68
+ readonly evaluateRealtimeData: boolean;
69
+ /**
70
+ * A list of failing host label pairs.
71
+ */
72
+ readonly failingHostLabelPairs: outputs.GetAlertFailingHostLabelPair[];
73
+ /**
74
+ * The ID of the alert in Wavefront.
75
+ * * `alertType`- The type of alert in Wavefront.
76
+ */
77
+ readonly id: string;
78
+ /**
79
+ * A list of in maintenance host label pairs.
80
+ */
81
+ readonly inMaintenanceHostLabelPairs: outputs.GetAlertInMaintenanceHostLabelPair[];
82
+ /**
83
+ * A Boolean flag indicating whether to include obsolete metrics or not.
84
+ */
85
+ readonly includeObsoleteMetrics: boolean;
86
+ /**
87
+ * The number of consecutive minutes that a series matching the condition query must evaluate to "true" (non-zero value) before the alert fires.
88
+ */
89
+ readonly minutes: number;
90
+ /**
91
+ * The name of the alert as it is displayed in Wavefront.
92
+ */
93
+ readonly name: string;
94
+ /**
95
+ * How often to re-trigger a continually failing alert.
96
+ */
97
+ readonly notificationResendFrequencyMinutes: number;
98
+ /**
99
+ * The specified query is executed every `processRateMinutes` minutes.
100
+ */
101
+ readonly processRateMinutes: number;
102
+ /**
103
+ * The number of consecutive minutes that a firing series matching the condition query must evaluate to "false" (zero value) before the alert resolves.
104
+ */
105
+ readonly resolveAfterMinutes: number;
106
+ /**
107
+ * The severity of the alert.
108
+ */
109
+ readonly severity: string;
110
+ readonly severityLists: string[];
111
+ /**
112
+ * The status of the alert.
113
+ */
114
+ readonly statuses: string[];
115
+ /**
116
+ * A set of tags assigned to the alert.
117
+ */
118
+ readonly tags: string[];
119
+ /**
120
+ * An email address or integration endpoint (such as PagerDuty or webhook) to notify when the alert status changes.
121
+ */
122
+ readonly target: string;
123
+ /**
124
+ * A comma-separated list of the email addresses or integration endpoints (such as PagerDuty or webhook) to notify when the alert status changes. Multiple target types can be in the list.
125
+ */
126
+ readonly targets?: {
127
+ [key: string]: string;
128
+ };
129
+ }
130
+ export declare function getAlertOutput(args: GetAlertOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAlertResult>;
131
+ /**
132
+ * A collection of arguments for invoking getAlert.
133
+ */
134
+ export interface GetAlertOutputArgs {
135
+ /**
136
+ * The ID associated with the alert data to be fetched.
137
+ */
138
+ id: pulumi.Input<string>;
139
+ /**
140
+ * A comma-separated list of the email addresses or integration endpoints (such as PagerDuty or webhook) to notify when the alert status changes. Multiple target types can be in the list.
141
+ */
142
+ targets?: pulumi.Input<{
143
+ [key: string]: pulumi.Input<string>;
144
+ }>;
145
+ }
package/getAlert.js ADDED
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.getAlertOutput = exports.getAlert = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Use this data source to get information about a Wavefront alert by its ID.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as wavefront from "@pulumi/wavefront";
16
+ *
17
+ * // Get the information about the alert.
18
+ * const example = pulumi.output(wavefront.getAlert({
19
+ * id: "alert-id",
20
+ * }));
21
+ * ```
22
+ */
23
+ function getAlert(args, opts) {
24
+ if (!opts) {
25
+ opts = {};
26
+ }
27
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
28
+ return pulumi.runtime.invoke("wavefront:index/getAlert:getAlert", {
29
+ "id": args.id,
30
+ "targets": args.targets,
31
+ }, opts);
32
+ }
33
+ exports.getAlert = getAlert;
34
+ function getAlertOutput(args, opts) {
35
+ return pulumi.output(args).apply(a => getAlert(a, opts));
36
+ }
37
+ exports.getAlertOutput = getAlertOutput;
38
+ //# sourceMappingURL=getAlert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAlert.js","sourceRoot":"","sources":["../getAlert.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;GAcG;AACH,SAAgB,QAAQ,CAAC,IAAkB,EAAE,IAA2B;IACpE,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,mCAAmC,EAAE;QAC9D,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAVD,4BAUC;AA6GD,SAAgB,cAAc,CAAC,IAAwB,EAAE,IAA2B;IAChF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC5D,CAAC;AAFD,wCAEC"}
package/getAlerts.d.ts ADDED
@@ -0,0 +1,61 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Use this data source to get information about all Wavefront alerts.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * ```typescript
9
+ * import * as pulumi from "@pulumi/pulumi";
10
+ * import * as wavefront from "@pulumi/wavefront";
11
+ *
12
+ * // Get the information about all alerts.
13
+ * const example = pulumi.output(wavefront.getAlerts({
14
+ * limit: 10,
15
+ * offset: 0,
16
+ * }));
17
+ * ```
18
+ */
19
+ export declare function getAlerts(args?: GetAlertsArgs, opts?: pulumi.InvokeOptions): Promise<GetAlertsResult>;
20
+ /**
21
+ * A collection of arguments for invoking getAlerts.
22
+ */
23
+ export interface GetAlertsArgs {
24
+ /**
25
+ * Limit is the maximum number of results to be returned. Defaults to 100.
26
+ */
27
+ limit?: number;
28
+ /**
29
+ * Offset is the offset from the first result to be returned. Defaults to 0.
30
+ */
31
+ offset?: number;
32
+ }
33
+ /**
34
+ * A collection of values returned by getAlerts.
35
+ */
36
+ export interface GetAlertsResult {
37
+ /**
38
+ * List of all alerts in Wavefront. For each alert you will see a list of attributes.
39
+ */
40
+ readonly alerts: outputs.GetAlertsAlert[];
41
+ /**
42
+ * The provider-assigned unique ID for this managed resource.
43
+ */
44
+ readonly id: string;
45
+ readonly limit?: number;
46
+ readonly offset?: number;
47
+ }
48
+ export declare function getAlertsOutput(args?: GetAlertsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetAlertsResult>;
49
+ /**
50
+ * A collection of arguments for invoking getAlerts.
51
+ */
52
+ export interface GetAlertsOutputArgs {
53
+ /**
54
+ * Limit is the maximum number of results to be returned. Defaults to 100.
55
+ */
56
+ limit?: pulumi.Input<number>;
57
+ /**
58
+ * Offset is the offset from the first result to be returned. Defaults to 0.
59
+ */
60
+ offset?: pulumi.Input<number>;
61
+ }
package/getAlerts.js ADDED
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
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.getAlertsOutput = exports.getAlerts = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Use this data source to get information about all Wavefront alerts.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * ```typescript
14
+ * import * as pulumi from "@pulumi/pulumi";
15
+ * import * as wavefront from "@pulumi/wavefront";
16
+ *
17
+ * // Get the information about all alerts.
18
+ * const example = pulumi.output(wavefront.getAlerts({
19
+ * limit: 10,
20
+ * offset: 0,
21
+ * }));
22
+ * ```
23
+ */
24
+ function getAlerts(args, opts) {
25
+ args = args || {};
26
+ if (!opts) {
27
+ opts = {};
28
+ }
29
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
30
+ return pulumi.runtime.invoke("wavefront:index/getAlerts:getAlerts", {
31
+ "limit": args.limit,
32
+ "offset": args.offset,
33
+ }, opts);
34
+ }
35
+ exports.getAlerts = getAlerts;
36
+ function getAlertsOutput(args, opts) {
37
+ return pulumi.output(args).apply(a => getAlerts(a, opts));
38
+ }
39
+ exports.getAlertsOutput = getAlertsOutput;
40
+ //# sourceMappingURL=getAlerts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAlerts.js","sourceRoot":"","sources":["../getAlerts.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;IACnE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,qCAAqC,EAAE;QAChE,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,QAAQ,EAAE,IAAI,CAAC,MAAM;KACxB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAXD,8BAWC;AAgCD,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7D,CAAC;AAFD,0CAEC"}