pulumi-newrelic 5.23.0a1712988017__py3-none-any.whl → 5.23.0a1713561620__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_newrelic/account_management.py +6 -2
- pulumi_newrelic/alert_channel.py +48 -36
- pulumi_newrelic/alert_condition.py +20 -16
- pulumi_newrelic/alert_muting_rule.py +12 -10
- pulumi_newrelic/alert_policy.py +26 -10
- pulumi_newrelic/alert_policy_channel.py +12 -4
- pulumi_newrelic/cloud/aws_govcloud_link_account.py +4 -2
- pulumi_newrelic/cloud/aws_integrations.py +6 -4
- pulumi_newrelic/cloud/aws_link_account.py +4 -2
- pulumi_newrelic/cloud/azure_integrations.py +10 -8
- pulumi_newrelic/cloud/azure_link_account.py +4 -2
- pulumi_newrelic/cloud/gcp_integrations.py +6 -2
- pulumi_newrelic/cloud/gcp_link_account.py +4 -2
- pulumi_newrelic/entity_tags.py +6 -6
- pulumi_newrelic/events_to_metrics_rule.py +2 -0
- pulumi_newrelic/get_application.py +8 -6
- pulumi_newrelic/get_authentication_domain.py +4 -4
- pulumi_newrelic/get_entity.py +28 -16
- pulumi_newrelic/get_group.py +46 -4
- pulumi_newrelic/get_key_transaction.py +8 -6
- pulumi_newrelic/get_obfuscation_expression.py +2 -0
- pulumi_newrelic/get_service_level_alert_helper.py +22 -16
- pulumi_newrelic/get_test_grok_pattern.py +4 -2
- pulumi_newrelic/group.py +40 -30
- pulumi_newrelic/infra_alert_condition.py +28 -18
- pulumi_newrelic/insights/event.py +8 -8
- pulumi_newrelic/log_parsing_rule.py +6 -2
- pulumi_newrelic/monitor_downtime.py +104 -92
- pulumi_newrelic/notification_channel.py +124 -106
- pulumi_newrelic/nrql_alert_condition.py +38 -28
- pulumi_newrelic/nrql_drop_rule.py +6 -6
- pulumi_newrelic/obfuscation_expression.py +2 -0
- pulumi_newrelic/obfuscation_rule.py +4 -0
- pulumi_newrelic/one_dashboard_raw.py +86 -82
- pulumi_newrelic/plugins/application_settings.py +6 -4
- pulumi_newrelic/plugins/workload.py +138 -0
- pulumi_newrelic/service_level.py +38 -32
- pulumi_newrelic/synthetics/alert_condition.py +20 -14
- pulumi_newrelic/synthetics/broken_links_monitor.py +18 -12
- pulumi_newrelic/synthetics/cert_check_monitor.py +16 -10
- pulumi_newrelic/synthetics/monitor.py +48 -36
- pulumi_newrelic/synthetics/multi_location_alert_condition.py +20 -12
- pulumi_newrelic/synthetics/private_location.py +6 -2
- pulumi_newrelic/synthetics/script_monitor.py +34 -22
- pulumi_newrelic/synthetics/secure_credential.py +4 -4
- pulumi_newrelic/synthetics/step_monitor.py +14 -8
- pulumi_newrelic/user.py +8 -6
- pulumi_newrelic/workflow.py +20 -8
- {pulumi_newrelic-5.23.0a1712988017.dist-info → pulumi_newrelic-5.23.0a1713561620.dist-info}/METADATA +1 -1
- pulumi_newrelic-5.23.0a1713561620.dist-info/RECORD +89 -0
- pulumi_newrelic-5.23.0a1712988017.dist-info/RECORD +0 -89
- {pulumi_newrelic-5.23.0a1712988017.dist-info → pulumi_newrelic-5.23.0a1713561620.dist-info}/WHEEL +0 -0
- {pulumi_newrelic-5.23.0a1712988017.dist-info → pulumi_newrelic-5.23.0a1713561620.dist-info}/top_level.txt +0 -0
pulumi_newrelic/service_level.py
CHANGED
@@ -256,19 +256,20 @@ class ServiceLevel(pulumi.CustomResource):
|
|
256
256
|
import pulumi_newrelic as newrelic
|
257
257
|
|
258
258
|
foo = newrelic.ServiceLevel("foo",
|
259
|
+
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
260
|
+
name="Latency",
|
259
261
|
description="Proportion of requests that are served faster than a threshold.",
|
260
262
|
events=newrelic.ServiceLevelEventsArgs(
|
261
263
|
account_id=12345678,
|
262
|
-
good_events=newrelic.ServiceLevelEventsGoodEventsArgs(
|
263
|
-
from_="Transaction",
|
264
|
-
where="appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1",
|
265
|
-
),
|
266
264
|
valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
|
267
265
|
from_="Transaction",
|
268
266
|
where="appName = 'Example application' AND (transactionType='Web')",
|
269
267
|
),
|
268
|
+
good_events=newrelic.ServiceLevelEventsGoodEventsArgs(
|
269
|
+
from_="Transaction",
|
270
|
+
where="appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1",
|
271
|
+
),
|
270
272
|
),
|
271
|
-
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
272
273
|
objective=newrelic.ServiceLevelObjectiveArgs(
|
273
274
|
target=99,
|
274
275
|
time_window=newrelic.ServiceLevelObjectiveTimeWindowArgs(
|
@@ -290,8 +291,9 @@ class ServiceLevel(pulumi.CustomResource):
|
|
290
291
|
import pulumi
|
291
292
|
import pulumi_newrelic as newrelic
|
292
293
|
|
293
|
-
my_synthetic_monitor_service_level = newrelic.ServiceLevel("
|
294
|
+
my_synthetic_monitor_service_level = newrelic.ServiceLevel("my_synthetic_monitor_service_level",
|
294
295
|
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
296
|
+
name="My synthethic monitor - Success",
|
295
297
|
description="Proportion of successful synthetic checks.",
|
296
298
|
events=newrelic.ServiceLevelEventsArgs(
|
297
299
|
account_id=12345678,
|
@@ -313,7 +315,7 @@ class ServiceLevel(pulumi.CustomResource):
|
|
313
315
|
),
|
314
316
|
),
|
315
317
|
))
|
316
|
-
my_synthetic_monitor_service_level_tags = newrelic.EntityTags("
|
318
|
+
my_synthetic_monitor_service_level_tags = newrelic.EntityTags("my_synthetic_monitor_service_level_tags",
|
317
319
|
guid=my_synthetic_monitor_service_level.sli_guid,
|
318
320
|
tags=[
|
319
321
|
newrelic.EntityTagsTagArgs(
|
@@ -338,29 +340,30 @@ class ServiceLevel(pulumi.CustomResource):
|
|
338
340
|
import pulumi
|
339
341
|
import pulumi_newrelic as newrelic
|
340
342
|
|
341
|
-
my_synthetic_monitor_duration_service_level = newrelic.ServiceLevel("
|
343
|
+
my_synthetic_monitor_duration_service_level = newrelic.ServiceLevel("my_synthetic_monitor_duration_service_level",
|
344
|
+
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
345
|
+
name="Duration distribution is under 7",
|
342
346
|
description="Monitor created to test concurrent request from terraform",
|
343
347
|
events=newrelic.ServiceLevelEventsArgs(
|
344
348
|
account_id=313870,
|
345
|
-
|
349
|
+
valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
|
346
350
|
from_="Metric",
|
347
|
-
select=newrelic.
|
351
|
+
select=newrelic.ServiceLevelEventsValidEventsSelectArgs(
|
348
352
|
attribute="`query.wallClockTime.negative.distribution`",
|
349
|
-
function="
|
350
|
-
threshold=7,
|
353
|
+
function="GET_FIELD",
|
351
354
|
),
|
352
355
|
where="metricName = 'query.wallClockTime.negative.distribution'",
|
353
356
|
),
|
354
|
-
|
357
|
+
good_events=newrelic.ServiceLevelEventsGoodEventsArgs(
|
355
358
|
from_="Metric",
|
356
|
-
select=newrelic.
|
359
|
+
select=newrelic.ServiceLevelEventsGoodEventsSelectArgs(
|
357
360
|
attribute="`query.wallClockTime.negative.distribution`",
|
358
|
-
function="
|
361
|
+
function="GET_CDF_COUNT",
|
362
|
+
threshold=7,
|
359
363
|
),
|
360
364
|
where="metricName = 'query.wallClockTime.negative.distribution'",
|
361
365
|
),
|
362
366
|
),
|
363
|
-
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
364
367
|
objective=newrelic.ServiceLevelObjectiveArgs(
|
365
368
|
target=49,
|
366
369
|
time_window=newrelic.ServiceLevelObjectiveTimeWindowArgs(
|
@@ -424,19 +427,20 @@ class ServiceLevel(pulumi.CustomResource):
|
|
424
427
|
import pulumi_newrelic as newrelic
|
425
428
|
|
426
429
|
foo = newrelic.ServiceLevel("foo",
|
430
|
+
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
431
|
+
name="Latency",
|
427
432
|
description="Proportion of requests that are served faster than a threshold.",
|
428
433
|
events=newrelic.ServiceLevelEventsArgs(
|
429
434
|
account_id=12345678,
|
430
|
-
good_events=newrelic.ServiceLevelEventsGoodEventsArgs(
|
431
|
-
from_="Transaction",
|
432
|
-
where="appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1",
|
433
|
-
),
|
434
435
|
valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
|
435
436
|
from_="Transaction",
|
436
437
|
where="appName = 'Example application' AND (transactionType='Web')",
|
437
438
|
),
|
439
|
+
good_events=newrelic.ServiceLevelEventsGoodEventsArgs(
|
440
|
+
from_="Transaction",
|
441
|
+
where="appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1",
|
442
|
+
),
|
438
443
|
),
|
439
|
-
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
440
444
|
objective=newrelic.ServiceLevelObjectiveArgs(
|
441
445
|
target=99,
|
442
446
|
time_window=newrelic.ServiceLevelObjectiveTimeWindowArgs(
|
@@ -458,8 +462,9 @@ class ServiceLevel(pulumi.CustomResource):
|
|
458
462
|
import pulumi
|
459
463
|
import pulumi_newrelic as newrelic
|
460
464
|
|
461
|
-
my_synthetic_monitor_service_level = newrelic.ServiceLevel("
|
465
|
+
my_synthetic_monitor_service_level = newrelic.ServiceLevel("my_synthetic_monitor_service_level",
|
462
466
|
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
467
|
+
name="My synthethic monitor - Success",
|
463
468
|
description="Proportion of successful synthetic checks.",
|
464
469
|
events=newrelic.ServiceLevelEventsArgs(
|
465
470
|
account_id=12345678,
|
@@ -481,7 +486,7 @@ class ServiceLevel(pulumi.CustomResource):
|
|
481
486
|
),
|
482
487
|
),
|
483
488
|
))
|
484
|
-
my_synthetic_monitor_service_level_tags = newrelic.EntityTags("
|
489
|
+
my_synthetic_monitor_service_level_tags = newrelic.EntityTags("my_synthetic_monitor_service_level_tags",
|
485
490
|
guid=my_synthetic_monitor_service_level.sli_guid,
|
486
491
|
tags=[
|
487
492
|
newrelic.EntityTagsTagArgs(
|
@@ -506,29 +511,30 @@ class ServiceLevel(pulumi.CustomResource):
|
|
506
511
|
import pulumi
|
507
512
|
import pulumi_newrelic as newrelic
|
508
513
|
|
509
|
-
my_synthetic_monitor_duration_service_level = newrelic.ServiceLevel("
|
514
|
+
my_synthetic_monitor_duration_service_level = newrelic.ServiceLevel("my_synthetic_monitor_duration_service_level",
|
515
|
+
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
516
|
+
name="Duration distribution is under 7",
|
510
517
|
description="Monitor created to test concurrent request from terraform",
|
511
518
|
events=newrelic.ServiceLevelEventsArgs(
|
512
519
|
account_id=313870,
|
513
|
-
|
520
|
+
valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
|
514
521
|
from_="Metric",
|
515
|
-
select=newrelic.
|
522
|
+
select=newrelic.ServiceLevelEventsValidEventsSelectArgs(
|
516
523
|
attribute="`query.wallClockTime.negative.distribution`",
|
517
|
-
function="
|
518
|
-
threshold=7,
|
524
|
+
function="GET_FIELD",
|
519
525
|
),
|
520
526
|
where="metricName = 'query.wallClockTime.negative.distribution'",
|
521
527
|
),
|
522
|
-
|
528
|
+
good_events=newrelic.ServiceLevelEventsGoodEventsArgs(
|
523
529
|
from_="Metric",
|
524
|
-
select=newrelic.
|
530
|
+
select=newrelic.ServiceLevelEventsGoodEventsSelectArgs(
|
525
531
|
attribute="`query.wallClockTime.negative.distribution`",
|
526
|
-
function="
|
532
|
+
function="GET_CDF_COUNT",
|
533
|
+
threshold=7,
|
527
534
|
),
|
528
535
|
where="metricName = 'query.wallClockTime.negative.distribution'",
|
529
536
|
),
|
530
537
|
),
|
531
|
-
guid="MXxBUE18QVBQTElDQVRJT058MQ",
|
532
538
|
objective=newrelic.ServiceLevelObjectiveArgs(
|
533
539
|
target=49,
|
534
540
|
time_window=newrelic.ServiceLevelObjectiveTimeWindowArgs(
|
@@ -241,8 +241,9 @@ class AlertCondition(pulumi.CustomResource):
|
|
241
241
|
import pulumi_newrelic as newrelic
|
242
242
|
|
243
243
|
foo = newrelic.synthetics.AlertCondition("foo",
|
244
|
-
policy_id=
|
245
|
-
|
244
|
+
policy_id=foo_newrelic_alert_policy["id"],
|
245
|
+
name="foo",
|
246
|
+
monitor_id=foo_newrelic_synthetics_monitor["id"],
|
246
247
|
runbook_url="https://www.example.com")
|
247
248
|
```
|
248
249
|
<!--End PulumiCodeChooser -->
|
@@ -256,9 +257,10 @@ class AlertCondition(pulumi.CustomResource):
|
|
256
257
|
import pulumi
|
257
258
|
import pulumi_newrelic as newrelic
|
258
259
|
|
259
|
-
|
260
|
-
foo_monitor = newrelic.synthetics.Monitor("
|
260
|
+
foo = newrelic.AlertPolicy("foo", name="foo policy")
|
261
|
+
foo_monitor = newrelic.synthetics.Monitor("foo",
|
261
262
|
status="ENABLED",
|
263
|
+
name="foo monitor",
|
262
264
|
period="EVERY_MINUTE",
|
263
265
|
uri="https://www.one.newrelic.com",
|
264
266
|
type="SIMPLE",
|
@@ -275,11 +277,12 @@ class AlertCondition(pulumi.CustomResource):
|
|
275
277
|
key="some_key",
|
276
278
|
values=["some_value"],
|
277
279
|
)])
|
278
|
-
foo_alert_condition = newrelic.synthetics.AlertCondition("
|
279
|
-
policy_id=
|
280
|
+
foo_alert_condition = newrelic.synthetics.AlertCondition("foo",
|
281
|
+
policy_id=foo.id,
|
282
|
+
name="foo synthetics condition",
|
280
283
|
monitor_id=foo_monitor.id,
|
281
284
|
runbook_url="https://www.example.com")
|
282
|
-
my_condition_entity_tags = newrelic.EntityTags("
|
285
|
+
my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
|
283
286
|
guid=foo_alert_condition.entity_guid,
|
284
287
|
tags=[
|
285
288
|
newrelic.EntityTagsTagArgs(
|
@@ -336,8 +339,9 @@ class AlertCondition(pulumi.CustomResource):
|
|
336
339
|
import pulumi_newrelic as newrelic
|
337
340
|
|
338
341
|
foo = newrelic.synthetics.AlertCondition("foo",
|
339
|
-
policy_id=
|
340
|
-
|
342
|
+
policy_id=foo_newrelic_alert_policy["id"],
|
343
|
+
name="foo",
|
344
|
+
monitor_id=foo_newrelic_synthetics_monitor["id"],
|
341
345
|
runbook_url="https://www.example.com")
|
342
346
|
```
|
343
347
|
<!--End PulumiCodeChooser -->
|
@@ -351,9 +355,10 @@ class AlertCondition(pulumi.CustomResource):
|
|
351
355
|
import pulumi
|
352
356
|
import pulumi_newrelic as newrelic
|
353
357
|
|
354
|
-
|
355
|
-
foo_monitor = newrelic.synthetics.Monitor("
|
358
|
+
foo = newrelic.AlertPolicy("foo", name="foo policy")
|
359
|
+
foo_monitor = newrelic.synthetics.Monitor("foo",
|
356
360
|
status="ENABLED",
|
361
|
+
name="foo monitor",
|
357
362
|
period="EVERY_MINUTE",
|
358
363
|
uri="https://www.one.newrelic.com",
|
359
364
|
type="SIMPLE",
|
@@ -370,11 +375,12 @@ class AlertCondition(pulumi.CustomResource):
|
|
370
375
|
key="some_key",
|
371
376
|
values=["some_value"],
|
372
377
|
)])
|
373
|
-
foo_alert_condition = newrelic.synthetics.AlertCondition("
|
374
|
-
policy_id=
|
378
|
+
foo_alert_condition = newrelic.synthetics.AlertCondition("foo",
|
379
|
+
policy_id=foo.id,
|
380
|
+
name="foo synthetics condition",
|
375
381
|
monitor_id=foo_monitor.id,
|
376
382
|
runbook_url="https://www.example.com")
|
377
|
-
my_condition_entity_tags = newrelic.EntityTags("
|
383
|
+
my_condition_entity_tags = newrelic.EntityTags("my_condition_entity_tags",
|
378
384
|
guid=foo_alert_condition.entity_guid,
|
379
385
|
tags=[
|
380
386
|
newrelic.EntityTagsTagArgs(
|
@@ -413,16 +413,17 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
413
413
|
import pulumi_newrelic as newrelic
|
414
414
|
|
415
415
|
foo = newrelic.synthetics.BrokenLinksMonitor("foo",
|
416
|
+
name="Sample Broken Links Monitor",
|
417
|
+
uri="https://www.one.example.com",
|
416
418
|
locations_publics=["AP_SOUTH_1"],
|
417
419
|
period="EVERY_6_HOURS",
|
420
|
+
status="ENABLED",
|
418
421
|
runtime_type="NODE_API",
|
419
422
|
runtime_type_version="16.10",
|
420
|
-
status="ENABLED",
|
421
423
|
tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
|
422
424
|
key="some_key",
|
423
425
|
values=["some_value"],
|
424
|
-
)]
|
425
|
-
uri="https://www.one.example.com")
|
426
|
+
)])
|
426
427
|
```
|
427
428
|
<!--End PulumiCodeChooser -->
|
428
429
|
See additional examples.
|
@@ -440,12 +441,14 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
440
441
|
import pulumi
|
441
442
|
import pulumi_newrelic as newrelic
|
442
443
|
|
443
|
-
|
444
|
+
foo = newrelic.synthetics.PrivateLocation("foo",
|
445
|
+
name="Sample Private Location",
|
444
446
|
description="Sample Private Location Description",
|
445
447
|
verified_script_execution=False)
|
446
|
-
foo_broken_links_monitor = newrelic.synthetics.BrokenLinksMonitor("
|
448
|
+
foo_broken_links_monitor = newrelic.synthetics.BrokenLinksMonitor("foo",
|
449
|
+
name="Sample Broken Links Monitor",
|
447
450
|
uri="https://www.one.example.com",
|
448
|
-
locations_privates=[
|
451
|
+
locations_privates=[foo.id],
|
449
452
|
period="EVERY_6_HOURS",
|
450
453
|
status="ENABLED",
|
451
454
|
tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
|
@@ -497,16 +500,17 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
497
500
|
import pulumi_newrelic as newrelic
|
498
501
|
|
499
502
|
foo = newrelic.synthetics.BrokenLinksMonitor("foo",
|
503
|
+
name="Sample Broken Links Monitor",
|
504
|
+
uri="https://www.one.example.com",
|
500
505
|
locations_publics=["AP_SOUTH_1"],
|
501
506
|
period="EVERY_6_HOURS",
|
507
|
+
status="ENABLED",
|
502
508
|
runtime_type="NODE_API",
|
503
509
|
runtime_type_version="16.10",
|
504
|
-
status="ENABLED",
|
505
510
|
tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
|
506
511
|
key="some_key",
|
507
512
|
values=["some_value"],
|
508
|
-
)]
|
509
|
-
uri="https://www.one.example.com")
|
513
|
+
)])
|
510
514
|
```
|
511
515
|
<!--End PulumiCodeChooser -->
|
512
516
|
See additional examples.
|
@@ -524,12 +528,14 @@ class BrokenLinksMonitor(pulumi.CustomResource):
|
|
524
528
|
import pulumi
|
525
529
|
import pulumi_newrelic as newrelic
|
526
530
|
|
527
|
-
|
531
|
+
foo = newrelic.synthetics.PrivateLocation("foo",
|
532
|
+
name="Sample Private Location",
|
528
533
|
description="Sample Private Location Description",
|
529
534
|
verified_script_execution=False)
|
530
|
-
foo_broken_links_monitor = newrelic.synthetics.BrokenLinksMonitor("
|
535
|
+
foo_broken_links_monitor = newrelic.synthetics.BrokenLinksMonitor("foo",
|
536
|
+
name="Sample Broken Links Monitor",
|
531
537
|
uri="https://www.one.example.com",
|
532
|
-
locations_privates=[
|
538
|
+
locations_privates=[foo.id],
|
533
539
|
period="EVERY_6_HOURS",
|
534
540
|
status="ENABLED",
|
535
541
|
tags=[newrelic.synthetics.BrokenLinksMonitorTagArgs(
|
@@ -429,13 +429,14 @@ class CertCheckMonitor(pulumi.CustomResource):
|
|
429
429
|
import pulumi_newrelic as newrelic
|
430
430
|
|
431
431
|
foo = newrelic.synthetics.CertCheckMonitor("foo",
|
432
|
-
|
432
|
+
name="Sample Cert Check Monitor",
|
433
433
|
domain="www.example.com",
|
434
434
|
locations_publics=["AP_SOUTH_1"],
|
435
|
+
certificate_expiration=10,
|
435
436
|
period="EVERY_6_HOURS",
|
437
|
+
status="ENABLED",
|
436
438
|
runtime_type="NODE_API",
|
437
439
|
runtime_type_version="16.10",
|
438
|
-
status="ENABLED",
|
439
440
|
tags=[newrelic.synthetics.CertCheckMonitorTagArgs(
|
440
441
|
key="some_key",
|
441
442
|
values=["some_value"],
|
@@ -457,12 +458,14 @@ class CertCheckMonitor(pulumi.CustomResource):
|
|
457
458
|
import pulumi
|
458
459
|
import pulumi_newrelic as newrelic
|
459
460
|
|
460
|
-
|
461
|
+
foo = newrelic.synthetics.PrivateLocation("foo",
|
462
|
+
name="Sample Private Location",
|
461
463
|
description="Sample Private Location Description",
|
462
464
|
verified_script_execution=False)
|
463
|
-
foo_cert_check_monitor = newrelic.synthetics.CertCheckMonitor("
|
465
|
+
foo_cert_check_monitor = newrelic.synthetics.CertCheckMonitor("foo",
|
466
|
+
name="Sample Cert Check Monitor",
|
464
467
|
domain="www.one.example.com",
|
465
|
-
locations_privates=[
|
468
|
+
locations_privates=[foo.id],
|
466
469
|
certificate_expiration=10,
|
467
470
|
period="EVERY_6_HOURS",
|
468
471
|
status="ENABLED",
|
@@ -516,13 +519,14 @@ class CertCheckMonitor(pulumi.CustomResource):
|
|
516
519
|
import pulumi_newrelic as newrelic
|
517
520
|
|
518
521
|
foo = newrelic.synthetics.CertCheckMonitor("foo",
|
519
|
-
|
522
|
+
name="Sample Cert Check Monitor",
|
520
523
|
domain="www.example.com",
|
521
524
|
locations_publics=["AP_SOUTH_1"],
|
525
|
+
certificate_expiration=10,
|
522
526
|
period="EVERY_6_HOURS",
|
527
|
+
status="ENABLED",
|
523
528
|
runtime_type="NODE_API",
|
524
529
|
runtime_type_version="16.10",
|
525
|
-
status="ENABLED",
|
526
530
|
tags=[newrelic.synthetics.CertCheckMonitorTagArgs(
|
527
531
|
key="some_key",
|
528
532
|
values=["some_value"],
|
@@ -544,12 +548,14 @@ class CertCheckMonitor(pulumi.CustomResource):
|
|
544
548
|
import pulumi
|
545
549
|
import pulumi_newrelic as newrelic
|
546
550
|
|
547
|
-
|
551
|
+
foo = newrelic.synthetics.PrivateLocation("foo",
|
552
|
+
name="Sample Private Location",
|
548
553
|
description="Sample Private Location Description",
|
549
554
|
verified_script_execution=False)
|
550
|
-
foo_cert_check_monitor = newrelic.synthetics.CertCheckMonitor("
|
555
|
+
foo_cert_check_monitor = newrelic.synthetics.CertCheckMonitor("foo",
|
556
|
+
name="Sample Cert Check Monitor",
|
551
557
|
domain="www.one.example.com",
|
552
|
-
locations_privates=[
|
558
|
+
locations_privates=[foo.id],
|
553
559
|
certificate_expiration=10,
|
554
560
|
period="EVERY_6_HOURS",
|
555
561
|
status="ENABLED",
|
@@ -736,23 +736,24 @@ class Monitor(pulumi.CustomResource):
|
|
736
736
|
import pulumi_newrelic as newrelic
|
737
737
|
|
738
738
|
monitor = newrelic.synthetics.Monitor("monitor",
|
739
|
-
|
739
|
+
status="ENABLED",
|
740
|
+
name="monitor",
|
741
|
+
period="EVERY_MINUTE",
|
742
|
+
uri="https://www.one.newrelic.com",
|
743
|
+
type="SIMPLE",
|
744
|
+
locations_publics=["AP_SOUTH_1"],
|
740
745
|
custom_headers=[newrelic.synthetics.MonitorCustomHeaderArgs(
|
741
746
|
name="some_name",
|
742
747
|
value="some_value",
|
743
748
|
)],
|
744
|
-
|
745
|
-
|
746
|
-
|
749
|
+
treat_redirect_as_failure=True,
|
750
|
+
validation_string="success",
|
751
|
+
bypass_head_request=True,
|
752
|
+
verify_ssl=True,
|
747
753
|
tags=[newrelic.synthetics.MonitorTagArgs(
|
748
754
|
key="some_key",
|
749
755
|
values=["some_value"],
|
750
|
-
)]
|
751
|
-
treat_redirect_as_failure=True,
|
752
|
-
type="SIMPLE",
|
753
|
-
uri="https://www.one.newrelic.com",
|
754
|
-
validation_string="success",
|
755
|
-
verify_ssl=True)
|
756
|
+
)])
|
756
757
|
```
|
757
758
|
<!--End PulumiCodeChooser -->
|
758
759
|
##### Type: `SIMPLE BROWSER`
|
@@ -763,22 +764,23 @@ class Monitor(pulumi.CustomResource):
|
|
763
764
|
import pulumi_newrelic as newrelic
|
764
765
|
|
765
766
|
monitor = newrelic.synthetics.Monitor("monitor",
|
767
|
+
status="ENABLED",
|
768
|
+
name="monitor",
|
769
|
+
period="EVERY_MINUTE",
|
770
|
+
uri="https://www.one.newrelic.com",
|
771
|
+
type="BROWSER",
|
772
|
+
locations_publics=["AP_SOUTH_1"],
|
766
773
|
custom_headers=[newrelic.synthetics.MonitorCustomHeaderArgs(
|
767
774
|
name="some_name",
|
768
775
|
value="some_value",
|
769
776
|
)],
|
770
777
|
enable_screenshot_on_failure_and_script=True,
|
771
|
-
|
772
|
-
|
773
|
-
status="ENABLED",
|
778
|
+
validation_string="success",
|
779
|
+
verify_ssl=True,
|
774
780
|
tags=[newrelic.synthetics.MonitorTagArgs(
|
775
781
|
key="some_key",
|
776
782
|
values=["some_value"],
|
777
|
-
)]
|
778
|
-
type="BROWSER",
|
779
|
-
uri="https://www.one.newrelic.com",
|
780
|
-
validation_string="success",
|
781
|
-
verify_ssl=True)
|
783
|
+
)])
|
782
784
|
```
|
783
785
|
<!--End PulumiCodeChooser -->
|
784
786
|
See additional examples.
|
@@ -800,9 +802,11 @@ class Monitor(pulumi.CustomResource):
|
|
800
802
|
|
801
803
|
location = newrelic.synthetics.PrivateLocation("location",
|
802
804
|
description="Example private location",
|
805
|
+
name="private_location",
|
803
806
|
verified_script_execution=False)
|
804
807
|
monitor = newrelic.synthetics.Monitor("monitor",
|
805
808
|
status="ENABLED",
|
809
|
+
name="monitor",
|
806
810
|
period="EVERY_MINUTE",
|
807
811
|
uri="https://www.one.newrelic.com",
|
808
812
|
type="SIMPLE",
|
@@ -830,11 +834,13 @@ class Monitor(pulumi.CustomResource):
|
|
830
834
|
|
831
835
|
location = newrelic.synthetics.PrivateLocation("location",
|
832
836
|
description="Example private location",
|
837
|
+
name="private-location",
|
833
838
|
verified_script_execution=False)
|
834
839
|
monitor = newrelic.synthetics.Monitor("monitor",
|
835
840
|
status="ENABLED",
|
836
841
|
type="BROWSER",
|
837
842
|
uri="https://www.one.newrelic.com",
|
843
|
+
name="monitor",
|
838
844
|
period="EVERY_MINUTE",
|
839
845
|
locations_privates=[location.id],
|
840
846
|
custom_headers=[newrelic.synthetics.MonitorCustomHeaderArgs(
|
@@ -908,23 +914,24 @@ class Monitor(pulumi.CustomResource):
|
|
908
914
|
import pulumi_newrelic as newrelic
|
909
915
|
|
910
916
|
monitor = newrelic.synthetics.Monitor("monitor",
|
911
|
-
|
917
|
+
status="ENABLED",
|
918
|
+
name="monitor",
|
919
|
+
period="EVERY_MINUTE",
|
920
|
+
uri="https://www.one.newrelic.com",
|
921
|
+
type="SIMPLE",
|
922
|
+
locations_publics=["AP_SOUTH_1"],
|
912
923
|
custom_headers=[newrelic.synthetics.MonitorCustomHeaderArgs(
|
913
924
|
name="some_name",
|
914
925
|
value="some_value",
|
915
926
|
)],
|
916
|
-
|
917
|
-
|
918
|
-
|
927
|
+
treat_redirect_as_failure=True,
|
928
|
+
validation_string="success",
|
929
|
+
bypass_head_request=True,
|
930
|
+
verify_ssl=True,
|
919
931
|
tags=[newrelic.synthetics.MonitorTagArgs(
|
920
932
|
key="some_key",
|
921
933
|
values=["some_value"],
|
922
|
-
)]
|
923
|
-
treat_redirect_as_failure=True,
|
924
|
-
type="SIMPLE",
|
925
|
-
uri="https://www.one.newrelic.com",
|
926
|
-
validation_string="success",
|
927
|
-
verify_ssl=True)
|
934
|
+
)])
|
928
935
|
```
|
929
936
|
<!--End PulumiCodeChooser -->
|
930
937
|
##### Type: `SIMPLE BROWSER`
|
@@ -935,22 +942,23 @@ class Monitor(pulumi.CustomResource):
|
|
935
942
|
import pulumi_newrelic as newrelic
|
936
943
|
|
937
944
|
monitor = newrelic.synthetics.Monitor("monitor",
|
945
|
+
status="ENABLED",
|
946
|
+
name="monitor",
|
947
|
+
period="EVERY_MINUTE",
|
948
|
+
uri="https://www.one.newrelic.com",
|
949
|
+
type="BROWSER",
|
950
|
+
locations_publics=["AP_SOUTH_1"],
|
938
951
|
custom_headers=[newrelic.synthetics.MonitorCustomHeaderArgs(
|
939
952
|
name="some_name",
|
940
953
|
value="some_value",
|
941
954
|
)],
|
942
955
|
enable_screenshot_on_failure_and_script=True,
|
943
|
-
|
944
|
-
|
945
|
-
status="ENABLED",
|
956
|
+
validation_string="success",
|
957
|
+
verify_ssl=True,
|
946
958
|
tags=[newrelic.synthetics.MonitorTagArgs(
|
947
959
|
key="some_key",
|
948
960
|
values=["some_value"],
|
949
|
-
)]
|
950
|
-
type="BROWSER",
|
951
|
-
uri="https://www.one.newrelic.com",
|
952
|
-
validation_string="success",
|
953
|
-
verify_ssl=True)
|
961
|
+
)])
|
954
962
|
```
|
955
963
|
<!--End PulumiCodeChooser -->
|
956
964
|
See additional examples.
|
@@ -972,9 +980,11 @@ class Monitor(pulumi.CustomResource):
|
|
972
980
|
|
973
981
|
location = newrelic.synthetics.PrivateLocation("location",
|
974
982
|
description="Example private location",
|
983
|
+
name="private_location",
|
975
984
|
verified_script_execution=False)
|
976
985
|
monitor = newrelic.synthetics.Monitor("monitor",
|
977
986
|
status="ENABLED",
|
987
|
+
name="monitor",
|
978
988
|
period="EVERY_MINUTE",
|
979
989
|
uri="https://www.one.newrelic.com",
|
980
990
|
type="SIMPLE",
|
@@ -1002,11 +1012,13 @@ class Monitor(pulumi.CustomResource):
|
|
1002
1012
|
|
1003
1013
|
location = newrelic.synthetics.PrivateLocation("location",
|
1004
1014
|
description="Example private location",
|
1015
|
+
name="private-location",
|
1005
1016
|
verified_script_execution=False)
|
1006
1017
|
monitor = newrelic.synthetics.Monitor("monitor",
|
1007
1018
|
status="ENABLED",
|
1008
1019
|
type="BROWSER",
|
1009
1020
|
uri="https://www.one.newrelic.com",
|
1021
|
+
name="monitor",
|
1010
1022
|
period="EVERY_MINUTE",
|
1011
1023
|
locations_privates=[location.id],
|
1012
1024
|
custom_headers=[newrelic.synthetics.MonitorCustomHeaderArgs(
|