pulumi-ns1 3.6.2__py3-none-any.whl → 3.7.0a1744183164__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.
- pulumi_ns1/__init__.py +1 -0
- pulumi_ns1/_inputs.py +344 -343
- pulumi_ns1/account_whitelist.py +29 -28
- pulumi_ns1/alert.py +113 -112
- pulumi_ns1/api_key.py +416 -415
- pulumi_ns1/application.py +59 -58
- pulumi_ns1/config/__init__.py +1 -0
- pulumi_ns1/config/__init__.pyi +1 -0
- pulumi_ns1/config/vars.py +1 -0
- pulumi_ns1/data_feed.py +43 -42
- pulumi_ns1/data_source.py +43 -42
- pulumi_ns1/dataset.py +31 -30
- pulumi_ns1/dnsview.py +71 -70
- pulumi_ns1/get_billing_usage.py +30 -29
- pulumi_ns1/get_dns_sec.py +7 -6
- pulumi_ns1/get_monitoring_regions.py +2 -1
- pulumi_ns1/get_networks.py +2 -1
- pulumi_ns1/get_record.py +25 -24
- pulumi_ns1/get_zone.py +33 -32
- pulumi_ns1/monitoring_job.py +207 -206
- pulumi_ns1/notify_list.py +15 -14
- pulumi_ns1/outputs.py +292 -291
- pulumi_ns1/provider.py +46 -45
- pulumi_ns1/pulsar_job.py +66 -65
- pulumi_ns1/pulumi-plugin.json +1 -1
- pulumi_ns1/record.py +149 -148
- pulumi_ns1/redirect.py +137 -136
- pulumi_ns1/redirect_certificate.py +36 -35
- pulumi_ns1/team.py +365 -364
- pulumi_ns1/tsigkey.py +43 -42
- pulumi_ns1/user.py +449 -448
- pulumi_ns1/zone.py +244 -243
- {pulumi_ns1-3.6.2.dist-info → pulumi_ns1-3.7.0a1744183164.dist-info}/METADATA +1 -1
- pulumi_ns1-3.7.0a1744183164.dist-info/RECORD +38 -0
- pulumi_ns1-3.6.2.dist-info/RECORD +0 -38
- {pulumi_ns1-3.6.2.dist-info → pulumi_ns1-3.7.0a1744183164.dist-info}/WHEEL +0 -0
- {pulumi_ns1-3.6.2.dist-info → pulumi_ns1-3.7.0a1744183164.dist-info}/top_level.txt +0 -0
pulumi_ns1/monitoring_job.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
3
|
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
4
|
|
5
|
+
import builtins
|
5
6
|
import copy
|
6
7
|
import warnings
|
7
8
|
import sys
|
@@ -21,40 +22,40 @@ __all__ = ['MonitoringJobArgs', 'MonitoringJob']
|
|
21
22
|
@pulumi.input_type
|
22
23
|
class MonitoringJobArgs:
|
23
24
|
def __init__(__self__, *,
|
24
|
-
config: pulumi.Input[Mapping[str, pulumi.Input[str]]],
|
25
|
-
frequency: pulumi.Input[int],
|
26
|
-
job_type: pulumi.Input[str],
|
27
|
-
regions: pulumi.Input[Sequence[pulumi.Input[str]]],
|
28
|
-
active: Optional[pulumi.Input[bool]] = None,
|
29
|
-
mute: Optional[pulumi.Input[bool]] = None,
|
30
|
-
name: Optional[pulumi.Input[str]] = None,
|
31
|
-
notes: Optional[pulumi.Input[str]] = None,
|
32
|
-
notify_delay: Optional[pulumi.Input[int]] = None,
|
33
|
-
notify_failback: Optional[pulumi.Input[bool]] = None,
|
34
|
-
notify_list: Optional[pulumi.Input[str]] = None,
|
35
|
-
notify_regional: Optional[pulumi.Input[bool]] = None,
|
36
|
-
notify_repeat: Optional[pulumi.Input[int]] = None,
|
37
|
-
policy: Optional[pulumi.Input[str]] = None,
|
38
|
-
rapid_recheck: Optional[pulumi.Input[bool]] = None,
|
25
|
+
config: pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]],
|
26
|
+
frequency: pulumi.Input[builtins.int],
|
27
|
+
job_type: pulumi.Input[builtins.str],
|
28
|
+
regions: pulumi.Input[Sequence[pulumi.Input[builtins.str]]],
|
29
|
+
active: Optional[pulumi.Input[builtins.bool]] = None,
|
30
|
+
mute: Optional[pulumi.Input[builtins.bool]] = None,
|
31
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
32
|
+
notes: Optional[pulumi.Input[builtins.str]] = None,
|
33
|
+
notify_delay: Optional[pulumi.Input[builtins.int]] = None,
|
34
|
+
notify_failback: Optional[pulumi.Input[builtins.bool]] = None,
|
35
|
+
notify_list: Optional[pulumi.Input[builtins.str]] = None,
|
36
|
+
notify_regional: Optional[pulumi.Input[builtins.bool]] = None,
|
37
|
+
notify_repeat: Optional[pulumi.Input[builtins.int]] = None,
|
38
|
+
policy: Optional[pulumi.Input[builtins.str]] = None,
|
39
|
+
rapid_recheck: Optional[pulumi.Input[builtins.bool]] = None,
|
39
40
|
rules: Optional[pulumi.Input[Sequence[pulumi.Input['MonitoringJobRuleArgs']]]] = None):
|
40
41
|
"""
|
41
42
|
The set of arguments for constructing a MonitoringJob resource.
|
42
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
|
43
|
-
:param pulumi.Input[int] frequency: The frequency, in seconds, at which to run the monitoring job in each region.
|
44
|
-
:param pulumi.Input[str] job_type: The type of monitoring job to be run. Refer to the NS1 API documentation (https://ns1.com/api#monitoring-jobs) for supported values which include ping, tcp, dns, http.
|
45
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] regions: The list of region codes in which to run the monitoring
|
43
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] config: A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
|
44
|
+
:param pulumi.Input[builtins.int] frequency: The frequency, in seconds, at which to run the monitoring job in each region.
|
45
|
+
:param pulumi.Input[builtins.str] job_type: The type of monitoring job to be run. Refer to the NS1 API documentation (https://ns1.com/api#monitoring-jobs) for supported values which include ping, tcp, dns, http.
|
46
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] regions: The list of region codes in which to run the monitoring
|
46
47
|
job. See NS1 API docs for supported values.
|
47
|
-
:param pulumi.Input[bool] active: Indicates if the job is active or temporarily disabled.
|
48
|
-
:param pulumi.Input[bool] mute: turn off the notifications for the monitoring job.
|
49
|
-
:param pulumi.Input[str] name: The free-form display name for the monitoring job.
|
50
|
-
:param pulumi.Input[str] notes: Freeform notes to be included in any notifications about this job.
|
51
|
-
:param pulumi.Input[int] notify_delay: The time in seconds after a failure to wait before sending a notification.
|
52
|
-
:param pulumi.Input[bool] notify_failback: If true, a notification is sent when a job returns to an "up" state.
|
53
|
-
:param pulumi.Input[bool] notify_regional: If true, notifications are sent for any regional failure (and failback if desired), in addition to global state notifications.
|
54
|
-
:param pulumi.Input[int] notify_repeat: The time in seconds between repeat notifications of a failed job.
|
55
|
-
:param pulumi.Input[str] policy: The policy for determining the monitor's global status
|
48
|
+
:param pulumi.Input[builtins.bool] active: Indicates if the job is active or temporarily disabled.
|
49
|
+
:param pulumi.Input[builtins.bool] mute: turn off the notifications for the monitoring job.
|
50
|
+
:param pulumi.Input[builtins.str] name: The free-form display name for the monitoring job.
|
51
|
+
:param pulumi.Input[builtins.str] notes: Freeform notes to be included in any notifications about this job.
|
52
|
+
:param pulumi.Input[builtins.int] notify_delay: The time in seconds after a failure to wait before sending a notification.
|
53
|
+
:param pulumi.Input[builtins.bool] notify_failback: If true, a notification is sent when a job returns to an "up" state.
|
54
|
+
:param pulumi.Input[builtins.bool] notify_regional: If true, notifications are sent for any regional failure (and failback if desired), in addition to global state notifications.
|
55
|
+
:param pulumi.Input[builtins.int] notify_repeat: The time in seconds between repeat notifications of a failed job.
|
56
|
+
:param pulumi.Input[builtins.str] policy: The policy for determining the monitor's global status
|
56
57
|
based on the status of the job in all regions. See NS1 API docs for supported values.
|
57
|
-
:param pulumi.Input[bool] rapid_recheck: If true, on any apparent state change, the job is quickly re-run after one second to confirm the state change before notification.
|
58
|
+
:param pulumi.Input[builtins.bool] rapid_recheck: If true, on any apparent state change, the job is quickly re-run after one second to confirm the state change before notification.
|
58
59
|
:param pulumi.Input[Sequence[pulumi.Input['MonitoringJobRuleArgs']]] rules: A list of rules for determining failure conditions. Each rule acts on one of the outputs from the monitoring job. You must specify key (the output key); comparison (a comparison to perform on the the output); and value (the value to compare to). For example, {"key":"rtt", "comparison":"<", "value":100} is a rule requiring the rtt from a job to be under 100ms, or the job will be marked failed. Available output keys, comparators, and value types are are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
|
59
60
|
"""
|
60
61
|
pulumi.set(__self__, "config", config)
|
@@ -88,43 +89,43 @@ class MonitoringJobArgs:
|
|
88
89
|
|
89
90
|
@property
|
90
91
|
@pulumi.getter
|
91
|
-
def config(self) -> pulumi.Input[Mapping[str, pulumi.Input[str]]]:
|
92
|
+
def config(self) -> pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]:
|
92
93
|
"""
|
93
94
|
A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
|
94
95
|
"""
|
95
96
|
return pulumi.get(self, "config")
|
96
97
|
|
97
98
|
@config.setter
|
98
|
-
def config(self, value: pulumi.Input[Mapping[str, pulumi.Input[str]]]):
|
99
|
+
def config(self, value: pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]):
|
99
100
|
pulumi.set(self, "config", value)
|
100
101
|
|
101
102
|
@property
|
102
103
|
@pulumi.getter
|
103
|
-
def frequency(self) -> pulumi.Input[int]:
|
104
|
+
def frequency(self) -> pulumi.Input[builtins.int]:
|
104
105
|
"""
|
105
106
|
The frequency, in seconds, at which to run the monitoring job in each region.
|
106
107
|
"""
|
107
108
|
return pulumi.get(self, "frequency")
|
108
109
|
|
109
110
|
@frequency.setter
|
110
|
-
def frequency(self, value: pulumi.Input[int]):
|
111
|
+
def frequency(self, value: pulumi.Input[builtins.int]):
|
111
112
|
pulumi.set(self, "frequency", value)
|
112
113
|
|
113
114
|
@property
|
114
115
|
@pulumi.getter(name="jobType")
|
115
|
-
def job_type(self) -> pulumi.Input[str]:
|
116
|
+
def job_type(self) -> pulumi.Input[builtins.str]:
|
116
117
|
"""
|
117
118
|
The type of monitoring job to be run. Refer to the NS1 API documentation (https://ns1.com/api#monitoring-jobs) for supported values which include ping, tcp, dns, http.
|
118
119
|
"""
|
119
120
|
return pulumi.get(self, "job_type")
|
120
121
|
|
121
122
|
@job_type.setter
|
122
|
-
def job_type(self, value: pulumi.Input[str]):
|
123
|
+
def job_type(self, value: pulumi.Input[builtins.str]):
|
123
124
|
pulumi.set(self, "job_type", value)
|
124
125
|
|
125
126
|
@property
|
126
127
|
@pulumi.getter
|
127
|
-
def regions(self) -> pulumi.Input[Sequence[pulumi.Input[str]]]:
|
128
|
+
def regions(self) -> pulumi.Input[Sequence[pulumi.Input[builtins.str]]]:
|
128
129
|
"""
|
129
130
|
The list of region codes in which to run the monitoring
|
130
131
|
job. See NS1 API docs for supported values.
|
@@ -132,117 +133,117 @@ class MonitoringJobArgs:
|
|
132
133
|
return pulumi.get(self, "regions")
|
133
134
|
|
134
135
|
@regions.setter
|
135
|
-
def regions(self, value: pulumi.Input[Sequence[pulumi.Input[str]]]):
|
136
|
+
def regions(self, value: pulumi.Input[Sequence[pulumi.Input[builtins.str]]]):
|
136
137
|
pulumi.set(self, "regions", value)
|
137
138
|
|
138
139
|
@property
|
139
140
|
@pulumi.getter
|
140
|
-
def active(self) -> Optional[pulumi.Input[bool]]:
|
141
|
+
def active(self) -> Optional[pulumi.Input[builtins.bool]]:
|
141
142
|
"""
|
142
143
|
Indicates if the job is active or temporarily disabled.
|
143
144
|
"""
|
144
145
|
return pulumi.get(self, "active")
|
145
146
|
|
146
147
|
@active.setter
|
147
|
-
def active(self, value: Optional[pulumi.Input[bool]]):
|
148
|
+
def active(self, value: Optional[pulumi.Input[builtins.bool]]):
|
148
149
|
pulumi.set(self, "active", value)
|
149
150
|
|
150
151
|
@property
|
151
152
|
@pulumi.getter
|
152
|
-
def mute(self) -> Optional[pulumi.Input[bool]]:
|
153
|
+
def mute(self) -> Optional[pulumi.Input[builtins.bool]]:
|
153
154
|
"""
|
154
155
|
turn off the notifications for the monitoring job.
|
155
156
|
"""
|
156
157
|
return pulumi.get(self, "mute")
|
157
158
|
|
158
159
|
@mute.setter
|
159
|
-
def mute(self, value: Optional[pulumi.Input[bool]]):
|
160
|
+
def mute(self, value: Optional[pulumi.Input[builtins.bool]]):
|
160
161
|
pulumi.set(self, "mute", value)
|
161
162
|
|
162
163
|
@property
|
163
164
|
@pulumi.getter
|
164
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
165
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
165
166
|
"""
|
166
167
|
The free-form display name for the monitoring job.
|
167
168
|
"""
|
168
169
|
return pulumi.get(self, "name")
|
169
170
|
|
170
171
|
@name.setter
|
171
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
172
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
172
173
|
pulumi.set(self, "name", value)
|
173
174
|
|
174
175
|
@property
|
175
176
|
@pulumi.getter
|
176
|
-
def notes(self) -> Optional[pulumi.Input[str]]:
|
177
|
+
def notes(self) -> Optional[pulumi.Input[builtins.str]]:
|
177
178
|
"""
|
178
179
|
Freeform notes to be included in any notifications about this job.
|
179
180
|
"""
|
180
181
|
return pulumi.get(self, "notes")
|
181
182
|
|
182
183
|
@notes.setter
|
183
|
-
def notes(self, value: Optional[pulumi.Input[str]]):
|
184
|
+
def notes(self, value: Optional[pulumi.Input[builtins.str]]):
|
184
185
|
pulumi.set(self, "notes", value)
|
185
186
|
|
186
187
|
@property
|
187
188
|
@pulumi.getter(name="notifyDelay")
|
188
|
-
def notify_delay(self) -> Optional[pulumi.Input[int]]:
|
189
|
+
def notify_delay(self) -> Optional[pulumi.Input[builtins.int]]:
|
189
190
|
"""
|
190
191
|
The time in seconds after a failure to wait before sending a notification.
|
191
192
|
"""
|
192
193
|
return pulumi.get(self, "notify_delay")
|
193
194
|
|
194
195
|
@notify_delay.setter
|
195
|
-
def notify_delay(self, value: Optional[pulumi.Input[int]]):
|
196
|
+
def notify_delay(self, value: Optional[pulumi.Input[builtins.int]]):
|
196
197
|
pulumi.set(self, "notify_delay", value)
|
197
198
|
|
198
199
|
@property
|
199
200
|
@pulumi.getter(name="notifyFailback")
|
200
|
-
def notify_failback(self) -> Optional[pulumi.Input[bool]]:
|
201
|
+
def notify_failback(self) -> Optional[pulumi.Input[builtins.bool]]:
|
201
202
|
"""
|
202
203
|
If true, a notification is sent when a job returns to an "up" state.
|
203
204
|
"""
|
204
205
|
return pulumi.get(self, "notify_failback")
|
205
206
|
|
206
207
|
@notify_failback.setter
|
207
|
-
def notify_failback(self, value: Optional[pulumi.Input[bool]]):
|
208
|
+
def notify_failback(self, value: Optional[pulumi.Input[builtins.bool]]):
|
208
209
|
pulumi.set(self, "notify_failback", value)
|
209
210
|
|
210
211
|
@property
|
211
212
|
@pulumi.getter(name="notifyList")
|
212
|
-
def notify_list(self) -> Optional[pulumi.Input[str]]:
|
213
|
+
def notify_list(self) -> Optional[pulumi.Input[builtins.str]]:
|
213
214
|
return pulumi.get(self, "notify_list")
|
214
215
|
|
215
216
|
@notify_list.setter
|
216
|
-
def notify_list(self, value: Optional[pulumi.Input[str]]):
|
217
|
+
def notify_list(self, value: Optional[pulumi.Input[builtins.str]]):
|
217
218
|
pulumi.set(self, "notify_list", value)
|
218
219
|
|
219
220
|
@property
|
220
221
|
@pulumi.getter(name="notifyRegional")
|
221
|
-
def notify_regional(self) -> Optional[pulumi.Input[bool]]:
|
222
|
+
def notify_regional(self) -> Optional[pulumi.Input[builtins.bool]]:
|
222
223
|
"""
|
223
224
|
If true, notifications are sent for any regional failure (and failback if desired), in addition to global state notifications.
|
224
225
|
"""
|
225
226
|
return pulumi.get(self, "notify_regional")
|
226
227
|
|
227
228
|
@notify_regional.setter
|
228
|
-
def notify_regional(self, value: Optional[pulumi.Input[bool]]):
|
229
|
+
def notify_regional(self, value: Optional[pulumi.Input[builtins.bool]]):
|
229
230
|
pulumi.set(self, "notify_regional", value)
|
230
231
|
|
231
232
|
@property
|
232
233
|
@pulumi.getter(name="notifyRepeat")
|
233
|
-
def notify_repeat(self) -> Optional[pulumi.Input[int]]:
|
234
|
+
def notify_repeat(self) -> Optional[pulumi.Input[builtins.int]]:
|
234
235
|
"""
|
235
236
|
The time in seconds between repeat notifications of a failed job.
|
236
237
|
"""
|
237
238
|
return pulumi.get(self, "notify_repeat")
|
238
239
|
|
239
240
|
@notify_repeat.setter
|
240
|
-
def notify_repeat(self, value: Optional[pulumi.Input[int]]):
|
241
|
+
def notify_repeat(self, value: Optional[pulumi.Input[builtins.int]]):
|
241
242
|
pulumi.set(self, "notify_repeat", value)
|
242
243
|
|
243
244
|
@property
|
244
245
|
@pulumi.getter
|
245
|
-
def policy(self) -> Optional[pulumi.Input[str]]:
|
246
|
+
def policy(self) -> Optional[pulumi.Input[builtins.str]]:
|
246
247
|
"""
|
247
248
|
The policy for determining the monitor's global status
|
248
249
|
based on the status of the job in all regions. See NS1 API docs for supported values.
|
@@ -250,19 +251,19 @@ class MonitoringJobArgs:
|
|
250
251
|
return pulumi.get(self, "policy")
|
251
252
|
|
252
253
|
@policy.setter
|
253
|
-
def policy(self, value: Optional[pulumi.Input[str]]):
|
254
|
+
def policy(self, value: Optional[pulumi.Input[builtins.str]]):
|
254
255
|
pulumi.set(self, "policy", value)
|
255
256
|
|
256
257
|
@property
|
257
258
|
@pulumi.getter(name="rapidRecheck")
|
258
|
-
def rapid_recheck(self) -> Optional[pulumi.Input[bool]]:
|
259
|
+
def rapid_recheck(self) -> Optional[pulumi.Input[builtins.bool]]:
|
259
260
|
"""
|
260
261
|
If true, on any apparent state change, the job is quickly re-run after one second to confirm the state change before notification.
|
261
262
|
"""
|
262
263
|
return pulumi.get(self, "rapid_recheck")
|
263
264
|
|
264
265
|
@rapid_recheck.setter
|
265
|
-
def rapid_recheck(self, value: Optional[pulumi.Input[bool]]):
|
266
|
+
def rapid_recheck(self, value: Optional[pulumi.Input[builtins.bool]]):
|
266
267
|
pulumi.set(self, "rapid_recheck", value)
|
267
268
|
|
268
269
|
@property
|
@@ -281,39 +282,39 @@ class MonitoringJobArgs:
|
|
281
282
|
@pulumi.input_type
|
282
283
|
class _MonitoringJobState:
|
283
284
|
def __init__(__self__, *,
|
284
|
-
active: Optional[pulumi.Input[bool]] = None,
|
285
|
-
config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
286
|
-
frequency: Optional[pulumi.Input[int]] = None,
|
287
|
-
job_type: Optional[pulumi.Input[str]] = None,
|
288
|
-
mute: Optional[pulumi.Input[bool]] = None,
|
289
|
-
name: Optional[pulumi.Input[str]] = None,
|
290
|
-
notes: Optional[pulumi.Input[str]] = None,
|
291
|
-
notify_delay: Optional[pulumi.Input[int]] = None,
|
292
|
-
notify_failback: Optional[pulumi.Input[bool]] = None,
|
293
|
-
notify_list: Optional[pulumi.Input[str]] = None,
|
294
|
-
notify_regional: Optional[pulumi.Input[bool]] = None,
|
295
|
-
notify_repeat: Optional[pulumi.Input[int]] = None,
|
296
|
-
policy: Optional[pulumi.Input[str]] = None,
|
297
|
-
rapid_recheck: Optional[pulumi.Input[bool]] = None,
|
298
|
-
regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
285
|
+
active: Optional[pulumi.Input[builtins.bool]] = None,
|
286
|
+
config: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
287
|
+
frequency: Optional[pulumi.Input[builtins.int]] = None,
|
288
|
+
job_type: Optional[pulumi.Input[builtins.str]] = None,
|
289
|
+
mute: Optional[pulumi.Input[builtins.bool]] = None,
|
290
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
291
|
+
notes: Optional[pulumi.Input[builtins.str]] = None,
|
292
|
+
notify_delay: Optional[pulumi.Input[builtins.int]] = None,
|
293
|
+
notify_failback: Optional[pulumi.Input[builtins.bool]] = None,
|
294
|
+
notify_list: Optional[pulumi.Input[builtins.str]] = None,
|
295
|
+
notify_regional: Optional[pulumi.Input[builtins.bool]] = None,
|
296
|
+
notify_repeat: Optional[pulumi.Input[builtins.int]] = None,
|
297
|
+
policy: Optional[pulumi.Input[builtins.str]] = None,
|
298
|
+
rapid_recheck: Optional[pulumi.Input[builtins.bool]] = None,
|
299
|
+
regions: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
299
300
|
rules: Optional[pulumi.Input[Sequence[pulumi.Input['MonitoringJobRuleArgs']]]] = None):
|
300
301
|
"""
|
301
302
|
Input properties used for looking up and filtering MonitoringJob resources.
|
302
|
-
:param pulumi.Input[bool] active: Indicates if the job is active or temporarily disabled.
|
303
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
|
304
|
-
:param pulumi.Input[int] frequency: The frequency, in seconds, at which to run the monitoring job in each region.
|
305
|
-
:param pulumi.Input[str] job_type: The type of monitoring job to be run. Refer to the NS1 API documentation (https://ns1.com/api#monitoring-jobs) for supported values which include ping, tcp, dns, http.
|
306
|
-
:param pulumi.Input[bool] mute: turn off the notifications for the monitoring job.
|
307
|
-
:param pulumi.Input[str] name: The free-form display name for the monitoring job.
|
308
|
-
:param pulumi.Input[str] notes: Freeform notes to be included in any notifications about this job.
|
309
|
-
:param pulumi.Input[int] notify_delay: The time in seconds after a failure to wait before sending a notification.
|
310
|
-
:param pulumi.Input[bool] notify_failback: If true, a notification is sent when a job returns to an "up" state.
|
311
|
-
:param pulumi.Input[bool] notify_regional: If true, notifications are sent for any regional failure (and failback if desired), in addition to global state notifications.
|
312
|
-
:param pulumi.Input[int] notify_repeat: The time in seconds between repeat notifications of a failed job.
|
313
|
-
:param pulumi.Input[str] policy: The policy for determining the monitor's global status
|
303
|
+
:param pulumi.Input[builtins.bool] active: Indicates if the job is active or temporarily disabled.
|
304
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] config: A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
|
305
|
+
:param pulumi.Input[builtins.int] frequency: The frequency, in seconds, at which to run the monitoring job in each region.
|
306
|
+
:param pulumi.Input[builtins.str] job_type: The type of monitoring job to be run. Refer to the NS1 API documentation (https://ns1.com/api#monitoring-jobs) for supported values which include ping, tcp, dns, http.
|
307
|
+
:param pulumi.Input[builtins.bool] mute: turn off the notifications for the monitoring job.
|
308
|
+
:param pulumi.Input[builtins.str] name: The free-form display name for the monitoring job.
|
309
|
+
:param pulumi.Input[builtins.str] notes: Freeform notes to be included in any notifications about this job.
|
310
|
+
:param pulumi.Input[builtins.int] notify_delay: The time in seconds after a failure to wait before sending a notification.
|
311
|
+
:param pulumi.Input[builtins.bool] notify_failback: If true, a notification is sent when a job returns to an "up" state.
|
312
|
+
:param pulumi.Input[builtins.bool] notify_regional: If true, notifications are sent for any regional failure (and failback if desired), in addition to global state notifications.
|
313
|
+
:param pulumi.Input[builtins.int] notify_repeat: The time in seconds between repeat notifications of a failed job.
|
314
|
+
:param pulumi.Input[builtins.str] policy: The policy for determining the monitor's global status
|
314
315
|
based on the status of the job in all regions. See NS1 API docs for supported values.
|
315
|
-
:param pulumi.Input[bool] rapid_recheck: If true, on any apparent state change, the job is quickly re-run after one second to confirm the state change before notification.
|
316
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] regions: The list of region codes in which to run the monitoring
|
316
|
+
:param pulumi.Input[builtins.bool] rapid_recheck: If true, on any apparent state change, the job is quickly re-run after one second to confirm the state change before notification.
|
317
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] regions: The list of region codes in which to run the monitoring
|
317
318
|
job. See NS1 API docs for supported values.
|
318
319
|
:param pulumi.Input[Sequence[pulumi.Input['MonitoringJobRuleArgs']]] rules: A list of rules for determining failure conditions. Each rule acts on one of the outputs from the monitoring job. You must specify key (the output key); comparison (a comparison to perform on the the output); and value (the value to compare to). For example, {"key":"rtt", "comparison":"<", "value":100} is a rule requiring the rtt from a job to be under 100ms, or the job will be marked failed. Available output keys, comparators, and value types are are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
|
319
320
|
"""
|
@@ -352,148 +353,148 @@ class _MonitoringJobState:
|
|
352
353
|
|
353
354
|
@property
|
354
355
|
@pulumi.getter
|
355
|
-
def active(self) -> Optional[pulumi.Input[bool]]:
|
356
|
+
def active(self) -> Optional[pulumi.Input[builtins.bool]]:
|
356
357
|
"""
|
357
358
|
Indicates if the job is active or temporarily disabled.
|
358
359
|
"""
|
359
360
|
return pulumi.get(self, "active")
|
360
361
|
|
361
362
|
@active.setter
|
362
|
-
def active(self, value: Optional[pulumi.Input[bool]]):
|
363
|
+
def active(self, value: Optional[pulumi.Input[builtins.bool]]):
|
363
364
|
pulumi.set(self, "active", value)
|
364
365
|
|
365
366
|
@property
|
366
367
|
@pulumi.getter
|
367
|
-
def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
368
|
+
def config(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]:
|
368
369
|
"""
|
369
370
|
A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
|
370
371
|
"""
|
371
372
|
return pulumi.get(self, "config")
|
372
373
|
|
373
374
|
@config.setter
|
374
|
-
def config(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
375
|
+
def config(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]]):
|
375
376
|
pulumi.set(self, "config", value)
|
376
377
|
|
377
378
|
@property
|
378
379
|
@pulumi.getter
|
379
|
-
def frequency(self) -> Optional[pulumi.Input[int]]:
|
380
|
+
def frequency(self) -> Optional[pulumi.Input[builtins.int]]:
|
380
381
|
"""
|
381
382
|
The frequency, in seconds, at which to run the monitoring job in each region.
|
382
383
|
"""
|
383
384
|
return pulumi.get(self, "frequency")
|
384
385
|
|
385
386
|
@frequency.setter
|
386
|
-
def frequency(self, value: Optional[pulumi.Input[int]]):
|
387
|
+
def frequency(self, value: Optional[pulumi.Input[builtins.int]]):
|
387
388
|
pulumi.set(self, "frequency", value)
|
388
389
|
|
389
390
|
@property
|
390
391
|
@pulumi.getter(name="jobType")
|
391
|
-
def job_type(self) -> Optional[pulumi.Input[str]]:
|
392
|
+
def job_type(self) -> Optional[pulumi.Input[builtins.str]]:
|
392
393
|
"""
|
393
394
|
The type of monitoring job to be run. Refer to the NS1 API documentation (https://ns1.com/api#monitoring-jobs) for supported values which include ping, tcp, dns, http.
|
394
395
|
"""
|
395
396
|
return pulumi.get(self, "job_type")
|
396
397
|
|
397
398
|
@job_type.setter
|
398
|
-
def job_type(self, value: Optional[pulumi.Input[str]]):
|
399
|
+
def job_type(self, value: Optional[pulumi.Input[builtins.str]]):
|
399
400
|
pulumi.set(self, "job_type", value)
|
400
401
|
|
401
402
|
@property
|
402
403
|
@pulumi.getter
|
403
|
-
def mute(self) -> Optional[pulumi.Input[bool]]:
|
404
|
+
def mute(self) -> Optional[pulumi.Input[builtins.bool]]:
|
404
405
|
"""
|
405
406
|
turn off the notifications for the monitoring job.
|
406
407
|
"""
|
407
408
|
return pulumi.get(self, "mute")
|
408
409
|
|
409
410
|
@mute.setter
|
410
|
-
def mute(self, value: Optional[pulumi.Input[bool]]):
|
411
|
+
def mute(self, value: Optional[pulumi.Input[builtins.bool]]):
|
411
412
|
pulumi.set(self, "mute", value)
|
412
413
|
|
413
414
|
@property
|
414
415
|
@pulumi.getter
|
415
|
-
def name(self) -> Optional[pulumi.Input[str]]:
|
416
|
+
def name(self) -> Optional[pulumi.Input[builtins.str]]:
|
416
417
|
"""
|
417
418
|
The free-form display name for the monitoring job.
|
418
419
|
"""
|
419
420
|
return pulumi.get(self, "name")
|
420
421
|
|
421
422
|
@name.setter
|
422
|
-
def name(self, value: Optional[pulumi.Input[str]]):
|
423
|
+
def name(self, value: Optional[pulumi.Input[builtins.str]]):
|
423
424
|
pulumi.set(self, "name", value)
|
424
425
|
|
425
426
|
@property
|
426
427
|
@pulumi.getter
|
427
|
-
def notes(self) -> Optional[pulumi.Input[str]]:
|
428
|
+
def notes(self) -> Optional[pulumi.Input[builtins.str]]:
|
428
429
|
"""
|
429
430
|
Freeform notes to be included in any notifications about this job.
|
430
431
|
"""
|
431
432
|
return pulumi.get(self, "notes")
|
432
433
|
|
433
434
|
@notes.setter
|
434
|
-
def notes(self, value: Optional[pulumi.Input[str]]):
|
435
|
+
def notes(self, value: Optional[pulumi.Input[builtins.str]]):
|
435
436
|
pulumi.set(self, "notes", value)
|
436
437
|
|
437
438
|
@property
|
438
439
|
@pulumi.getter(name="notifyDelay")
|
439
|
-
def notify_delay(self) -> Optional[pulumi.Input[int]]:
|
440
|
+
def notify_delay(self) -> Optional[pulumi.Input[builtins.int]]:
|
440
441
|
"""
|
441
442
|
The time in seconds after a failure to wait before sending a notification.
|
442
443
|
"""
|
443
444
|
return pulumi.get(self, "notify_delay")
|
444
445
|
|
445
446
|
@notify_delay.setter
|
446
|
-
def notify_delay(self, value: Optional[pulumi.Input[int]]):
|
447
|
+
def notify_delay(self, value: Optional[pulumi.Input[builtins.int]]):
|
447
448
|
pulumi.set(self, "notify_delay", value)
|
448
449
|
|
449
450
|
@property
|
450
451
|
@pulumi.getter(name="notifyFailback")
|
451
|
-
def notify_failback(self) -> Optional[pulumi.Input[bool]]:
|
452
|
+
def notify_failback(self) -> Optional[pulumi.Input[builtins.bool]]:
|
452
453
|
"""
|
453
454
|
If true, a notification is sent when a job returns to an "up" state.
|
454
455
|
"""
|
455
456
|
return pulumi.get(self, "notify_failback")
|
456
457
|
|
457
458
|
@notify_failback.setter
|
458
|
-
def notify_failback(self, value: Optional[pulumi.Input[bool]]):
|
459
|
+
def notify_failback(self, value: Optional[pulumi.Input[builtins.bool]]):
|
459
460
|
pulumi.set(self, "notify_failback", value)
|
460
461
|
|
461
462
|
@property
|
462
463
|
@pulumi.getter(name="notifyList")
|
463
|
-
def notify_list(self) -> Optional[pulumi.Input[str]]:
|
464
|
+
def notify_list(self) -> Optional[pulumi.Input[builtins.str]]:
|
464
465
|
return pulumi.get(self, "notify_list")
|
465
466
|
|
466
467
|
@notify_list.setter
|
467
|
-
def notify_list(self, value: Optional[pulumi.Input[str]]):
|
468
|
+
def notify_list(self, value: Optional[pulumi.Input[builtins.str]]):
|
468
469
|
pulumi.set(self, "notify_list", value)
|
469
470
|
|
470
471
|
@property
|
471
472
|
@pulumi.getter(name="notifyRegional")
|
472
|
-
def notify_regional(self) -> Optional[pulumi.Input[bool]]:
|
473
|
+
def notify_regional(self) -> Optional[pulumi.Input[builtins.bool]]:
|
473
474
|
"""
|
474
475
|
If true, notifications are sent for any regional failure (and failback if desired), in addition to global state notifications.
|
475
476
|
"""
|
476
477
|
return pulumi.get(self, "notify_regional")
|
477
478
|
|
478
479
|
@notify_regional.setter
|
479
|
-
def notify_regional(self, value: Optional[pulumi.Input[bool]]):
|
480
|
+
def notify_regional(self, value: Optional[pulumi.Input[builtins.bool]]):
|
480
481
|
pulumi.set(self, "notify_regional", value)
|
481
482
|
|
482
483
|
@property
|
483
484
|
@pulumi.getter(name="notifyRepeat")
|
484
|
-
def notify_repeat(self) -> Optional[pulumi.Input[int]]:
|
485
|
+
def notify_repeat(self) -> Optional[pulumi.Input[builtins.int]]:
|
485
486
|
"""
|
486
487
|
The time in seconds between repeat notifications of a failed job.
|
487
488
|
"""
|
488
489
|
return pulumi.get(self, "notify_repeat")
|
489
490
|
|
490
491
|
@notify_repeat.setter
|
491
|
-
def notify_repeat(self, value: Optional[pulumi.Input[int]]):
|
492
|
+
def notify_repeat(self, value: Optional[pulumi.Input[builtins.int]]):
|
492
493
|
pulumi.set(self, "notify_repeat", value)
|
493
494
|
|
494
495
|
@property
|
495
496
|
@pulumi.getter
|
496
|
-
def policy(self) -> Optional[pulumi.Input[str]]:
|
497
|
+
def policy(self) -> Optional[pulumi.Input[builtins.str]]:
|
497
498
|
"""
|
498
499
|
The policy for determining the monitor's global status
|
499
500
|
based on the status of the job in all regions. See NS1 API docs for supported values.
|
@@ -501,24 +502,24 @@ class _MonitoringJobState:
|
|
501
502
|
return pulumi.get(self, "policy")
|
502
503
|
|
503
504
|
@policy.setter
|
504
|
-
def policy(self, value: Optional[pulumi.Input[str]]):
|
505
|
+
def policy(self, value: Optional[pulumi.Input[builtins.str]]):
|
505
506
|
pulumi.set(self, "policy", value)
|
506
507
|
|
507
508
|
@property
|
508
509
|
@pulumi.getter(name="rapidRecheck")
|
509
|
-
def rapid_recheck(self) -> Optional[pulumi.Input[bool]]:
|
510
|
+
def rapid_recheck(self) -> Optional[pulumi.Input[builtins.bool]]:
|
510
511
|
"""
|
511
512
|
If true, on any apparent state change, the job is quickly re-run after one second to confirm the state change before notification.
|
512
513
|
"""
|
513
514
|
return pulumi.get(self, "rapid_recheck")
|
514
515
|
|
515
516
|
@rapid_recheck.setter
|
516
|
-
def rapid_recheck(self, value: Optional[pulumi.Input[bool]]):
|
517
|
+
def rapid_recheck(self, value: Optional[pulumi.Input[builtins.bool]]):
|
517
518
|
pulumi.set(self, "rapid_recheck", value)
|
518
519
|
|
519
520
|
@property
|
520
521
|
@pulumi.getter
|
521
|
-
def regions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]:
|
522
|
+
def regions(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]:
|
522
523
|
"""
|
523
524
|
The list of region codes in which to run the monitoring
|
524
525
|
job. See NS1 API docs for supported values.
|
@@ -526,7 +527,7 @@ class _MonitoringJobState:
|
|
526
527
|
return pulumi.get(self, "regions")
|
527
528
|
|
528
529
|
@regions.setter
|
529
|
-
def regions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]):
|
530
|
+
def regions(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]]):
|
530
531
|
pulumi.set(self, "regions", value)
|
531
532
|
|
532
533
|
@property
|
@@ -547,21 +548,21 @@ class MonitoringJob(pulumi.CustomResource):
|
|
547
548
|
def __init__(__self__,
|
548
549
|
resource_name: str,
|
549
550
|
opts: Optional[pulumi.ResourceOptions] = None,
|
550
|
-
active: Optional[pulumi.Input[bool]] = None,
|
551
|
-
config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
552
|
-
frequency: Optional[pulumi.Input[int]] = None,
|
553
|
-
job_type: Optional[pulumi.Input[str]] = None,
|
554
|
-
mute: Optional[pulumi.Input[bool]] = None,
|
555
|
-
name: Optional[pulumi.Input[str]] = None,
|
556
|
-
notes: Optional[pulumi.Input[str]] = None,
|
557
|
-
notify_delay: Optional[pulumi.Input[int]] = None,
|
558
|
-
notify_failback: Optional[pulumi.Input[bool]] = None,
|
559
|
-
notify_list: Optional[pulumi.Input[str]] = None,
|
560
|
-
notify_regional: Optional[pulumi.Input[bool]] = None,
|
561
|
-
notify_repeat: Optional[pulumi.Input[int]] = None,
|
562
|
-
policy: Optional[pulumi.Input[str]] = None,
|
563
|
-
rapid_recheck: Optional[pulumi.Input[bool]] = None,
|
564
|
-
regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
551
|
+
active: Optional[pulumi.Input[builtins.bool]] = None,
|
552
|
+
config: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
553
|
+
frequency: Optional[pulumi.Input[builtins.int]] = None,
|
554
|
+
job_type: Optional[pulumi.Input[builtins.str]] = None,
|
555
|
+
mute: Optional[pulumi.Input[builtins.bool]] = None,
|
556
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
557
|
+
notes: Optional[pulumi.Input[builtins.str]] = None,
|
558
|
+
notify_delay: Optional[pulumi.Input[builtins.int]] = None,
|
559
|
+
notify_failback: Optional[pulumi.Input[builtins.bool]] = None,
|
560
|
+
notify_list: Optional[pulumi.Input[builtins.str]] = None,
|
561
|
+
notify_regional: Optional[pulumi.Input[builtins.bool]] = None,
|
562
|
+
notify_repeat: Optional[pulumi.Input[builtins.int]] = None,
|
563
|
+
policy: Optional[pulumi.Input[builtins.str]] = None,
|
564
|
+
rapid_recheck: Optional[pulumi.Input[builtins.bool]] = None,
|
565
|
+
regions: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
565
566
|
rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MonitoringJobRuleArgs', 'MonitoringJobRuleArgsDict']]]]] = None,
|
566
567
|
__props__=None):
|
567
568
|
"""
|
@@ -611,21 +612,21 @@ class MonitoringJob(pulumi.CustomResource):
|
|
611
612
|
|
612
613
|
:param str resource_name: The name of the resource.
|
613
614
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
614
|
-
:param pulumi.Input[bool] active: Indicates if the job is active or temporarily disabled.
|
615
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
|
616
|
-
:param pulumi.Input[int] frequency: The frequency, in seconds, at which to run the monitoring job in each region.
|
617
|
-
:param pulumi.Input[str] job_type: The type of monitoring job to be run. Refer to the NS1 API documentation (https://ns1.com/api#monitoring-jobs) for supported values which include ping, tcp, dns, http.
|
618
|
-
:param pulumi.Input[bool] mute: turn off the notifications for the monitoring job.
|
619
|
-
:param pulumi.Input[str] name: The free-form display name for the monitoring job.
|
620
|
-
:param pulumi.Input[str] notes: Freeform notes to be included in any notifications about this job.
|
621
|
-
:param pulumi.Input[int] notify_delay: The time in seconds after a failure to wait before sending a notification.
|
622
|
-
:param pulumi.Input[bool] notify_failback: If true, a notification is sent when a job returns to an "up" state.
|
623
|
-
:param pulumi.Input[bool] notify_regional: If true, notifications are sent for any regional failure (and failback if desired), in addition to global state notifications.
|
624
|
-
:param pulumi.Input[int] notify_repeat: The time in seconds between repeat notifications of a failed job.
|
625
|
-
:param pulumi.Input[str] policy: The policy for determining the monitor's global status
|
615
|
+
:param pulumi.Input[builtins.bool] active: Indicates if the job is active or temporarily disabled.
|
616
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] config: A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
|
617
|
+
:param pulumi.Input[builtins.int] frequency: The frequency, in seconds, at which to run the monitoring job in each region.
|
618
|
+
:param pulumi.Input[builtins.str] job_type: The type of monitoring job to be run. Refer to the NS1 API documentation (https://ns1.com/api#monitoring-jobs) for supported values which include ping, tcp, dns, http.
|
619
|
+
:param pulumi.Input[builtins.bool] mute: turn off the notifications for the monitoring job.
|
620
|
+
:param pulumi.Input[builtins.str] name: The free-form display name for the monitoring job.
|
621
|
+
:param pulumi.Input[builtins.str] notes: Freeform notes to be included in any notifications about this job.
|
622
|
+
:param pulumi.Input[builtins.int] notify_delay: The time in seconds after a failure to wait before sending a notification.
|
623
|
+
:param pulumi.Input[builtins.bool] notify_failback: If true, a notification is sent when a job returns to an "up" state.
|
624
|
+
:param pulumi.Input[builtins.bool] notify_regional: If true, notifications are sent for any regional failure (and failback if desired), in addition to global state notifications.
|
625
|
+
:param pulumi.Input[builtins.int] notify_repeat: The time in seconds between repeat notifications of a failed job.
|
626
|
+
:param pulumi.Input[builtins.str] policy: The policy for determining the monitor's global status
|
626
627
|
based on the status of the job in all regions. See NS1 API docs for supported values.
|
627
|
-
:param pulumi.Input[bool] rapid_recheck: If true, on any apparent state change, the job is quickly re-run after one second to confirm the state change before notification.
|
628
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] regions: The list of region codes in which to run the monitoring
|
628
|
+
:param pulumi.Input[builtins.bool] rapid_recheck: If true, on any apparent state change, the job is quickly re-run after one second to confirm the state change before notification.
|
629
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] regions: The list of region codes in which to run the monitoring
|
629
630
|
job. See NS1 API docs for supported values.
|
630
631
|
:param pulumi.Input[Sequence[pulumi.Input[Union['MonitoringJobRuleArgs', 'MonitoringJobRuleArgsDict']]]] rules: A list of rules for determining failure conditions. Each rule acts on one of the outputs from the monitoring job. You must specify key (the output key); comparison (a comparison to perform on the the output); and value (the value to compare to). For example, {"key":"rtt", "comparison":"<", "value":100} is a rule requiring the rtt from a job to be under 100ms, or the job will be marked failed. Available output keys, comparators, and value types are are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
|
631
632
|
"""
|
@@ -695,21 +696,21 @@ class MonitoringJob(pulumi.CustomResource):
|
|
695
696
|
def _internal_init(__self__,
|
696
697
|
resource_name: str,
|
697
698
|
opts: Optional[pulumi.ResourceOptions] = None,
|
698
|
-
active: Optional[pulumi.Input[bool]] = None,
|
699
|
-
config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
700
|
-
frequency: Optional[pulumi.Input[int]] = None,
|
701
|
-
job_type: Optional[pulumi.Input[str]] = None,
|
702
|
-
mute: Optional[pulumi.Input[bool]] = None,
|
703
|
-
name: Optional[pulumi.Input[str]] = None,
|
704
|
-
notes: Optional[pulumi.Input[str]] = None,
|
705
|
-
notify_delay: Optional[pulumi.Input[int]] = None,
|
706
|
-
notify_failback: Optional[pulumi.Input[bool]] = None,
|
707
|
-
notify_list: Optional[pulumi.Input[str]] = None,
|
708
|
-
notify_regional: Optional[pulumi.Input[bool]] = None,
|
709
|
-
notify_repeat: Optional[pulumi.Input[int]] = None,
|
710
|
-
policy: Optional[pulumi.Input[str]] = None,
|
711
|
-
rapid_recheck: Optional[pulumi.Input[bool]] = None,
|
712
|
-
regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
699
|
+
active: Optional[pulumi.Input[builtins.bool]] = None,
|
700
|
+
config: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
701
|
+
frequency: Optional[pulumi.Input[builtins.int]] = None,
|
702
|
+
job_type: Optional[pulumi.Input[builtins.str]] = None,
|
703
|
+
mute: Optional[pulumi.Input[builtins.bool]] = None,
|
704
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
705
|
+
notes: Optional[pulumi.Input[builtins.str]] = None,
|
706
|
+
notify_delay: Optional[pulumi.Input[builtins.int]] = None,
|
707
|
+
notify_failback: Optional[pulumi.Input[builtins.bool]] = None,
|
708
|
+
notify_list: Optional[pulumi.Input[builtins.str]] = None,
|
709
|
+
notify_regional: Optional[pulumi.Input[builtins.bool]] = None,
|
710
|
+
notify_repeat: Optional[pulumi.Input[builtins.int]] = None,
|
711
|
+
policy: Optional[pulumi.Input[builtins.str]] = None,
|
712
|
+
rapid_recheck: Optional[pulumi.Input[builtins.bool]] = None,
|
713
|
+
regions: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
713
714
|
rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MonitoringJobRuleArgs', 'MonitoringJobRuleArgsDict']]]]] = None,
|
714
715
|
__props__=None):
|
715
716
|
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
@@ -754,21 +755,21 @@ class MonitoringJob(pulumi.CustomResource):
|
|
754
755
|
def get(resource_name: str,
|
755
756
|
id: pulumi.Input[str],
|
756
757
|
opts: Optional[pulumi.ResourceOptions] = None,
|
757
|
-
active: Optional[pulumi.Input[bool]] = None,
|
758
|
-
config: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
759
|
-
frequency: Optional[pulumi.Input[int]] = None,
|
760
|
-
job_type: Optional[pulumi.Input[str]] = None,
|
761
|
-
mute: Optional[pulumi.Input[bool]] = None,
|
762
|
-
name: Optional[pulumi.Input[str]] = None,
|
763
|
-
notes: Optional[pulumi.Input[str]] = None,
|
764
|
-
notify_delay: Optional[pulumi.Input[int]] = None,
|
765
|
-
notify_failback: Optional[pulumi.Input[bool]] = None,
|
766
|
-
notify_list: Optional[pulumi.Input[str]] = None,
|
767
|
-
notify_regional: Optional[pulumi.Input[bool]] = None,
|
768
|
-
notify_repeat: Optional[pulumi.Input[int]] = None,
|
769
|
-
policy: Optional[pulumi.Input[str]] = None,
|
770
|
-
rapid_recheck: Optional[pulumi.Input[bool]] = None,
|
771
|
-
regions: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
|
758
|
+
active: Optional[pulumi.Input[builtins.bool]] = None,
|
759
|
+
config: Optional[pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]]] = None,
|
760
|
+
frequency: Optional[pulumi.Input[builtins.int]] = None,
|
761
|
+
job_type: Optional[pulumi.Input[builtins.str]] = None,
|
762
|
+
mute: Optional[pulumi.Input[builtins.bool]] = None,
|
763
|
+
name: Optional[pulumi.Input[builtins.str]] = None,
|
764
|
+
notes: Optional[pulumi.Input[builtins.str]] = None,
|
765
|
+
notify_delay: Optional[pulumi.Input[builtins.int]] = None,
|
766
|
+
notify_failback: Optional[pulumi.Input[builtins.bool]] = None,
|
767
|
+
notify_list: Optional[pulumi.Input[builtins.str]] = None,
|
768
|
+
notify_regional: Optional[pulumi.Input[builtins.bool]] = None,
|
769
|
+
notify_repeat: Optional[pulumi.Input[builtins.int]] = None,
|
770
|
+
policy: Optional[pulumi.Input[builtins.str]] = None,
|
771
|
+
rapid_recheck: Optional[pulumi.Input[builtins.bool]] = None,
|
772
|
+
regions: Optional[pulumi.Input[Sequence[pulumi.Input[builtins.str]]]] = None,
|
772
773
|
rules: Optional[pulumi.Input[Sequence[pulumi.Input[Union['MonitoringJobRuleArgs', 'MonitoringJobRuleArgsDict']]]]] = None) -> 'MonitoringJob':
|
773
774
|
"""
|
774
775
|
Get an existing MonitoringJob resource's state with the given name, id, and optional extra
|
@@ -777,21 +778,21 @@ class MonitoringJob(pulumi.CustomResource):
|
|
777
778
|
:param str resource_name: The unique name of the resulting resource.
|
778
779
|
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
779
780
|
:param pulumi.ResourceOptions opts: Options for the resource.
|
780
|
-
:param pulumi.Input[bool] active: Indicates if the job is active or temporarily disabled.
|
781
|
-
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] config: A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
|
782
|
-
:param pulumi.Input[int] frequency: The frequency, in seconds, at which to run the monitoring job in each region.
|
783
|
-
:param pulumi.Input[str] job_type: The type of monitoring job to be run. Refer to the NS1 API documentation (https://ns1.com/api#monitoring-jobs) for supported values which include ping, tcp, dns, http.
|
784
|
-
:param pulumi.Input[bool] mute: turn off the notifications for the monitoring job.
|
785
|
-
:param pulumi.Input[str] name: The free-form display name for the monitoring job.
|
786
|
-
:param pulumi.Input[str] notes: Freeform notes to be included in any notifications about this job.
|
787
|
-
:param pulumi.Input[int] notify_delay: The time in seconds after a failure to wait before sending a notification.
|
788
|
-
:param pulumi.Input[bool] notify_failback: If true, a notification is sent when a job returns to an "up" state.
|
789
|
-
:param pulumi.Input[bool] notify_regional: If true, notifications are sent for any regional failure (and failback if desired), in addition to global state notifications.
|
790
|
-
:param pulumi.Input[int] notify_repeat: The time in seconds between repeat notifications of a failed job.
|
791
|
-
:param pulumi.Input[str] policy: The policy for determining the monitor's global status
|
781
|
+
:param pulumi.Input[builtins.bool] active: Indicates if the job is active or temporarily disabled.
|
782
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[builtins.str]]] config: A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
|
783
|
+
:param pulumi.Input[builtins.int] frequency: The frequency, in seconds, at which to run the monitoring job in each region.
|
784
|
+
:param pulumi.Input[builtins.str] job_type: The type of monitoring job to be run. Refer to the NS1 API documentation (https://ns1.com/api#monitoring-jobs) for supported values which include ping, tcp, dns, http.
|
785
|
+
:param pulumi.Input[builtins.bool] mute: turn off the notifications for the monitoring job.
|
786
|
+
:param pulumi.Input[builtins.str] name: The free-form display name for the monitoring job.
|
787
|
+
:param pulumi.Input[builtins.str] notes: Freeform notes to be included in any notifications about this job.
|
788
|
+
:param pulumi.Input[builtins.int] notify_delay: The time in seconds after a failure to wait before sending a notification.
|
789
|
+
:param pulumi.Input[builtins.bool] notify_failback: If true, a notification is sent when a job returns to an "up" state.
|
790
|
+
:param pulumi.Input[builtins.bool] notify_regional: If true, notifications are sent for any regional failure (and failback if desired), in addition to global state notifications.
|
791
|
+
:param pulumi.Input[builtins.int] notify_repeat: The time in seconds between repeat notifications of a failed job.
|
792
|
+
:param pulumi.Input[builtins.str] policy: The policy for determining the monitor's global status
|
792
793
|
based on the status of the job in all regions. See NS1 API docs for supported values.
|
793
|
-
:param pulumi.Input[bool] rapid_recheck: If true, on any apparent state change, the job is quickly re-run after one second to confirm the state change before notification.
|
794
|
-
:param pulumi.Input[Sequence[pulumi.Input[str]]] regions: The list of region codes in which to run the monitoring
|
794
|
+
:param pulumi.Input[builtins.bool] rapid_recheck: If true, on any apparent state change, the job is quickly re-run after one second to confirm the state change before notification.
|
795
|
+
:param pulumi.Input[Sequence[pulumi.Input[builtins.str]]] regions: The list of region codes in which to run the monitoring
|
795
796
|
job. See NS1 API docs for supported values.
|
796
797
|
:param pulumi.Input[Sequence[pulumi.Input[Union['MonitoringJobRuleArgs', 'MonitoringJobRuleArgsDict']]]] rules: A list of rules for determining failure conditions. Each rule acts on one of the outputs from the monitoring job. You must specify key (the output key); comparison (a comparison to perform on the the output); and value (the value to compare to). For example, {"key":"rtt", "comparison":"<", "value":100} is a rule requiring the rtt from a job to be under 100ms, or the job will be marked failed. Available output keys, comparators, and value types are are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
|
797
798
|
"""
|
@@ -819,7 +820,7 @@ class MonitoringJob(pulumi.CustomResource):
|
|
819
820
|
|
820
821
|
@property
|
821
822
|
@pulumi.getter
|
822
|
-
def active(self) -> pulumi.Output[Optional[bool]]:
|
823
|
+
def active(self) -> pulumi.Output[Optional[builtins.bool]]:
|
823
824
|
"""
|
824
825
|
Indicates if the job is active or temporarily disabled.
|
825
826
|
"""
|
@@ -827,7 +828,7 @@ class MonitoringJob(pulumi.CustomResource):
|
|
827
828
|
|
828
829
|
@property
|
829
830
|
@pulumi.getter
|
830
|
-
def config(self) -> pulumi.Output[Mapping[str, str]]:
|
831
|
+
def config(self) -> pulumi.Output[Mapping[str, builtins.str]]:
|
831
832
|
"""
|
832
833
|
A configuration dictionary with keys and values depending on the job_type. Configuration details for each job_type are found by submitting a GET request to https://api.nsone.net/v1/monitoring/jobtypes.
|
833
834
|
"""
|
@@ -835,7 +836,7 @@ class MonitoringJob(pulumi.CustomResource):
|
|
835
836
|
|
836
837
|
@property
|
837
838
|
@pulumi.getter
|
838
|
-
def frequency(self) -> pulumi.Output[int]:
|
839
|
+
def frequency(self) -> pulumi.Output[builtins.int]:
|
839
840
|
"""
|
840
841
|
The frequency, in seconds, at which to run the monitoring job in each region.
|
841
842
|
"""
|
@@ -843,7 +844,7 @@ class MonitoringJob(pulumi.CustomResource):
|
|
843
844
|
|
844
845
|
@property
|
845
846
|
@pulumi.getter(name="jobType")
|
846
|
-
def job_type(self) -> pulumi.Output[str]:
|
847
|
+
def job_type(self) -> pulumi.Output[builtins.str]:
|
847
848
|
"""
|
848
849
|
The type of monitoring job to be run. Refer to the NS1 API documentation (https://ns1.com/api#monitoring-jobs) for supported values which include ping, tcp, dns, http.
|
849
850
|
"""
|
@@ -851,7 +852,7 @@ class MonitoringJob(pulumi.CustomResource):
|
|
851
852
|
|
852
853
|
@property
|
853
854
|
@pulumi.getter
|
854
|
-
def mute(self) -> pulumi.Output[Optional[bool]]:
|
855
|
+
def mute(self) -> pulumi.Output[Optional[builtins.bool]]:
|
855
856
|
"""
|
856
857
|
turn off the notifications for the monitoring job.
|
857
858
|
"""
|
@@ -859,7 +860,7 @@ class MonitoringJob(pulumi.CustomResource):
|
|
859
860
|
|
860
861
|
@property
|
861
862
|
@pulumi.getter
|
862
|
-
def name(self) -> pulumi.Output[str]:
|
863
|
+
def name(self) -> pulumi.Output[builtins.str]:
|
863
864
|
"""
|
864
865
|
The free-form display name for the monitoring job.
|
865
866
|
"""
|
@@ -867,7 +868,7 @@ class MonitoringJob(pulumi.CustomResource):
|
|
867
868
|
|
868
869
|
@property
|
869
870
|
@pulumi.getter
|
870
|
-
def notes(self) -> pulumi.Output[Optional[str]]:
|
871
|
+
def notes(self) -> pulumi.Output[Optional[builtins.str]]:
|
871
872
|
"""
|
872
873
|
Freeform notes to be included in any notifications about this job.
|
873
874
|
"""
|
@@ -875,7 +876,7 @@ class MonitoringJob(pulumi.CustomResource):
|
|
875
876
|
|
876
877
|
@property
|
877
878
|
@pulumi.getter(name="notifyDelay")
|
878
|
-
def notify_delay(self) -> pulumi.Output[Optional[int]]:
|
879
|
+
def notify_delay(self) -> pulumi.Output[Optional[builtins.int]]:
|
879
880
|
"""
|
880
881
|
The time in seconds after a failure to wait before sending a notification.
|
881
882
|
"""
|
@@ -883,7 +884,7 @@ class MonitoringJob(pulumi.CustomResource):
|
|
883
884
|
|
884
885
|
@property
|
885
886
|
@pulumi.getter(name="notifyFailback")
|
886
|
-
def notify_failback(self) -> pulumi.Output[Optional[bool]]:
|
887
|
+
def notify_failback(self) -> pulumi.Output[Optional[builtins.bool]]:
|
887
888
|
"""
|
888
889
|
If true, a notification is sent when a job returns to an "up" state.
|
889
890
|
"""
|
@@ -891,12 +892,12 @@ class MonitoringJob(pulumi.CustomResource):
|
|
891
892
|
|
892
893
|
@property
|
893
894
|
@pulumi.getter(name="notifyList")
|
894
|
-
def notify_list(self) -> pulumi.Output[Optional[str]]:
|
895
|
+
def notify_list(self) -> pulumi.Output[Optional[builtins.str]]:
|
895
896
|
return pulumi.get(self, "notify_list")
|
896
897
|
|
897
898
|
@property
|
898
899
|
@pulumi.getter(name="notifyRegional")
|
899
|
-
def notify_regional(self) -> pulumi.Output[Optional[bool]]:
|
900
|
+
def notify_regional(self) -> pulumi.Output[Optional[builtins.bool]]:
|
900
901
|
"""
|
901
902
|
If true, notifications are sent for any regional failure (and failback if desired), in addition to global state notifications.
|
902
903
|
"""
|
@@ -904,7 +905,7 @@ class MonitoringJob(pulumi.CustomResource):
|
|
904
905
|
|
905
906
|
@property
|
906
907
|
@pulumi.getter(name="notifyRepeat")
|
907
|
-
def notify_repeat(self) -> pulumi.Output[Optional[int]]:
|
908
|
+
def notify_repeat(self) -> pulumi.Output[Optional[builtins.int]]:
|
908
909
|
"""
|
909
910
|
The time in seconds between repeat notifications of a failed job.
|
910
911
|
"""
|
@@ -912,7 +913,7 @@ class MonitoringJob(pulumi.CustomResource):
|
|
912
913
|
|
913
914
|
@property
|
914
915
|
@pulumi.getter
|
915
|
-
def policy(self) -> pulumi.Output[Optional[str]]:
|
916
|
+
def policy(self) -> pulumi.Output[Optional[builtins.str]]:
|
916
917
|
"""
|
917
918
|
The policy for determining the monitor's global status
|
918
919
|
based on the status of the job in all regions. See NS1 API docs for supported values.
|
@@ -921,7 +922,7 @@ class MonitoringJob(pulumi.CustomResource):
|
|
921
922
|
|
922
923
|
@property
|
923
924
|
@pulumi.getter(name="rapidRecheck")
|
924
|
-
def rapid_recheck(self) -> pulumi.Output[Optional[bool]]:
|
925
|
+
def rapid_recheck(self) -> pulumi.Output[Optional[builtins.bool]]:
|
925
926
|
"""
|
926
927
|
If true, on any apparent state change, the job is quickly re-run after one second to confirm the state change before notification.
|
927
928
|
"""
|
@@ -929,7 +930,7 @@ class MonitoringJob(pulumi.CustomResource):
|
|
929
930
|
|
930
931
|
@property
|
931
932
|
@pulumi.getter
|
932
|
-
def regions(self) -> pulumi.Output[Sequence[str]]:
|
933
|
+
def regions(self) -> pulumi.Output[Sequence[builtins.str]]:
|
933
934
|
"""
|
934
935
|
The list of region codes in which to run the monitoring
|
935
936
|
job. See NS1 API docs for supported values.
|