pulumi-signalfx 7.2.0a1710160099__py3-none-any.whl → 7.6.0a1736849687__py3-none-any.whl

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 (54) hide show
  1. pulumi_signalfx/__init__.py +9 -0
  2. pulumi_signalfx/_inputs.py +1976 -339
  3. pulumi_signalfx/_utilities.py +41 -5
  4. pulumi_signalfx/alert_muting_rule.py +126 -72
  5. pulumi_signalfx/aws/_inputs.py +85 -16
  6. pulumi_signalfx/aws/external_integration.py +20 -43
  7. pulumi_signalfx/aws/integration.py +252 -321
  8. pulumi_signalfx/aws/outputs.py +21 -16
  9. pulumi_signalfx/aws/token_integration.py +76 -31
  10. pulumi_signalfx/azure/_inputs.py +41 -4
  11. pulumi_signalfx/azure/integration.py +170 -217
  12. pulumi_signalfx/azure/outputs.py +15 -4
  13. pulumi_signalfx/config/__init__.pyi +22 -0
  14. pulumi_signalfx/config/vars.py +28 -0
  15. pulumi_signalfx/dashboard.py +171 -186
  16. pulumi_signalfx/dashboard_group.py +191 -140
  17. pulumi_signalfx/data_link.py +102 -109
  18. pulumi_signalfx/detector.py +318 -383
  19. pulumi_signalfx/event_feed_chart.py +51 -86
  20. pulumi_signalfx/gcp/_inputs.py +51 -0
  21. pulumi_signalfx/gcp/integration.py +224 -148
  22. pulumi_signalfx/gcp/outputs.py +44 -0
  23. pulumi_signalfx/get_dimension_values.py +47 -8
  24. pulumi_signalfx/heatmap_chart.py +191 -174
  25. pulumi_signalfx/jira/integration.py +86 -103
  26. pulumi_signalfx/list_chart.py +243 -255
  27. pulumi_signalfx/log/_inputs.py +33 -2
  28. pulumi_signalfx/log/outputs.py +7 -2
  29. pulumi_signalfx/log/timeline.py +76 -87
  30. pulumi_signalfx/log/view.py +146 -113
  31. pulumi_signalfx/metric_ruleset.py +213 -70
  32. pulumi_signalfx/opsgenie/integration.py +51 -50
  33. pulumi_signalfx/org_token.py +111 -104
  34. pulumi_signalfx/outputs.py +661 -339
  35. pulumi_signalfx/pagerduty/get_integration.py +22 -25
  36. pulumi_signalfx/pagerduty/integration.py +42 -39
  37. pulumi_signalfx/provider.py +99 -0
  38. pulumi_signalfx/pulumi-plugin.json +2 -1
  39. pulumi_signalfx/servicenow/integration.py +68 -95
  40. pulumi_signalfx/single_value_chart.py +131 -162
  41. pulumi_signalfx/slack/integration.py +42 -41
  42. pulumi_signalfx/slo.py +97 -243
  43. pulumi_signalfx/slo_chart.py +197 -0
  44. pulumi_signalfx/table_chart.py +66 -65
  45. pulumi_signalfx/team.py +100 -107
  46. pulumi_signalfx/text_chart.py +72 -45
  47. pulumi_signalfx/time_chart.py +287 -352
  48. pulumi_signalfx/victorops/integration.py +42 -41
  49. pulumi_signalfx/webhook_integration.py +168 -61
  50. {pulumi_signalfx-7.2.0a1710160099.dist-info → pulumi_signalfx-7.6.0a1736849687.dist-info}/METADATA +7 -6
  51. pulumi_signalfx-7.6.0a1736849687.dist-info/RECORD +65 -0
  52. {pulumi_signalfx-7.2.0a1710160099.dist-info → pulumi_signalfx-7.6.0a1736849687.dist-info}/WHEEL +1 -1
  53. pulumi_signalfx-7.2.0a1710160099.dist-info/RECORD +0 -64
  54. {pulumi_signalfx-7.2.0a1710160099.dist-info → pulumi_signalfx-7.6.0a1736849687.dist-info}/top_level.txt +0 -0
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from .. import _utilities
11
16
 
12
17
  __all__ = ['IntegrationArgs', 'Integration']
@@ -19,9 +24,9 @@ class IntegrationArgs:
19
24
  post_url: Optional[pulumi.Input[str]] = None):
20
25
  """
21
26
  The set of arguments for constructing a Integration resource.
22
- :param pulumi.Input[bool] enabled: Whether the integration is enabled or not
23
- :param pulumi.Input[str] name: Name of the integration
24
- :param pulumi.Input[str] post_url: Opsgenie API URL for integration
27
+ :param pulumi.Input[bool] enabled: Whether the integration is enabled.
28
+ :param pulumi.Input[str] name: Name of the integration.
29
+ :param pulumi.Input[str] post_url: Splunk On-Call REST API URL.
25
30
  """
26
31
  pulumi.set(__self__, "enabled", enabled)
27
32
  if name is not None:
@@ -33,7 +38,7 @@ class IntegrationArgs:
33
38
  @pulumi.getter
34
39
  def enabled(self) -> pulumi.Input[bool]:
35
40
  """
36
- Whether the integration is enabled or not
41
+ Whether the integration is enabled.
37
42
  """
38
43
  return pulumi.get(self, "enabled")
39
44
 
@@ -45,7 +50,7 @@ class IntegrationArgs:
45
50
  @pulumi.getter
46
51
  def name(self) -> Optional[pulumi.Input[str]]:
47
52
  """
48
- Name of the integration
53
+ Name of the integration.
49
54
  """
50
55
  return pulumi.get(self, "name")
51
56
 
@@ -57,7 +62,7 @@ class IntegrationArgs:
57
62
  @pulumi.getter(name="postUrl")
58
63
  def post_url(self) -> Optional[pulumi.Input[str]]:
59
64
  """
60
- Opsgenie API URL for integration
65
+ Splunk On-Call REST API URL.
61
66
  """
62
67
  return pulumi.get(self, "post_url")
63
68
 
@@ -74,9 +79,9 @@ class _IntegrationState:
74
79
  post_url: Optional[pulumi.Input[str]] = None):
75
80
  """
76
81
  Input properties used for looking up and filtering Integration resources.
77
- :param pulumi.Input[bool] enabled: Whether the integration is enabled or not
78
- :param pulumi.Input[str] name: Name of the integration
79
- :param pulumi.Input[str] post_url: Opsgenie API URL for integration
82
+ :param pulumi.Input[bool] enabled: Whether the integration is enabled.
83
+ :param pulumi.Input[str] name: Name of the integration.
84
+ :param pulumi.Input[str] post_url: Splunk On-Call REST API URL.
80
85
  """
81
86
  if enabled is not None:
82
87
  pulumi.set(__self__, "enabled", enabled)
@@ -89,7 +94,7 @@ class _IntegrationState:
89
94
  @pulumi.getter
90
95
  def enabled(self) -> Optional[pulumi.Input[bool]]:
91
96
  """
92
- Whether the integration is enabled or not
97
+ Whether the integration is enabled.
93
98
  """
94
99
  return pulumi.get(self, "enabled")
95
100
 
@@ -101,7 +106,7 @@ class _IntegrationState:
101
106
  @pulumi.getter
102
107
  def name(self) -> Optional[pulumi.Input[str]]:
103
108
  """
104
- Name of the integration
109
+ Name of the integration.
105
110
  """
106
111
  return pulumi.get(self, "name")
107
112
 
@@ -113,7 +118,7 @@ class _IntegrationState:
113
118
  @pulumi.getter(name="postUrl")
114
119
  def post_url(self) -> Optional[pulumi.Input[str]]:
115
120
  """
116
- Opsgenie API URL for integration
121
+ Splunk On-Call REST API URL.
117
122
  """
118
123
  return pulumi.get(self, "post_url")
119
124
 
@@ -138,23 +143,21 @@ class Integration(pulumi.CustomResource):
138
143
 
139
144
  ## Example
140
145
 
141
- ## Arguments
146
+ ```python
147
+ import pulumi
148
+ import pulumi_signalfx as signalfx
142
149
 
143
- * `name` - (Required) Name of the integration.
144
- * `enabled` - (Required) Whether the integration is enabled.
145
- * `post_url` - (Optional) Splunk On-Call REST API URL.
146
-
147
- ## Attributes
148
-
149
- In a addition to all arguments above, the following attributes are exported:
150
-
151
- * `id` - The ID of the integration.
150
+ vioctor_ops_myteam = signalfx.victorops.Integration("vioctor_ops_myteam",
151
+ name="Splunk On-Call - My Team",
152
+ enabled=True,
153
+ post_url="https://alert.victorops.com/integrations/generic/1234/alert/$key/$routing_key")
154
+ ```
152
155
 
153
156
  :param str resource_name: The name of the resource.
154
157
  :param pulumi.ResourceOptions opts: Options for the resource.
155
- :param pulumi.Input[bool] enabled: Whether the integration is enabled or not
156
- :param pulumi.Input[str] name: Name of the integration
157
- :param pulumi.Input[str] post_url: Opsgenie API URL for integration
158
+ :param pulumi.Input[bool] enabled: Whether the integration is enabled.
159
+ :param pulumi.Input[str] name: Name of the integration.
160
+ :param pulumi.Input[str] post_url: Splunk On-Call REST API URL.
158
161
  """
159
162
  ...
160
163
  @overload
@@ -169,17 +172,15 @@ class Integration(pulumi.CustomResource):
169
172
 
170
173
  ## Example
171
174
 
172
- ## Arguments
173
-
174
- * `name` - (Required) Name of the integration.
175
- * `enabled` - (Required) Whether the integration is enabled.
176
- * `post_url` - (Optional) Splunk On-Call REST API URL.
177
-
178
- ## Attributes
179
-
180
- In a addition to all arguments above, the following attributes are exported:
175
+ ```python
176
+ import pulumi
177
+ import pulumi_signalfx as signalfx
181
178
 
182
- * `id` - The ID of the integration.
179
+ vioctor_ops_myteam = signalfx.victorops.Integration("vioctor_ops_myteam",
180
+ name="Splunk On-Call - My Team",
181
+ enabled=True,
182
+ post_url="https://alert.victorops.com/integrations/generic/1234/alert/$key/$routing_key")
183
+ ```
183
184
 
184
185
  :param str resource_name: The name of the resource.
185
186
  :param IntegrationArgs args: The arguments to use to populate this resource's properties.
@@ -233,9 +234,9 @@ class Integration(pulumi.CustomResource):
233
234
  :param str resource_name: The unique name of the resulting resource.
234
235
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
235
236
  :param pulumi.ResourceOptions opts: Options for the resource.
236
- :param pulumi.Input[bool] enabled: Whether the integration is enabled or not
237
- :param pulumi.Input[str] name: Name of the integration
238
- :param pulumi.Input[str] post_url: Opsgenie API URL for integration
237
+ :param pulumi.Input[bool] enabled: Whether the integration is enabled.
238
+ :param pulumi.Input[str] name: Name of the integration.
239
+ :param pulumi.Input[str] post_url: Splunk On-Call REST API URL.
239
240
  """
240
241
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
241
242
 
@@ -250,7 +251,7 @@ class Integration(pulumi.CustomResource):
250
251
  @pulumi.getter
251
252
  def enabled(self) -> pulumi.Output[bool]:
252
253
  """
253
- Whether the integration is enabled or not
254
+ Whether the integration is enabled.
254
255
  """
255
256
  return pulumi.get(self, "enabled")
256
257
 
@@ -258,7 +259,7 @@ class Integration(pulumi.CustomResource):
258
259
  @pulumi.getter
259
260
  def name(self) -> pulumi.Output[str]:
260
261
  """
261
- Name of the integration
262
+ Name of the integration.
262
263
  """
263
264
  return pulumi.get(self, "name")
264
265
 
@@ -266,7 +267,7 @@ class Integration(pulumi.CustomResource):
266
267
  @pulumi.getter(name="postUrl")
267
268
  def post_url(self) -> pulumi.Output[Optional[str]]:
268
269
  """
269
- Opsgenie API URL for integration
270
+ Splunk On-Call REST API URL.
270
271
  """
271
272
  return pulumi.get(self, "post_url")
272
273
 
@@ -4,9 +4,14 @@
4
4
 
5
5
  import copy
6
6
  import warnings
7
+ import sys
7
8
  import pulumi
8
9
  import pulumi.runtime
9
10
  from typing import Any, Mapping, Optional, Sequence, Union, overload
11
+ if sys.version_info >= (3, 11):
12
+ from typing import NotRequired, TypedDict, TypeAlias
13
+ else:
14
+ from typing_extensions import NotRequired, TypedDict, TypeAlias
10
15
  from . import _utilities
11
16
  from . import outputs
12
17
  from ._inputs import *
@@ -18,21 +23,29 @@ class WebhookIntegrationArgs:
18
23
  def __init__(__self__, *,
19
24
  enabled: pulumi.Input[bool],
20
25
  headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebhookIntegrationHeaderArgs']]]] = None,
26
+ method: Optional[pulumi.Input[str]] = None,
21
27
  name: Optional[pulumi.Input[str]] = None,
28
+ payload_template: Optional[pulumi.Input[str]] = None,
22
29
  shared_secret: Optional[pulumi.Input[str]] = None,
23
30
  url: Optional[pulumi.Input[str]] = None):
24
31
  """
25
32
  The set of arguments for constructing a WebhookIntegration resource.
26
- :param pulumi.Input[bool] enabled: Whether the integration is enabled or not
27
- :param pulumi.Input[Sequence[pulumi.Input['WebhookIntegrationHeaderArgs']]] headers: HTTP headers to pass in the request
28
- :param pulumi.Input[str] name: Name of the integration
29
- :param pulumi.Input[str] url: Webhook URL
33
+ :param pulumi.Input[bool] enabled: Whether the integration is enabled.
34
+ :param pulumi.Input[Sequence[pulumi.Input['WebhookIntegrationHeaderArgs']]] headers: A header to send with the request
35
+ :param pulumi.Input[str] method: HTTP method used for the webhook request, such as 'GET', 'POST' and 'PUT'
36
+ :param pulumi.Input[str] name: Name of the integration.
37
+ :param pulumi.Input[str] payload_template: Template for the payload to be sent with the webhook request in JSON format
38
+ :param pulumi.Input[str] url: The URL to request
30
39
  """
31
40
  pulumi.set(__self__, "enabled", enabled)
32
41
  if headers is not None:
33
42
  pulumi.set(__self__, "headers", headers)
43
+ if method is not None:
44
+ pulumi.set(__self__, "method", method)
34
45
  if name is not None:
35
46
  pulumi.set(__self__, "name", name)
47
+ if payload_template is not None:
48
+ pulumi.set(__self__, "payload_template", payload_template)
36
49
  if shared_secret is not None:
37
50
  pulumi.set(__self__, "shared_secret", shared_secret)
38
51
  if url is not None:
@@ -42,7 +55,7 @@ class WebhookIntegrationArgs:
42
55
  @pulumi.getter
43
56
  def enabled(self) -> pulumi.Input[bool]:
44
57
  """
45
- Whether the integration is enabled or not
58
+ Whether the integration is enabled.
46
59
  """
47
60
  return pulumi.get(self, "enabled")
48
61
 
@@ -54,7 +67,7 @@ class WebhookIntegrationArgs:
54
67
  @pulumi.getter
55
68
  def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebhookIntegrationHeaderArgs']]]]:
56
69
  """
57
- HTTP headers to pass in the request
70
+ A header to send with the request
58
71
  """
59
72
  return pulumi.get(self, "headers")
60
73
 
@@ -62,11 +75,23 @@ class WebhookIntegrationArgs:
62
75
  def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebhookIntegrationHeaderArgs']]]]):
63
76
  pulumi.set(self, "headers", value)
64
77
 
78
+ @property
79
+ @pulumi.getter
80
+ def method(self) -> Optional[pulumi.Input[str]]:
81
+ """
82
+ HTTP method used for the webhook request, such as 'GET', 'POST' and 'PUT'
83
+ """
84
+ return pulumi.get(self, "method")
85
+
86
+ @method.setter
87
+ def method(self, value: Optional[pulumi.Input[str]]):
88
+ pulumi.set(self, "method", value)
89
+
65
90
  @property
66
91
  @pulumi.getter
67
92
  def name(self) -> Optional[pulumi.Input[str]]:
68
93
  """
69
- Name of the integration
94
+ Name of the integration.
70
95
  """
71
96
  return pulumi.get(self, "name")
72
97
 
@@ -74,6 +99,18 @@ class WebhookIntegrationArgs:
74
99
  def name(self, value: Optional[pulumi.Input[str]]):
75
100
  pulumi.set(self, "name", value)
76
101
 
102
+ @property
103
+ @pulumi.getter(name="payloadTemplate")
104
+ def payload_template(self) -> Optional[pulumi.Input[str]]:
105
+ """
106
+ Template for the payload to be sent with the webhook request in JSON format
107
+ """
108
+ return pulumi.get(self, "payload_template")
109
+
110
+ @payload_template.setter
111
+ def payload_template(self, value: Optional[pulumi.Input[str]]):
112
+ pulumi.set(self, "payload_template", value)
113
+
77
114
  @property
78
115
  @pulumi.getter(name="sharedSecret")
79
116
  def shared_secret(self) -> Optional[pulumi.Input[str]]:
@@ -87,7 +124,7 @@ class WebhookIntegrationArgs:
87
124
  @pulumi.getter
88
125
  def url(self) -> Optional[pulumi.Input[str]]:
89
126
  """
90
- Webhook URL
127
+ The URL to request
91
128
  """
92
129
  return pulumi.get(self, "url")
93
130
 
@@ -101,22 +138,30 @@ class _WebhookIntegrationState:
101
138
  def __init__(__self__, *,
102
139
  enabled: Optional[pulumi.Input[bool]] = None,
103
140
  headers: Optional[pulumi.Input[Sequence[pulumi.Input['WebhookIntegrationHeaderArgs']]]] = None,
141
+ method: Optional[pulumi.Input[str]] = None,
104
142
  name: Optional[pulumi.Input[str]] = None,
143
+ payload_template: Optional[pulumi.Input[str]] = None,
105
144
  shared_secret: Optional[pulumi.Input[str]] = None,
106
145
  url: Optional[pulumi.Input[str]] = None):
107
146
  """
108
147
  Input properties used for looking up and filtering WebhookIntegration resources.
109
- :param pulumi.Input[bool] enabled: Whether the integration is enabled or not
110
- :param pulumi.Input[Sequence[pulumi.Input['WebhookIntegrationHeaderArgs']]] headers: HTTP headers to pass in the request
111
- :param pulumi.Input[str] name: Name of the integration
112
- :param pulumi.Input[str] url: Webhook URL
148
+ :param pulumi.Input[bool] enabled: Whether the integration is enabled.
149
+ :param pulumi.Input[Sequence[pulumi.Input['WebhookIntegrationHeaderArgs']]] headers: A header to send with the request
150
+ :param pulumi.Input[str] method: HTTP method used for the webhook request, such as 'GET', 'POST' and 'PUT'
151
+ :param pulumi.Input[str] name: Name of the integration.
152
+ :param pulumi.Input[str] payload_template: Template for the payload to be sent with the webhook request in JSON format
153
+ :param pulumi.Input[str] url: The URL to request
113
154
  """
114
155
  if enabled is not None:
115
156
  pulumi.set(__self__, "enabled", enabled)
116
157
  if headers is not None:
117
158
  pulumi.set(__self__, "headers", headers)
159
+ if method is not None:
160
+ pulumi.set(__self__, "method", method)
118
161
  if name is not None:
119
162
  pulumi.set(__self__, "name", name)
163
+ if payload_template is not None:
164
+ pulumi.set(__self__, "payload_template", payload_template)
120
165
  if shared_secret is not None:
121
166
  pulumi.set(__self__, "shared_secret", shared_secret)
122
167
  if url is not None:
@@ -126,7 +171,7 @@ class _WebhookIntegrationState:
126
171
  @pulumi.getter
127
172
  def enabled(self) -> Optional[pulumi.Input[bool]]:
128
173
  """
129
- Whether the integration is enabled or not
174
+ Whether the integration is enabled.
130
175
  """
131
176
  return pulumi.get(self, "enabled")
132
177
 
@@ -138,7 +183,7 @@ class _WebhookIntegrationState:
138
183
  @pulumi.getter
139
184
  def headers(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['WebhookIntegrationHeaderArgs']]]]:
140
185
  """
141
- HTTP headers to pass in the request
186
+ A header to send with the request
142
187
  """
143
188
  return pulumi.get(self, "headers")
144
189
 
@@ -146,11 +191,23 @@ class _WebhookIntegrationState:
146
191
  def headers(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['WebhookIntegrationHeaderArgs']]]]):
147
192
  pulumi.set(self, "headers", value)
148
193
 
194
+ @property
195
+ @pulumi.getter
196
+ def method(self) -> Optional[pulumi.Input[str]]:
197
+ """
198
+ HTTP method used for the webhook request, such as 'GET', 'POST' and 'PUT'
199
+ """
200
+ return pulumi.get(self, "method")
201
+
202
+ @method.setter
203
+ def method(self, value: Optional[pulumi.Input[str]]):
204
+ pulumi.set(self, "method", value)
205
+
149
206
  @property
150
207
  @pulumi.getter
151
208
  def name(self) -> Optional[pulumi.Input[str]]:
152
209
  """
153
- Name of the integration
210
+ Name of the integration.
154
211
  """
155
212
  return pulumi.get(self, "name")
156
213
 
@@ -158,6 +215,18 @@ class _WebhookIntegrationState:
158
215
  def name(self, value: Optional[pulumi.Input[str]]):
159
216
  pulumi.set(self, "name", value)
160
217
 
218
+ @property
219
+ @pulumi.getter(name="payloadTemplate")
220
+ def payload_template(self) -> Optional[pulumi.Input[str]]:
221
+ """
222
+ Template for the payload to be sent with the webhook request in JSON format
223
+ """
224
+ return pulumi.get(self, "payload_template")
225
+
226
+ @payload_template.setter
227
+ def payload_template(self, value: Optional[pulumi.Input[str]]):
228
+ pulumi.set(self, "payload_template", value)
229
+
161
230
  @property
162
231
  @pulumi.getter(name="sharedSecret")
163
232
  def shared_secret(self) -> Optional[pulumi.Input[str]]:
@@ -171,7 +240,7 @@ class _WebhookIntegrationState:
171
240
  @pulumi.getter
172
241
  def url(self) -> Optional[pulumi.Input[str]]:
173
242
  """
174
- Webhook URL
243
+ The URL to request
175
244
  """
176
245
  return pulumi.get(self, "url")
177
246
 
@@ -186,8 +255,10 @@ class WebhookIntegration(pulumi.CustomResource):
186
255
  resource_name: str,
187
256
  opts: Optional[pulumi.ResourceOptions] = None,
188
257
  enabled: Optional[pulumi.Input[bool]] = None,
189
- headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WebhookIntegrationHeaderArgs']]]]] = None,
258
+ headers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['WebhookIntegrationHeaderArgs', 'WebhookIntegrationHeaderArgsDict']]]]] = None,
259
+ method: Optional[pulumi.Input[str]] = None,
190
260
  name: Optional[pulumi.Input[str]] = None,
261
+ payload_template: Optional[pulumi.Input[str]] = None,
191
262
  shared_secret: Optional[pulumi.Input[str]] = None,
192
263
  url: Optional[pulumi.Input[str]] = None,
193
264
  __props__=None):
@@ -198,28 +269,34 @@ class WebhookIntegration(pulumi.CustomResource):
198
269
 
199
270
  ## Example
200
271
 
201
- ## Arguments
202
-
203
- * `name` - (Required) Name of the integration.
204
- * `enabled` - (Required) Whether the integration is enabled.
205
- * `url` - (Required) The URL to request
206
- * `shared_secret` - (Optional)
207
- * `headers` - (Optional) A header to send with the request
208
- * `header_key` - (Required) The key of the header to send
209
- * `header_value` - (Required) The value of the header to send
210
-
211
- ## Attributes
212
-
213
- In a addition to all arguments above, the following attributes are exported:
214
-
215
- * `id` - The ID of the integration.
272
+ ```python
273
+ import pulumi
274
+ import pulumi_signalfx as signalfx
275
+
276
+ webhook_myteam = signalfx.WebhookIntegration("webhook_myteam",
277
+ name="Webhook - My Team",
278
+ enabled=True,
279
+ url="https://www.example.com",
280
+ shared_secret="abc1234",
281
+ method="POST",
282
+ payload_template=\"\"\"{
283
+ "incidentId": "{{{incidentId}}}"
284
+ }
285
+ \"\"\",
286
+ headers=[{
287
+ "header_key": "some_header",
288
+ "header_value": "value_for_that_header",
289
+ }])
290
+ ```
216
291
 
217
292
  :param str resource_name: The name of the resource.
218
293
  :param pulumi.ResourceOptions opts: Options for the resource.
219
- :param pulumi.Input[bool] enabled: Whether the integration is enabled or not
220
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WebhookIntegrationHeaderArgs']]]] headers: HTTP headers to pass in the request
221
- :param pulumi.Input[str] name: Name of the integration
222
- :param pulumi.Input[str] url: Webhook URL
294
+ :param pulumi.Input[bool] enabled: Whether the integration is enabled.
295
+ :param pulumi.Input[Sequence[pulumi.Input[Union['WebhookIntegrationHeaderArgs', 'WebhookIntegrationHeaderArgsDict']]]] headers: A header to send with the request
296
+ :param pulumi.Input[str] method: HTTP method used for the webhook request, such as 'GET', 'POST' and 'PUT'
297
+ :param pulumi.Input[str] name: Name of the integration.
298
+ :param pulumi.Input[str] payload_template: Template for the payload to be sent with the webhook request in JSON format
299
+ :param pulumi.Input[str] url: The URL to request
223
300
  """
224
301
  ...
225
302
  @overload
@@ -234,21 +311,25 @@ class WebhookIntegration(pulumi.CustomResource):
234
311
 
235
312
  ## Example
236
313
 
237
- ## Arguments
238
-
239
- * `name` - (Required) Name of the integration.
240
- * `enabled` - (Required) Whether the integration is enabled.
241
- * `url` - (Required) The URL to request
242
- * `shared_secret` - (Optional)
243
- * `headers` - (Optional) A header to send with the request
244
- * `header_key` - (Required) The key of the header to send
245
- * `header_value` - (Required) The value of the header to send
246
-
247
- ## Attributes
248
-
249
- In a addition to all arguments above, the following attributes are exported:
250
-
251
- * `id` - The ID of the integration.
314
+ ```python
315
+ import pulumi
316
+ import pulumi_signalfx as signalfx
317
+
318
+ webhook_myteam = signalfx.WebhookIntegration("webhook_myteam",
319
+ name="Webhook - My Team",
320
+ enabled=True,
321
+ url="https://www.example.com",
322
+ shared_secret="abc1234",
323
+ method="POST",
324
+ payload_template=\"\"\"{
325
+ "incidentId": "{{{incidentId}}}"
326
+ }
327
+ \"\"\",
328
+ headers=[{
329
+ "header_key": "some_header",
330
+ "header_value": "value_for_that_header",
331
+ }])
332
+ ```
252
333
 
253
334
  :param str resource_name: The name of the resource.
254
335
  :param WebhookIntegrationArgs args: The arguments to use to populate this resource's properties.
@@ -266,8 +347,10 @@ class WebhookIntegration(pulumi.CustomResource):
266
347
  resource_name: str,
267
348
  opts: Optional[pulumi.ResourceOptions] = None,
268
349
  enabled: Optional[pulumi.Input[bool]] = None,
269
- headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WebhookIntegrationHeaderArgs']]]]] = None,
350
+ headers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['WebhookIntegrationHeaderArgs', 'WebhookIntegrationHeaderArgsDict']]]]] = None,
351
+ method: Optional[pulumi.Input[str]] = None,
270
352
  name: Optional[pulumi.Input[str]] = None,
353
+ payload_template: Optional[pulumi.Input[str]] = None,
271
354
  shared_secret: Optional[pulumi.Input[str]] = None,
272
355
  url: Optional[pulumi.Input[str]] = None,
273
356
  __props__=None):
@@ -283,7 +366,9 @@ class WebhookIntegration(pulumi.CustomResource):
283
366
  raise TypeError("Missing required property 'enabled'")
284
367
  __props__.__dict__["enabled"] = enabled
285
368
  __props__.__dict__["headers"] = None if headers is None else pulumi.Output.secret(headers)
369
+ __props__.__dict__["method"] = method
286
370
  __props__.__dict__["name"] = name
371
+ __props__.__dict__["payload_template"] = payload_template
287
372
  __props__.__dict__["shared_secret"] = None if shared_secret is None else pulumi.Output.secret(shared_secret)
288
373
  __props__.__dict__["url"] = url
289
374
  secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["headers", "sharedSecret"])
@@ -299,8 +384,10 @@ class WebhookIntegration(pulumi.CustomResource):
299
384
  id: pulumi.Input[str],
300
385
  opts: Optional[pulumi.ResourceOptions] = None,
301
386
  enabled: Optional[pulumi.Input[bool]] = None,
302
- headers: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WebhookIntegrationHeaderArgs']]]]] = None,
387
+ headers: Optional[pulumi.Input[Sequence[pulumi.Input[Union['WebhookIntegrationHeaderArgs', 'WebhookIntegrationHeaderArgsDict']]]]] = None,
388
+ method: Optional[pulumi.Input[str]] = None,
303
389
  name: Optional[pulumi.Input[str]] = None,
390
+ payload_template: Optional[pulumi.Input[str]] = None,
304
391
  shared_secret: Optional[pulumi.Input[str]] = None,
305
392
  url: Optional[pulumi.Input[str]] = None) -> 'WebhookIntegration':
306
393
  """
@@ -310,10 +397,12 @@ class WebhookIntegration(pulumi.CustomResource):
310
397
  :param str resource_name: The unique name of the resulting resource.
311
398
  :param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
312
399
  :param pulumi.ResourceOptions opts: Options for the resource.
313
- :param pulumi.Input[bool] enabled: Whether the integration is enabled or not
314
- :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['WebhookIntegrationHeaderArgs']]]] headers: HTTP headers to pass in the request
315
- :param pulumi.Input[str] name: Name of the integration
316
- :param pulumi.Input[str] url: Webhook URL
400
+ :param pulumi.Input[bool] enabled: Whether the integration is enabled.
401
+ :param pulumi.Input[Sequence[pulumi.Input[Union['WebhookIntegrationHeaderArgs', 'WebhookIntegrationHeaderArgsDict']]]] headers: A header to send with the request
402
+ :param pulumi.Input[str] method: HTTP method used for the webhook request, such as 'GET', 'POST' and 'PUT'
403
+ :param pulumi.Input[str] name: Name of the integration.
404
+ :param pulumi.Input[str] payload_template: Template for the payload to be sent with the webhook request in JSON format
405
+ :param pulumi.Input[str] url: The URL to request
317
406
  """
318
407
  opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
319
408
 
@@ -321,7 +410,9 @@ class WebhookIntegration(pulumi.CustomResource):
321
410
 
322
411
  __props__.__dict__["enabled"] = enabled
323
412
  __props__.__dict__["headers"] = headers
413
+ __props__.__dict__["method"] = method
324
414
  __props__.__dict__["name"] = name
415
+ __props__.__dict__["payload_template"] = payload_template
325
416
  __props__.__dict__["shared_secret"] = shared_secret
326
417
  __props__.__dict__["url"] = url
327
418
  return WebhookIntegration(resource_name, opts=opts, __props__=__props__)
@@ -330,7 +421,7 @@ class WebhookIntegration(pulumi.CustomResource):
330
421
  @pulumi.getter
331
422
  def enabled(self) -> pulumi.Output[bool]:
332
423
  """
333
- Whether the integration is enabled or not
424
+ Whether the integration is enabled.
334
425
  """
335
426
  return pulumi.get(self, "enabled")
336
427
 
@@ -338,18 +429,34 @@ class WebhookIntegration(pulumi.CustomResource):
338
429
  @pulumi.getter
339
430
  def headers(self) -> pulumi.Output[Optional[Sequence['outputs.WebhookIntegrationHeader']]]:
340
431
  """
341
- HTTP headers to pass in the request
432
+ A header to send with the request
342
433
  """
343
434
  return pulumi.get(self, "headers")
344
435
 
436
+ @property
437
+ @pulumi.getter
438
+ def method(self) -> pulumi.Output[Optional[str]]:
439
+ """
440
+ HTTP method used for the webhook request, such as 'GET', 'POST' and 'PUT'
441
+ """
442
+ return pulumi.get(self, "method")
443
+
345
444
  @property
346
445
  @pulumi.getter
347
446
  def name(self) -> pulumi.Output[str]:
348
447
  """
349
- Name of the integration
448
+ Name of the integration.
350
449
  """
351
450
  return pulumi.get(self, "name")
352
451
 
452
+ @property
453
+ @pulumi.getter(name="payloadTemplate")
454
+ def payload_template(self) -> pulumi.Output[Optional[str]]:
455
+ """
456
+ Template for the payload to be sent with the webhook request in JSON format
457
+ """
458
+ return pulumi.get(self, "payload_template")
459
+
353
460
  @property
354
461
  @pulumi.getter(name="sharedSecret")
355
462
  def shared_secret(self) -> pulumi.Output[Optional[str]]:
@@ -359,7 +466,7 @@ class WebhookIntegration(pulumi.CustomResource):
359
466
  @pulumi.getter
360
467
  def url(self) -> pulumi.Output[Optional[str]]:
361
468
  """
362
- Webhook URL
469
+ The URL to request
363
470
  """
364
471
  return pulumi.get(self, "url")
365
472
 
@@ -1,16 +1,17 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: pulumi_signalfx
3
- Version: 7.2.0a1710160099
3
+ Version: 7.6.0a1736849687
4
4
  Summary: A Pulumi package for creating and managing SignalFx resources.
5
5
  License: Apache-2.0
6
6
  Project-URL: Homepage, https://pulumi.io
7
7
  Project-URL: Repository, https://github.com/pulumi/pulumi-signalfx
8
8
  Keywords: pulumi,signalfx
9
- Requires-Python: >=3.8
9
+ Requires-Python: >=3.9
10
10
  Description-Content-Type: text/markdown
11
- Requires-Dist: parver >=0.2.1
12
- Requires-Dist: pulumi <4.0.0,>=3.0.0
13
- Requires-Dist: semver >=2.8.1
11
+ Requires-Dist: parver>=0.2.1
12
+ Requires-Dist: pulumi<4.0.0,>=3.142.0
13
+ Requires-Dist: semver>=2.8.1
14
+ Requires-Dist: typing-extensions>=4.11; python_version < "3.11"
14
15
 
15
16
  [![Actions Status](https://github.com/pulumi/pulumi-signalfx/workflows/master/badge.svg)](https://github.com/pulumi/pulumi-signalfx/actions)
16
17
  [![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com)