pulumi-harness 0.5.0a1730179989__py3-none-any.whl → 0.5.0a1730384268__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.
Potentially problematic release.
This version of pulumi-harness might be problematic. Click here for more details.
- pulumi_harness/platform/git_ops_applications.py +4 -4
- pulumi_harness/platform/monitored_service.py +250 -250
- pulumi_harness/platform/notification_rule.py +4 -4
- pulumi_harness/platform/slo.py +14 -14
- pulumi_harness/pulumi-plugin.json +1 -1
- {pulumi_harness-0.5.0a1730179989.dist-info → pulumi_harness-0.5.0a1730384268.dist-info}/METADATA +1 -1
- {pulumi_harness-0.5.0a1730179989.dist-info → pulumi_harness-0.5.0a1730384268.dist-info}/RECORD +9 -9
- {pulumi_harness-0.5.0a1730179989.dist-info → pulumi_harness-0.5.0a1730384268.dist-info}/WHEEL +1 -1
- {pulumi_harness-0.5.0a1730179989.dist-info → pulumi_harness-0.5.0a1730384268.dist-info}/top_level.txt +0 -0
|
@@ -617,8 +617,8 @@ class GitOpsApplications(pulumi.CustomResource):
|
|
|
617
617
|
"metadatas": [{
|
|
618
618
|
"annotations": {},
|
|
619
619
|
"labels": {
|
|
620
|
-
"
|
|
621
|
-
"
|
|
620
|
+
"harness.io/serviceRef": "service_id",
|
|
621
|
+
"harness.io/envRef": "env_id",
|
|
622
622
|
},
|
|
623
623
|
"name": "appname123",
|
|
624
624
|
}],
|
|
@@ -704,8 +704,8 @@ class GitOpsApplications(pulumi.CustomResource):
|
|
|
704
704
|
"metadatas": [{
|
|
705
705
|
"annotations": {},
|
|
706
706
|
"labels": {
|
|
707
|
-
"
|
|
708
|
-
"
|
|
707
|
+
"harness.io/serviceRef": "service_id",
|
|
708
|
+
"harness.io/envRef": "env_id",
|
|
709
709
|
},
|
|
710
710
|
"name": "appname123",
|
|
711
711
|
}],
|
|
@@ -200,20 +200,20 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
200
200
|
"type": "ElasticSearch",
|
|
201
201
|
"version": "v2",
|
|
202
202
|
"spec": json.dumps({
|
|
203
|
-
"
|
|
204
|
-
"
|
|
203
|
+
"connectorRef": "connectorRef",
|
|
204
|
+
"queryDefinitions": [
|
|
205
205
|
{
|
|
206
206
|
"name": "error_4xx",
|
|
207
207
|
"identifier": "error_4xx_id",
|
|
208
208
|
"query": "Bad Request",
|
|
209
209
|
"index": "index",
|
|
210
|
-
"
|
|
211
|
-
"
|
|
210
|
+
"groupName": "Logs_Group",
|
|
211
|
+
"queryParams": {
|
|
212
212
|
"index": "index",
|
|
213
|
-
"
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
"
|
|
213
|
+
"serviceInstanceField": "serviceInstanceIdentifier",
|
|
214
|
+
"timeStampIdentifier": "timeStampIdentifier",
|
|
215
|
+
"timeStampFormat": "timeStampFormat",
|
|
216
|
+
"messageIdentifier": "messageIdentifier",
|
|
217
217
|
},
|
|
218
218
|
},
|
|
219
219
|
{
|
|
@@ -240,8 +240,8 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
240
240
|
"type": "PagerDuty",
|
|
241
241
|
"enabled": True,
|
|
242
242
|
"spec": json.dumps({
|
|
243
|
-
"
|
|
244
|
-
"
|
|
243
|
+
"connectorRef": "account.pd",
|
|
244
|
+
"pagerDutyServiceId": "P0N21OB",
|
|
245
245
|
}),
|
|
246
246
|
"category": "Alert",
|
|
247
247
|
},
|
|
@@ -252,8 +252,8 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
252
252
|
"enabled": True,
|
|
253
253
|
"spec": json.dumps({
|
|
254
254
|
"name": "FH",
|
|
255
|
-
"
|
|
256
|
-
"
|
|
255
|
+
"webhookUrl": "https://harness.io/cv/api/account/sampleAcc/org/sampleOrg/project/sampleProj/webhook/custom-change?monitoredServiceIdentifier=checkout_prod&changeSourceIdentifier=FH",
|
|
256
|
+
"webhookCurlCommand": "curl -X POST -H 'content-type: application/json' -H 'X-Api-Key: sample_api_key' --url 'https://harness.io/cv/api/account/sampleAcc/org/sampleOrg/project/sampleProj/webhook/custom-change?monitoredServiceIdentifier=checkout_prod&changeSourceIdentifier=FH' -d '{ \\"eventIdentifier\\": \\"<string>\\" (optional), \\"user\\": \\"user@harness.io\\", \\"startTime\\": timeInMs, \\"endTime\\": timeInMs, \\"eventDetail\\": { \\"description\\": \\"<String>\\", \\"changeEventDetailsLink\\": \\"urlString\\" (optional), \\"externalLinkToEntity\\": \\"urlString\\" (optional), \\"name\\": \\"changeEventName\\" } }'",
|
|
257
257
|
"type": "Alert",
|
|
258
258
|
}),
|
|
259
259
|
"category": "Alert",
|
|
@@ -286,7 +286,7 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
286
286
|
"category": "Alert",
|
|
287
287
|
"spec": json.dumps({
|
|
288
288
|
"type": "Alert",
|
|
289
|
-
"
|
|
289
|
+
"authorizationToken": "abc",
|
|
290
290
|
}),
|
|
291
291
|
},
|
|
292
292
|
],
|
|
@@ -322,24 +322,24 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
322
322
|
"type": "SumologicMetrics",
|
|
323
323
|
"version": "v2",
|
|
324
324
|
"spec": json.dumps({
|
|
325
|
-
"
|
|
326
|
-
"
|
|
325
|
+
"connectorRef": "connectorRef",
|
|
326
|
+
"queryDefinitions": [
|
|
327
327
|
{
|
|
328
328
|
"name": "metric_cpu",
|
|
329
329
|
"identifier": "metric_cpu",
|
|
330
330
|
"query": "metric=cpu",
|
|
331
|
-
"
|
|
332
|
-
"
|
|
333
|
-
"
|
|
331
|
+
"groupName": "g1",
|
|
332
|
+
"queryParams": {
|
|
333
|
+
"serviceInstanceField": "_sourcehost",
|
|
334
334
|
},
|
|
335
|
-
"
|
|
336
|
-
"
|
|
337
|
-
"
|
|
335
|
+
"riskProfile": {
|
|
336
|
+
"riskCategory": "Performance_Other",
|
|
337
|
+
"thresholdTypes": ["ACT_WHEN_HIGHER"],
|
|
338
338
|
},
|
|
339
|
-
"
|
|
340
|
-
"
|
|
341
|
-
"
|
|
342
|
-
"
|
|
339
|
+
"liveMonitoringEnabled": "true",
|
|
340
|
+
"continuousVerificationEnabled": "true",
|
|
341
|
+
"sliEnabled": "false",
|
|
342
|
+
"metricThresholds": [
|
|
343
343
|
{
|
|
344
344
|
"type": "IgnoreThreshold",
|
|
345
345
|
"spec": {
|
|
@@ -348,11 +348,11 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
348
348
|
"criteria": {
|
|
349
349
|
"type": "Absolute",
|
|
350
350
|
"spec": {
|
|
351
|
-
"
|
|
351
|
+
"greaterThan": 100,
|
|
352
352
|
},
|
|
353
353
|
},
|
|
354
|
-
"
|
|
355
|
-
"
|
|
354
|
+
"metricType": "Custom",
|
|
355
|
+
"metricName": "metric_cpu",
|
|
356
356
|
},
|
|
357
357
|
{
|
|
358
358
|
"type": "FailImmediately",
|
|
@@ -414,15 +414,15 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
414
414
|
"type": "SumologicLogs",
|
|
415
415
|
"version": "v2",
|
|
416
416
|
"spec": json.dumps({
|
|
417
|
-
"
|
|
418
|
-
"
|
|
417
|
+
"connectorRef": "connectorRef",
|
|
418
|
+
"queryDefinitions": [
|
|
419
419
|
{
|
|
420
420
|
"name": "log1",
|
|
421
421
|
"identifier": "log1",
|
|
422
422
|
"query": "*",
|
|
423
|
-
"
|
|
424
|
-
"
|
|
425
|
-
"
|
|
423
|
+
"groupName": "Logs Group",
|
|
424
|
+
"queryParams": {
|
|
425
|
+
"serviceInstanceField": "_sourcehost",
|
|
426
426
|
},
|
|
427
427
|
},
|
|
428
428
|
{
|
|
@@ -459,23 +459,23 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
459
459
|
"type": "SplunkSignalFXMetrics",
|
|
460
460
|
"version": "v2",
|
|
461
461
|
"spec": json.dumps({
|
|
462
|
-
"
|
|
463
|
-
"
|
|
462
|
+
"connectorRef": "connectorRef",
|
|
463
|
+
"queryDefinitions": [
|
|
464
464
|
{
|
|
465
465
|
"name": "metric_infra_cpu",
|
|
466
466
|
"identifier": "metric_infra_cpu",
|
|
467
467
|
"query": "***",
|
|
468
|
-
"
|
|
469
|
-
"
|
|
470
|
-
"
|
|
471
|
-
"
|
|
468
|
+
"groupName": "g",
|
|
469
|
+
"riskProfile": {
|
|
470
|
+
"riskCategory": "Errors",
|
|
471
|
+
"thresholdTypes": [
|
|
472
472
|
"ACT_WHEN_HIGHER",
|
|
473
473
|
"ACT_WHEN_LOWER",
|
|
474
474
|
],
|
|
475
475
|
},
|
|
476
|
-
"
|
|
477
|
-
"
|
|
478
|
-
"
|
|
476
|
+
"liveMonitoringEnabled": "true",
|
|
477
|
+
"continuousVerificationEnabled": "true",
|
|
478
|
+
"sliEnabled": "false",
|
|
479
479
|
},
|
|
480
480
|
{
|
|
481
481
|
"name": "name2",
|
|
@@ -548,15 +548,15 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
548
548
|
"type": "GrafanaLokiLogs",
|
|
549
549
|
"version": "v2",
|
|
550
550
|
"spec": json.dumps({
|
|
551
|
-
"
|
|
552
|
-
"
|
|
551
|
+
"connectorRef": "connectorRef",
|
|
552
|
+
"queryDefinitions": [
|
|
553
553
|
{
|
|
554
554
|
"name": "Demo",
|
|
555
555
|
"identifier": "Demo",
|
|
556
556
|
"query": "{job=~\\".+\\"}",
|
|
557
|
-
"
|
|
558
|
-
"
|
|
559
|
-
"
|
|
557
|
+
"groupName": "Log_Group",
|
|
558
|
+
"queryParams": {
|
|
559
|
+
"serviceInstanceField": "job",
|
|
560
560
|
},
|
|
561
561
|
},
|
|
562
562
|
{
|
|
@@ -596,28 +596,28 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
596
596
|
"type": "AzureMetrics",
|
|
597
597
|
"version": "v2",
|
|
598
598
|
"spec": json.dumps({
|
|
599
|
-
"
|
|
600
|
-
"
|
|
599
|
+
"connectorRef": "connectorRef",
|
|
600
|
+
"queryDefinitions": [
|
|
601
601
|
{
|
|
602
602
|
"name": "metric",
|
|
603
603
|
"identifier": "metric",
|
|
604
604
|
"query": "default",
|
|
605
|
-
"
|
|
606
|
-
"
|
|
607
|
-
"
|
|
605
|
+
"groupName": "g1",
|
|
606
|
+
"queryParams": {
|
|
607
|
+
"serviceInstanceField": "host",
|
|
608
608
|
"index": "/subscriptions/12d2db62-5aa9-471d-84bb-faa489b3e319/resourceGroups/srm-test/providers/Microsoft.ContainerService/managedClusters/srm-test",
|
|
609
|
-
"
|
|
610
|
-
"
|
|
611
|
-
"
|
|
609
|
+
"healthSourceMetricName": "cpuUsagePercentage",
|
|
610
|
+
"healthSourceMetricNamespace": "insights.container/nodes",
|
|
611
|
+
"aggregationType": "average",
|
|
612
612
|
},
|
|
613
|
-
"
|
|
614
|
-
"
|
|
615
|
-
"
|
|
613
|
+
"riskProfile": {
|
|
614
|
+
"riskCategory": "Performance_Other",
|
|
615
|
+
"thresholdTypes": ["ACT_WHEN_HIGHER"],
|
|
616
616
|
},
|
|
617
|
-
"
|
|
618
|
-
"
|
|
619
|
-
"
|
|
620
|
-
"
|
|
617
|
+
"liveMonitoringEnabled": "true",
|
|
618
|
+
"continuousVerificationEnabled": "true",
|
|
619
|
+
"sliEnabled": "false",
|
|
620
|
+
"metricThresholds": [
|
|
621
621
|
{
|
|
622
622
|
"type": "IgnoreThreshold",
|
|
623
623
|
"spec": {
|
|
@@ -626,11 +626,11 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
626
626
|
"criteria": {
|
|
627
627
|
"type": "Absolute",
|
|
628
628
|
"spec": {
|
|
629
|
-
"
|
|
629
|
+
"greaterThan": 100,
|
|
630
630
|
},
|
|
631
631
|
},
|
|
632
632
|
"metrictype": "Custom",
|
|
633
|
-
"
|
|
633
|
+
"metricName": "metric",
|
|
634
634
|
},
|
|
635
635
|
{
|
|
636
636
|
"type": "FailImmediately",
|
|
@@ -695,20 +695,20 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
695
695
|
"type": "AzureLogs",
|
|
696
696
|
"version": "v2",
|
|
697
697
|
"spec": json.dumps({
|
|
698
|
-
"
|
|
699
|
-
"
|
|
698
|
+
"connectorRef": "connectorRef",
|
|
699
|
+
"queryDefinitions": [{
|
|
700
700
|
"name": "name2",
|
|
701
701
|
"identifier": "identifier2",
|
|
702
|
-
"
|
|
702
|
+
"groupName": "g2",
|
|
703
703
|
"query": "*",
|
|
704
|
-
"
|
|
705
|
-
"
|
|
706
|
-
"
|
|
707
|
-
"
|
|
704
|
+
"queryParams": {
|
|
705
|
+
"serviceInstanceField": "Name",
|
|
706
|
+
"timeStampIdentifier": "StartedTime",
|
|
707
|
+
"messageIdentifier": "Image",
|
|
708
708
|
"index": "/subscriptions/12d2db62-5aa9-471d-84bb-faa489b3e319/resourceGroups/srm-test/providers/Microsoft.ContainerService/managedClusters/srm-test",
|
|
709
709
|
},
|
|
710
|
-
"
|
|
711
|
-
"
|
|
710
|
+
"liveMonitoringEnabled": "false",
|
|
711
|
+
"continuousVerificationEnabled": "false",
|
|
712
712
|
}],
|
|
713
713
|
}),
|
|
714
714
|
}],
|
|
@@ -733,30 +733,30 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
733
733
|
"identifier": "prometheus_metrics",
|
|
734
734
|
"type": "Prometheus",
|
|
735
735
|
"spec": json.dumps({
|
|
736
|
-
"
|
|
737
|
-
"
|
|
736
|
+
"connectorRef": "connectorRef",
|
|
737
|
+
"metricDefinitions": [{
|
|
738
738
|
"identifier": "Prometheus_Metric",
|
|
739
|
-
"
|
|
740
|
-
"
|
|
741
|
-
"
|
|
742
|
-
"
|
|
739
|
+
"metricName": "Prometheus Metric",
|
|
740
|
+
"riskProfile": {
|
|
741
|
+
"riskCategory": "Performance_Other",
|
|
742
|
+
"thresholdTypes": ["ACT_WHEN_HIGHER"],
|
|
743
743
|
},
|
|
744
744
|
"analysis": {
|
|
745
|
-
"
|
|
745
|
+
"liveMonitoring": {
|
|
746
746
|
"enabled": True,
|
|
747
747
|
},
|
|
748
|
-
"
|
|
748
|
+
"deploymentVerification": {
|
|
749
749
|
"enabled": True,
|
|
750
|
-
"
|
|
750
|
+
"serviceInstanceFieldName": "pod_name",
|
|
751
751
|
},
|
|
752
752
|
},
|
|
753
753
|
"query": "count(up{group=\\"cv\\",group=\\"cv\\"})",
|
|
754
|
-
"
|
|
755
|
-
"
|
|
754
|
+
"groupName": "met",
|
|
755
|
+
"isManualQuery": True,
|
|
756
756
|
}],
|
|
757
|
-
"
|
|
757
|
+
"metricPacks": [{
|
|
758
758
|
"identifier": "Custom",
|
|
759
|
-
"
|
|
759
|
+
"metricThresholds": [
|
|
760
760
|
{
|
|
761
761
|
"type": "IgnoreThreshold",
|
|
762
762
|
"spec": {
|
|
@@ -765,11 +765,11 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
765
765
|
"criteria": {
|
|
766
766
|
"type": "Absolute",
|
|
767
767
|
"spec": {
|
|
768
|
-
"
|
|
768
|
+
"greaterThan": 100,
|
|
769
769
|
},
|
|
770
770
|
},
|
|
771
771
|
"metrictype": "Custom",
|
|
772
|
-
"
|
|
772
|
+
"metricName": "Prometheus Metric",
|
|
773
773
|
},
|
|
774
774
|
{
|
|
775
775
|
"type": "FailImmediately",
|
|
@@ -813,29 +813,29 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
813
813
|
"identifier": "ddm",
|
|
814
814
|
"type": "DatadogMetrics",
|
|
815
815
|
"spec": json.dumps({
|
|
816
|
-
"
|
|
816
|
+
"connectorRef": "connectorRef",
|
|
817
817
|
"feature": "Datadog Cloud Metrics",
|
|
818
|
-
"
|
|
818
|
+
"metricDefinitions": [
|
|
819
819
|
{
|
|
820
|
-
"
|
|
821
|
-
"
|
|
820
|
+
"metricName": "metric",
|
|
821
|
+
"metricPath": "M1",
|
|
822
822
|
"identifier": "metric",
|
|
823
823
|
"query": \"\"\"avg:kubernetes.cpu.limits{*}.rollup(avg, 60);
|
|
824
824
|
avg:kubernetes.cpu.limits{*}.rollup(avg, 30);
|
|
825
825
|
(a+b)/10\"\"\",
|
|
826
|
-
"
|
|
827
|
-
"
|
|
828
|
-
"
|
|
829
|
-
"
|
|
830
|
-
"
|
|
826
|
+
"isManualQuery": True,
|
|
827
|
+
"isCustomCreatedMetric": True,
|
|
828
|
+
"riskProfile": {
|
|
829
|
+
"riskCategory": "Performance_Other",
|
|
830
|
+
"thresholdTypes": ["ACT_WHEN_HIGHER"],
|
|
831
831
|
},
|
|
832
832
|
"analysis": {
|
|
833
|
-
"
|
|
833
|
+
"liveMonitoring": {
|
|
834
834
|
"enabled": True,
|
|
835
835
|
},
|
|
836
|
-
"
|
|
836
|
+
"deploymentVerification": {
|
|
837
837
|
"enabled": True,
|
|
838
|
-
"
|
|
838
|
+
"serviceInstanceFieldName": "pod",
|
|
839
839
|
},
|
|
840
840
|
},
|
|
841
841
|
},
|
|
@@ -867,9 +867,9 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
867
867
|
},
|
|
868
868
|
},
|
|
869
869
|
],
|
|
870
|
-
"
|
|
870
|
+
"metricPacks": [{
|
|
871
871
|
"identifier": "Custom",
|
|
872
|
-
"
|
|
872
|
+
"metricThresholds": [
|
|
873
873
|
{
|
|
874
874
|
"type": "IgnoreThreshold",
|
|
875
875
|
"spec": {
|
|
@@ -878,11 +878,11 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
878
878
|
"criteria": {
|
|
879
879
|
"type": "Absolute",
|
|
880
880
|
"spec": {
|
|
881
|
-
"
|
|
881
|
+
"greaterThan": 100,
|
|
882
882
|
},
|
|
883
883
|
},
|
|
884
884
|
"metrictype": "Custom",
|
|
885
|
-
"
|
|
885
|
+
"metricName": "metric",
|
|
886
886
|
},
|
|
887
887
|
{
|
|
888
888
|
"type": "FailImmediately",
|
|
@@ -926,38 +926,38 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
926
926
|
"identifier": "identifier",
|
|
927
927
|
"type": "NewRelic",
|
|
928
928
|
"spec": json.dumps({
|
|
929
|
-
"
|
|
929
|
+
"connectorRef": "account.Newrelicautomation_do_not_delete",
|
|
930
930
|
"feature": "apm",
|
|
931
|
-
"
|
|
932
|
-
"
|
|
933
|
-
"
|
|
934
|
-
"
|
|
931
|
+
"applicationId": "107019083",
|
|
932
|
+
"applicationName": "My Application",
|
|
933
|
+
"metricData": {
|
|
934
|
+
"Performance": True,
|
|
935
935
|
},
|
|
936
|
-
"
|
|
936
|
+
"metricPacks": [{
|
|
937
937
|
"identifier": "Performance",
|
|
938
938
|
}],
|
|
939
|
-
"
|
|
939
|
+
"newRelicMetricDefinitions": [{
|
|
940
940
|
"identifier": "New_Relic_Metric",
|
|
941
|
-
"
|
|
942
|
-
"
|
|
943
|
-
"
|
|
944
|
-
"
|
|
941
|
+
"metricName": "New Relic Metric",
|
|
942
|
+
"riskProfile": {
|
|
943
|
+
"riskCategory": "Performance_Other",
|
|
944
|
+
"thresholdTypes": ["ACT_WHEN_HIGHER"],
|
|
945
945
|
},
|
|
946
946
|
"analysis": {
|
|
947
|
-
"
|
|
947
|
+
"deploymentVerification": {
|
|
948
948
|
"enabled": True,
|
|
949
949
|
},
|
|
950
950
|
},
|
|
951
|
-
"
|
|
951
|
+
"groupName": "group1",
|
|
952
952
|
"nrql": "SELECT count(apm.service.instance.count) FROM Metric WHERE appName LIKE 'My Application' TIMESERIES",
|
|
953
|
-
"
|
|
954
|
-
"
|
|
955
|
-
"
|
|
953
|
+
"responseMapping": {
|
|
954
|
+
"metricValueJsonPath": "$.['timeSeries'].[*].['results'].[*].['count']",
|
|
955
|
+
"timestampJsonPath": "$.['timeSeries'].[*].['beginTimeSeconds']",
|
|
956
956
|
},
|
|
957
957
|
}],
|
|
958
|
-
"
|
|
958
|
+
"metricPacks": [{
|
|
959
959
|
"identifier": "Custom",
|
|
960
|
-
"
|
|
960
|
+
"metricThresholds": [
|
|
961
961
|
{
|
|
962
962
|
"type": "IgnoreThreshold",
|
|
963
963
|
"spec": {
|
|
@@ -966,11 +966,11 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
966
966
|
"criteria": {
|
|
967
967
|
"type": "Absolute",
|
|
968
968
|
"spec": {
|
|
969
|
-
"
|
|
969
|
+
"greaterThan": 100,
|
|
970
970
|
},
|
|
971
971
|
},
|
|
972
|
-
"
|
|
973
|
-
"
|
|
972
|
+
"metricType": "Custom",
|
|
973
|
+
"metricName": "New Relic Metric",
|
|
974
974
|
},
|
|
975
975
|
{
|
|
976
976
|
"type": "FailImmediately",
|
|
@@ -1060,20 +1060,20 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1060
1060
|
"type": "ElasticSearch",
|
|
1061
1061
|
"version": "v2",
|
|
1062
1062
|
"spec": json.dumps({
|
|
1063
|
-
"
|
|
1064
|
-
"
|
|
1063
|
+
"connectorRef": "connectorRef",
|
|
1064
|
+
"queryDefinitions": [
|
|
1065
1065
|
{
|
|
1066
1066
|
"name": "error_4xx",
|
|
1067
1067
|
"identifier": "error_4xx_id",
|
|
1068
1068
|
"query": "Bad Request",
|
|
1069
1069
|
"index": "index",
|
|
1070
|
-
"
|
|
1071
|
-
"
|
|
1070
|
+
"groupName": "Logs_Group",
|
|
1071
|
+
"queryParams": {
|
|
1072
1072
|
"index": "index",
|
|
1073
|
-
"
|
|
1074
|
-
"
|
|
1075
|
-
"
|
|
1076
|
-
"
|
|
1073
|
+
"serviceInstanceField": "serviceInstanceIdentifier",
|
|
1074
|
+
"timeStampIdentifier": "timeStampIdentifier",
|
|
1075
|
+
"timeStampFormat": "timeStampFormat",
|
|
1076
|
+
"messageIdentifier": "messageIdentifier",
|
|
1077
1077
|
},
|
|
1078
1078
|
},
|
|
1079
1079
|
{
|
|
@@ -1100,8 +1100,8 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1100
1100
|
"type": "PagerDuty",
|
|
1101
1101
|
"enabled": True,
|
|
1102
1102
|
"spec": json.dumps({
|
|
1103
|
-
"
|
|
1104
|
-
"
|
|
1103
|
+
"connectorRef": "account.pd",
|
|
1104
|
+
"pagerDutyServiceId": "P0N21OB",
|
|
1105
1105
|
}),
|
|
1106
1106
|
"category": "Alert",
|
|
1107
1107
|
},
|
|
@@ -1112,8 +1112,8 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1112
1112
|
"enabled": True,
|
|
1113
1113
|
"spec": json.dumps({
|
|
1114
1114
|
"name": "FH",
|
|
1115
|
-
"
|
|
1116
|
-
"
|
|
1115
|
+
"webhookUrl": "https://harness.io/cv/api/account/sampleAcc/org/sampleOrg/project/sampleProj/webhook/custom-change?monitoredServiceIdentifier=checkout_prod&changeSourceIdentifier=FH",
|
|
1116
|
+
"webhookCurlCommand": "curl -X POST -H 'content-type: application/json' -H 'X-Api-Key: sample_api_key' --url 'https://harness.io/cv/api/account/sampleAcc/org/sampleOrg/project/sampleProj/webhook/custom-change?monitoredServiceIdentifier=checkout_prod&changeSourceIdentifier=FH' -d '{ \\"eventIdentifier\\": \\"<string>\\" (optional), \\"user\\": \\"user@harness.io\\", \\"startTime\\": timeInMs, \\"endTime\\": timeInMs, \\"eventDetail\\": { \\"description\\": \\"<String>\\", \\"changeEventDetailsLink\\": \\"urlString\\" (optional), \\"externalLinkToEntity\\": \\"urlString\\" (optional), \\"name\\": \\"changeEventName\\" } }'",
|
|
1117
1117
|
"type": "Alert",
|
|
1118
1118
|
}),
|
|
1119
1119
|
"category": "Alert",
|
|
@@ -1146,7 +1146,7 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1146
1146
|
"category": "Alert",
|
|
1147
1147
|
"spec": json.dumps({
|
|
1148
1148
|
"type": "Alert",
|
|
1149
|
-
"
|
|
1149
|
+
"authorizationToken": "abc",
|
|
1150
1150
|
}),
|
|
1151
1151
|
},
|
|
1152
1152
|
],
|
|
@@ -1182,24 +1182,24 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1182
1182
|
"type": "SumologicMetrics",
|
|
1183
1183
|
"version": "v2",
|
|
1184
1184
|
"spec": json.dumps({
|
|
1185
|
-
"
|
|
1186
|
-
"
|
|
1185
|
+
"connectorRef": "connectorRef",
|
|
1186
|
+
"queryDefinitions": [
|
|
1187
1187
|
{
|
|
1188
1188
|
"name": "metric_cpu",
|
|
1189
1189
|
"identifier": "metric_cpu",
|
|
1190
1190
|
"query": "metric=cpu",
|
|
1191
|
-
"
|
|
1192
|
-
"
|
|
1193
|
-
"
|
|
1191
|
+
"groupName": "g1",
|
|
1192
|
+
"queryParams": {
|
|
1193
|
+
"serviceInstanceField": "_sourcehost",
|
|
1194
1194
|
},
|
|
1195
|
-
"
|
|
1196
|
-
"
|
|
1197
|
-
"
|
|
1195
|
+
"riskProfile": {
|
|
1196
|
+
"riskCategory": "Performance_Other",
|
|
1197
|
+
"thresholdTypes": ["ACT_WHEN_HIGHER"],
|
|
1198
1198
|
},
|
|
1199
|
-
"
|
|
1200
|
-
"
|
|
1201
|
-
"
|
|
1202
|
-
"
|
|
1199
|
+
"liveMonitoringEnabled": "true",
|
|
1200
|
+
"continuousVerificationEnabled": "true",
|
|
1201
|
+
"sliEnabled": "false",
|
|
1202
|
+
"metricThresholds": [
|
|
1203
1203
|
{
|
|
1204
1204
|
"type": "IgnoreThreshold",
|
|
1205
1205
|
"spec": {
|
|
@@ -1208,11 +1208,11 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1208
1208
|
"criteria": {
|
|
1209
1209
|
"type": "Absolute",
|
|
1210
1210
|
"spec": {
|
|
1211
|
-
"
|
|
1211
|
+
"greaterThan": 100,
|
|
1212
1212
|
},
|
|
1213
1213
|
},
|
|
1214
|
-
"
|
|
1215
|
-
"
|
|
1214
|
+
"metricType": "Custom",
|
|
1215
|
+
"metricName": "metric_cpu",
|
|
1216
1216
|
},
|
|
1217
1217
|
{
|
|
1218
1218
|
"type": "FailImmediately",
|
|
@@ -1274,15 +1274,15 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1274
1274
|
"type": "SumologicLogs",
|
|
1275
1275
|
"version": "v2",
|
|
1276
1276
|
"spec": json.dumps({
|
|
1277
|
-
"
|
|
1278
|
-
"
|
|
1277
|
+
"connectorRef": "connectorRef",
|
|
1278
|
+
"queryDefinitions": [
|
|
1279
1279
|
{
|
|
1280
1280
|
"name": "log1",
|
|
1281
1281
|
"identifier": "log1",
|
|
1282
1282
|
"query": "*",
|
|
1283
|
-
"
|
|
1284
|
-
"
|
|
1285
|
-
"
|
|
1283
|
+
"groupName": "Logs Group",
|
|
1284
|
+
"queryParams": {
|
|
1285
|
+
"serviceInstanceField": "_sourcehost",
|
|
1286
1286
|
},
|
|
1287
1287
|
},
|
|
1288
1288
|
{
|
|
@@ -1319,23 +1319,23 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1319
1319
|
"type": "SplunkSignalFXMetrics",
|
|
1320
1320
|
"version": "v2",
|
|
1321
1321
|
"spec": json.dumps({
|
|
1322
|
-
"
|
|
1323
|
-
"
|
|
1322
|
+
"connectorRef": "connectorRef",
|
|
1323
|
+
"queryDefinitions": [
|
|
1324
1324
|
{
|
|
1325
1325
|
"name": "metric_infra_cpu",
|
|
1326
1326
|
"identifier": "metric_infra_cpu",
|
|
1327
1327
|
"query": "***",
|
|
1328
|
-
"
|
|
1329
|
-
"
|
|
1330
|
-
"
|
|
1331
|
-
"
|
|
1328
|
+
"groupName": "g",
|
|
1329
|
+
"riskProfile": {
|
|
1330
|
+
"riskCategory": "Errors",
|
|
1331
|
+
"thresholdTypes": [
|
|
1332
1332
|
"ACT_WHEN_HIGHER",
|
|
1333
1333
|
"ACT_WHEN_LOWER",
|
|
1334
1334
|
],
|
|
1335
1335
|
},
|
|
1336
|
-
"
|
|
1337
|
-
"
|
|
1338
|
-
"
|
|
1336
|
+
"liveMonitoringEnabled": "true",
|
|
1337
|
+
"continuousVerificationEnabled": "true",
|
|
1338
|
+
"sliEnabled": "false",
|
|
1339
1339
|
},
|
|
1340
1340
|
{
|
|
1341
1341
|
"name": "name2",
|
|
@@ -1408,15 +1408,15 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1408
1408
|
"type": "GrafanaLokiLogs",
|
|
1409
1409
|
"version": "v2",
|
|
1410
1410
|
"spec": json.dumps({
|
|
1411
|
-
"
|
|
1412
|
-
"
|
|
1411
|
+
"connectorRef": "connectorRef",
|
|
1412
|
+
"queryDefinitions": [
|
|
1413
1413
|
{
|
|
1414
1414
|
"name": "Demo",
|
|
1415
1415
|
"identifier": "Demo",
|
|
1416
1416
|
"query": "{job=~\\".+\\"}",
|
|
1417
|
-
"
|
|
1418
|
-
"
|
|
1419
|
-
"
|
|
1417
|
+
"groupName": "Log_Group",
|
|
1418
|
+
"queryParams": {
|
|
1419
|
+
"serviceInstanceField": "job",
|
|
1420
1420
|
},
|
|
1421
1421
|
},
|
|
1422
1422
|
{
|
|
@@ -1456,28 +1456,28 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1456
1456
|
"type": "AzureMetrics",
|
|
1457
1457
|
"version": "v2",
|
|
1458
1458
|
"spec": json.dumps({
|
|
1459
|
-
"
|
|
1460
|
-
"
|
|
1459
|
+
"connectorRef": "connectorRef",
|
|
1460
|
+
"queryDefinitions": [
|
|
1461
1461
|
{
|
|
1462
1462
|
"name": "metric",
|
|
1463
1463
|
"identifier": "metric",
|
|
1464
1464
|
"query": "default",
|
|
1465
|
-
"
|
|
1466
|
-
"
|
|
1467
|
-
"
|
|
1465
|
+
"groupName": "g1",
|
|
1466
|
+
"queryParams": {
|
|
1467
|
+
"serviceInstanceField": "host",
|
|
1468
1468
|
"index": "/subscriptions/12d2db62-5aa9-471d-84bb-faa489b3e319/resourceGroups/srm-test/providers/Microsoft.ContainerService/managedClusters/srm-test",
|
|
1469
|
-
"
|
|
1470
|
-
"
|
|
1471
|
-
"
|
|
1469
|
+
"healthSourceMetricName": "cpuUsagePercentage",
|
|
1470
|
+
"healthSourceMetricNamespace": "insights.container/nodes",
|
|
1471
|
+
"aggregationType": "average",
|
|
1472
1472
|
},
|
|
1473
|
-
"
|
|
1474
|
-
"
|
|
1475
|
-
"
|
|
1473
|
+
"riskProfile": {
|
|
1474
|
+
"riskCategory": "Performance_Other",
|
|
1475
|
+
"thresholdTypes": ["ACT_WHEN_HIGHER"],
|
|
1476
1476
|
},
|
|
1477
|
-
"
|
|
1478
|
-
"
|
|
1479
|
-
"
|
|
1480
|
-
"
|
|
1477
|
+
"liveMonitoringEnabled": "true",
|
|
1478
|
+
"continuousVerificationEnabled": "true",
|
|
1479
|
+
"sliEnabled": "false",
|
|
1480
|
+
"metricThresholds": [
|
|
1481
1481
|
{
|
|
1482
1482
|
"type": "IgnoreThreshold",
|
|
1483
1483
|
"spec": {
|
|
@@ -1486,11 +1486,11 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1486
1486
|
"criteria": {
|
|
1487
1487
|
"type": "Absolute",
|
|
1488
1488
|
"spec": {
|
|
1489
|
-
"
|
|
1489
|
+
"greaterThan": 100,
|
|
1490
1490
|
},
|
|
1491
1491
|
},
|
|
1492
1492
|
"metrictype": "Custom",
|
|
1493
|
-
"
|
|
1493
|
+
"metricName": "metric",
|
|
1494
1494
|
},
|
|
1495
1495
|
{
|
|
1496
1496
|
"type": "FailImmediately",
|
|
@@ -1555,20 +1555,20 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1555
1555
|
"type": "AzureLogs",
|
|
1556
1556
|
"version": "v2",
|
|
1557
1557
|
"spec": json.dumps({
|
|
1558
|
-
"
|
|
1559
|
-
"
|
|
1558
|
+
"connectorRef": "connectorRef",
|
|
1559
|
+
"queryDefinitions": [{
|
|
1560
1560
|
"name": "name2",
|
|
1561
1561
|
"identifier": "identifier2",
|
|
1562
|
-
"
|
|
1562
|
+
"groupName": "g2",
|
|
1563
1563
|
"query": "*",
|
|
1564
|
-
"
|
|
1565
|
-
"
|
|
1566
|
-
"
|
|
1567
|
-
"
|
|
1564
|
+
"queryParams": {
|
|
1565
|
+
"serviceInstanceField": "Name",
|
|
1566
|
+
"timeStampIdentifier": "StartedTime",
|
|
1567
|
+
"messageIdentifier": "Image",
|
|
1568
1568
|
"index": "/subscriptions/12d2db62-5aa9-471d-84bb-faa489b3e319/resourceGroups/srm-test/providers/Microsoft.ContainerService/managedClusters/srm-test",
|
|
1569
1569
|
},
|
|
1570
|
-
"
|
|
1571
|
-
"
|
|
1570
|
+
"liveMonitoringEnabled": "false",
|
|
1571
|
+
"continuousVerificationEnabled": "false",
|
|
1572
1572
|
}],
|
|
1573
1573
|
}),
|
|
1574
1574
|
}],
|
|
@@ -1593,30 +1593,30 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1593
1593
|
"identifier": "prometheus_metrics",
|
|
1594
1594
|
"type": "Prometheus",
|
|
1595
1595
|
"spec": json.dumps({
|
|
1596
|
-
"
|
|
1597
|
-
"
|
|
1596
|
+
"connectorRef": "connectorRef",
|
|
1597
|
+
"metricDefinitions": [{
|
|
1598
1598
|
"identifier": "Prometheus_Metric",
|
|
1599
|
-
"
|
|
1600
|
-
"
|
|
1601
|
-
"
|
|
1602
|
-
"
|
|
1599
|
+
"metricName": "Prometheus Metric",
|
|
1600
|
+
"riskProfile": {
|
|
1601
|
+
"riskCategory": "Performance_Other",
|
|
1602
|
+
"thresholdTypes": ["ACT_WHEN_HIGHER"],
|
|
1603
1603
|
},
|
|
1604
1604
|
"analysis": {
|
|
1605
|
-
"
|
|
1605
|
+
"liveMonitoring": {
|
|
1606
1606
|
"enabled": True,
|
|
1607
1607
|
},
|
|
1608
|
-
"
|
|
1608
|
+
"deploymentVerification": {
|
|
1609
1609
|
"enabled": True,
|
|
1610
|
-
"
|
|
1610
|
+
"serviceInstanceFieldName": "pod_name",
|
|
1611
1611
|
},
|
|
1612
1612
|
},
|
|
1613
1613
|
"query": "count(up{group=\\"cv\\",group=\\"cv\\"})",
|
|
1614
|
-
"
|
|
1615
|
-
"
|
|
1614
|
+
"groupName": "met",
|
|
1615
|
+
"isManualQuery": True,
|
|
1616
1616
|
}],
|
|
1617
|
-
"
|
|
1617
|
+
"metricPacks": [{
|
|
1618
1618
|
"identifier": "Custom",
|
|
1619
|
-
"
|
|
1619
|
+
"metricThresholds": [
|
|
1620
1620
|
{
|
|
1621
1621
|
"type": "IgnoreThreshold",
|
|
1622
1622
|
"spec": {
|
|
@@ -1625,11 +1625,11 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1625
1625
|
"criteria": {
|
|
1626
1626
|
"type": "Absolute",
|
|
1627
1627
|
"spec": {
|
|
1628
|
-
"
|
|
1628
|
+
"greaterThan": 100,
|
|
1629
1629
|
},
|
|
1630
1630
|
},
|
|
1631
1631
|
"metrictype": "Custom",
|
|
1632
|
-
"
|
|
1632
|
+
"metricName": "Prometheus Metric",
|
|
1633
1633
|
},
|
|
1634
1634
|
{
|
|
1635
1635
|
"type": "FailImmediately",
|
|
@@ -1673,29 +1673,29 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1673
1673
|
"identifier": "ddm",
|
|
1674
1674
|
"type": "DatadogMetrics",
|
|
1675
1675
|
"spec": json.dumps({
|
|
1676
|
-
"
|
|
1676
|
+
"connectorRef": "connectorRef",
|
|
1677
1677
|
"feature": "Datadog Cloud Metrics",
|
|
1678
|
-
"
|
|
1678
|
+
"metricDefinitions": [
|
|
1679
1679
|
{
|
|
1680
|
-
"
|
|
1681
|
-
"
|
|
1680
|
+
"metricName": "metric",
|
|
1681
|
+
"metricPath": "M1",
|
|
1682
1682
|
"identifier": "metric",
|
|
1683
1683
|
"query": \"\"\"avg:kubernetes.cpu.limits{*}.rollup(avg, 60);
|
|
1684
1684
|
avg:kubernetes.cpu.limits{*}.rollup(avg, 30);
|
|
1685
1685
|
(a+b)/10\"\"\",
|
|
1686
|
-
"
|
|
1687
|
-
"
|
|
1688
|
-
"
|
|
1689
|
-
"
|
|
1690
|
-
"
|
|
1686
|
+
"isManualQuery": True,
|
|
1687
|
+
"isCustomCreatedMetric": True,
|
|
1688
|
+
"riskProfile": {
|
|
1689
|
+
"riskCategory": "Performance_Other",
|
|
1690
|
+
"thresholdTypes": ["ACT_WHEN_HIGHER"],
|
|
1691
1691
|
},
|
|
1692
1692
|
"analysis": {
|
|
1693
|
-
"
|
|
1693
|
+
"liveMonitoring": {
|
|
1694
1694
|
"enabled": True,
|
|
1695
1695
|
},
|
|
1696
|
-
"
|
|
1696
|
+
"deploymentVerification": {
|
|
1697
1697
|
"enabled": True,
|
|
1698
|
-
"
|
|
1698
|
+
"serviceInstanceFieldName": "pod",
|
|
1699
1699
|
},
|
|
1700
1700
|
},
|
|
1701
1701
|
},
|
|
@@ -1727,9 +1727,9 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1727
1727
|
},
|
|
1728
1728
|
},
|
|
1729
1729
|
],
|
|
1730
|
-
"
|
|
1730
|
+
"metricPacks": [{
|
|
1731
1731
|
"identifier": "Custom",
|
|
1732
|
-
"
|
|
1732
|
+
"metricThresholds": [
|
|
1733
1733
|
{
|
|
1734
1734
|
"type": "IgnoreThreshold",
|
|
1735
1735
|
"spec": {
|
|
@@ -1738,11 +1738,11 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1738
1738
|
"criteria": {
|
|
1739
1739
|
"type": "Absolute",
|
|
1740
1740
|
"spec": {
|
|
1741
|
-
"
|
|
1741
|
+
"greaterThan": 100,
|
|
1742
1742
|
},
|
|
1743
1743
|
},
|
|
1744
1744
|
"metrictype": "Custom",
|
|
1745
|
-
"
|
|
1745
|
+
"metricName": "metric",
|
|
1746
1746
|
},
|
|
1747
1747
|
{
|
|
1748
1748
|
"type": "FailImmediately",
|
|
@@ -1786,38 +1786,38 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1786
1786
|
"identifier": "identifier",
|
|
1787
1787
|
"type": "NewRelic",
|
|
1788
1788
|
"spec": json.dumps({
|
|
1789
|
-
"
|
|
1789
|
+
"connectorRef": "account.Newrelicautomation_do_not_delete",
|
|
1790
1790
|
"feature": "apm",
|
|
1791
|
-
"
|
|
1792
|
-
"
|
|
1793
|
-
"
|
|
1794
|
-
"
|
|
1791
|
+
"applicationId": "107019083",
|
|
1792
|
+
"applicationName": "My Application",
|
|
1793
|
+
"metricData": {
|
|
1794
|
+
"Performance": True,
|
|
1795
1795
|
},
|
|
1796
|
-
"
|
|
1796
|
+
"metricPacks": [{
|
|
1797
1797
|
"identifier": "Performance",
|
|
1798
1798
|
}],
|
|
1799
|
-
"
|
|
1799
|
+
"newRelicMetricDefinitions": [{
|
|
1800
1800
|
"identifier": "New_Relic_Metric",
|
|
1801
|
-
"
|
|
1802
|
-
"
|
|
1803
|
-
"
|
|
1804
|
-
"
|
|
1801
|
+
"metricName": "New Relic Metric",
|
|
1802
|
+
"riskProfile": {
|
|
1803
|
+
"riskCategory": "Performance_Other",
|
|
1804
|
+
"thresholdTypes": ["ACT_WHEN_HIGHER"],
|
|
1805
1805
|
},
|
|
1806
1806
|
"analysis": {
|
|
1807
|
-
"
|
|
1807
|
+
"deploymentVerification": {
|
|
1808
1808
|
"enabled": True,
|
|
1809
1809
|
},
|
|
1810
1810
|
},
|
|
1811
|
-
"
|
|
1811
|
+
"groupName": "group1",
|
|
1812
1812
|
"nrql": "SELECT count(apm.service.instance.count) FROM Metric WHERE appName LIKE 'My Application' TIMESERIES",
|
|
1813
|
-
"
|
|
1814
|
-
"
|
|
1815
|
-
"
|
|
1813
|
+
"responseMapping": {
|
|
1814
|
+
"metricValueJsonPath": "$.['timeSeries'].[*].['results'].[*].['count']",
|
|
1815
|
+
"timestampJsonPath": "$.['timeSeries'].[*].['beginTimeSeconds']",
|
|
1816
1816
|
},
|
|
1817
1817
|
}],
|
|
1818
|
-
"
|
|
1818
|
+
"metricPacks": [{
|
|
1819
1819
|
"identifier": "Custom",
|
|
1820
|
-
"
|
|
1820
|
+
"metricThresholds": [
|
|
1821
1821
|
{
|
|
1822
1822
|
"type": "IgnoreThreshold",
|
|
1823
1823
|
"spec": {
|
|
@@ -1826,11 +1826,11 @@ class MonitoredService(pulumi.CustomResource):
|
|
|
1826
1826
|
"criteria": {
|
|
1827
1827
|
"type": "Absolute",
|
|
1828
1828
|
"spec": {
|
|
1829
|
-
"
|
|
1829
|
+
"greaterThan": 100,
|
|
1830
1830
|
},
|
|
1831
1831
|
},
|
|
1832
|
-
"
|
|
1833
|
-
"
|
|
1832
|
+
"metricType": "Custom",
|
|
1833
|
+
"metricName": "New Relic Metric",
|
|
1834
1834
|
},
|
|
1835
1835
|
{
|
|
1836
1836
|
"type": "FailImmediately",
|
|
@@ -236,7 +236,7 @@ class NotificationRule(pulumi.CustomResource):
|
|
|
236
236
|
"spec": json.dumps({
|
|
237
237
|
"threshold": 33,
|
|
238
238
|
"period": "30m",
|
|
239
|
-
"
|
|
239
|
+
"changeCategories": [
|
|
240
240
|
"Deployment",
|
|
241
241
|
"Infrastructure",
|
|
242
242
|
],
|
|
@@ -252,7 +252,7 @@ class NotificationRule(pulumi.CustomResource):
|
|
|
252
252
|
{
|
|
253
253
|
"type": "ChangeObserved",
|
|
254
254
|
"spec": json.dumps({
|
|
255
|
-
"
|
|
255
|
+
"changeCategories": [
|
|
256
256
|
"Deployment",
|
|
257
257
|
"Alert",
|
|
258
258
|
"ChaosExperiment",
|
|
@@ -367,7 +367,7 @@ class NotificationRule(pulumi.CustomResource):
|
|
|
367
367
|
"spec": json.dumps({
|
|
368
368
|
"threshold": 33,
|
|
369
369
|
"period": "30m",
|
|
370
|
-
"
|
|
370
|
+
"changeCategories": [
|
|
371
371
|
"Deployment",
|
|
372
372
|
"Infrastructure",
|
|
373
373
|
],
|
|
@@ -383,7 +383,7 @@ class NotificationRule(pulumi.CustomResource):
|
|
|
383
383
|
{
|
|
384
384
|
"type": "ChangeObserved",
|
|
385
385
|
"spec": json.dumps({
|
|
386
|
-
"
|
|
386
|
+
"changeCategories": [
|
|
387
387
|
"Deployment",
|
|
388
388
|
"Alert",
|
|
389
389
|
"ChaosExperiment",
|
pulumi_harness/platform/slo.py
CHANGED
|
@@ -200,15 +200,15 @@ class Slo(pulumi.CustomResource):
|
|
|
200
200
|
"spec": json.dumps({
|
|
201
201
|
"type": "Monthly",
|
|
202
202
|
"spec": {
|
|
203
|
-
"
|
|
203
|
+
"dayOfMonth": 5,
|
|
204
204
|
},
|
|
205
205
|
}),
|
|
206
206
|
},
|
|
207
207
|
"type": "Simple",
|
|
208
208
|
"spec": json.dumps({
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
"
|
|
209
|
+
"monitoredServiceRef": "monitoredServiceRef",
|
|
210
|
+
"serviceLevelIndicatorType": "Availability",
|
|
211
|
+
"serviceLevelIndicators": [{
|
|
212
212
|
"name": "name",
|
|
213
213
|
"identifier": "identifier",
|
|
214
214
|
"type": "Window",
|
|
@@ -216,10 +216,10 @@ class Slo(pulumi.CustomResource):
|
|
|
216
216
|
"type": "Threshold",
|
|
217
217
|
"spec": {
|
|
218
218
|
"metric1": "metric1",
|
|
219
|
-
"
|
|
220
|
-
"
|
|
219
|
+
"thresholdValue": 10,
|
|
220
|
+
"thresholdType": ">",
|
|
221
221
|
},
|
|
222
|
-
"
|
|
222
|
+
"sliMissingDataType": "Good",
|
|
223
223
|
},
|
|
224
224
|
}],
|
|
225
225
|
}),
|
|
@@ -299,15 +299,15 @@ class Slo(pulumi.CustomResource):
|
|
|
299
299
|
"spec": json.dumps({
|
|
300
300
|
"type": "Monthly",
|
|
301
301
|
"spec": {
|
|
302
|
-
"
|
|
302
|
+
"dayOfMonth": 5,
|
|
303
303
|
},
|
|
304
304
|
}),
|
|
305
305
|
},
|
|
306
306
|
"type": "Simple",
|
|
307
307
|
"spec": json.dumps({
|
|
308
|
-
"
|
|
309
|
-
"
|
|
310
|
-
"
|
|
308
|
+
"monitoredServiceRef": "monitoredServiceRef",
|
|
309
|
+
"serviceLevelIndicatorType": "Availability",
|
|
310
|
+
"serviceLevelIndicators": [{
|
|
311
311
|
"name": "name",
|
|
312
312
|
"identifier": "identifier",
|
|
313
313
|
"type": "Window",
|
|
@@ -315,10 +315,10 @@ class Slo(pulumi.CustomResource):
|
|
|
315
315
|
"type": "Threshold",
|
|
316
316
|
"spec": {
|
|
317
317
|
"metric1": "metric1",
|
|
318
|
-
"
|
|
319
|
-
"
|
|
318
|
+
"thresholdValue": 10,
|
|
319
|
+
"thresholdType": ">",
|
|
320
320
|
},
|
|
321
|
-
"
|
|
321
|
+
"sliMissingDataType": "Good",
|
|
322
322
|
},
|
|
323
323
|
}],
|
|
324
324
|
}),
|
{pulumi_harness-0.5.0a1730179989.dist-info → pulumi_harness-0.5.0a1730384268.dist-info}/RECORD
RENAMED
|
@@ -27,7 +27,7 @@ pulumi_harness/outputs.py,sha256=zSnE-7EcRiG_xoQGZ-pg0VqPmTBS4k2hu931VCIF4I4,127
|
|
|
27
27
|
pulumi_harness/platform_api_key.py,sha256=XQJGZWCu8z9kovotS0jB2RPqLtJUmKkcXXNE73CyNWs,24200
|
|
28
28
|
pulumi_harness/platform_ccm_filters.py,sha256=kxy__hXvfzz73396Ib4sqvY8pfyGj_h1zlUKjdYspy8,20332
|
|
29
29
|
pulumi_harness/provider.py,sha256=CSgvveG2lRJQ6JDin3Wzs5iRapg2gr6U7yDeVHocWmA,11270
|
|
30
|
-
pulumi_harness/pulumi-plugin.json,sha256=
|
|
30
|
+
pulumi_harness/pulumi-plugin.json,sha256=Y7JzDWr_XUYLxfyr7wi8KxKuPQRDFlAf9rcS5W9ZmcA,129
|
|
31
31
|
pulumi_harness/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
32
32
|
pulumi_harness/ssh_credential.py,sha256=Cf9eBWAmjZP5KKjN80drj7h3DWMOOaDs30hn4rFEpT0,18111
|
|
33
33
|
pulumi_harness/user.py,sha256=iM-jru8z8DodmCbaMtzNnO1xg9s9Q27CIKevpszXkVE,18312
|
|
@@ -225,7 +225,7 @@ pulumi_harness/platform/get_workspace.py,sha256=6Vbi3JCSAKCvOMXMGeGCWH8CxlX-heKY
|
|
|
225
225
|
pulumi_harness/platform/get_workspace_output_value.py,sha256=ljbxGcRL_dK1zHh2UK6H1vs4kcxa_CSUKZRtcbIbF-Y,6476
|
|
226
226
|
pulumi_harness/platform/git_connector.py,sha256=iZdi0YhHhAz7uZvc8T5O1ffzW_NONA0BLgWnZCRs7Os,29638
|
|
227
227
|
pulumi_harness/platform/git_ops_agent.py,sha256=cWFzY4DSDFMakbSfEZ0tLVjvVjKAyklQeUN3VJW282I,27249
|
|
228
|
-
pulumi_harness/platform/git_ops_applications.py,sha256=
|
|
228
|
+
pulumi_harness/platform/git_ops_applications.py,sha256=2FQRqB-QPLLZtk9l1gSdxmi4YDSdBgBZm7mprFzFknY,45773
|
|
229
229
|
pulumi_harness/platform/git_ops_cluster.py,sha256=hGQzHJSvzppUv2arMgBkMofiQ75wgxkXJdPu_PR8IAw,17281
|
|
230
230
|
pulumi_harness/platform/git_ops_gnupg.py,sha256=SaaWLWoxcnV_D7WzqR7y3MtOH8BPCp2KGp2zny7bdRA,17270
|
|
231
231
|
pulumi_harness/platform/git_ops_repo_cert.py,sha256=mTHS41Ywi6o_xaUlMW5rkGHvMRXQJWAf9MJPVEO0Hgg,17880
|
|
@@ -245,10 +245,10 @@ pulumi_harness/platform/jira_connector.py,sha256=FFIqQAJ6yKhySCyUBi8rmnxBu7cWcxb
|
|
|
245
245
|
pulumi_harness/platform/kubernetes_cloud_cost_connector.py,sha256=KhsFWQ41BFpIrWaYLopU-yHU_pKWTCQi1hriK6t-u68,23541
|
|
246
246
|
pulumi_harness/platform/kubernetes_connector.py,sha256=QVXiaslbBBM0ReCGcFNLWZQycTjd6lrK0zbvdx2rTlM,40933
|
|
247
247
|
pulumi_harness/platform/manual_freeze.py,sha256=Z90MPgCvKTFvf_Col9bAHDxqxkUyKpMYtW-jzefMCoE,29205
|
|
248
|
-
pulumi_harness/platform/monitored_service.py,sha256=
|
|
248
|
+
pulumi_harness/platform/monitored_service.py,sha256=dxVeoTxwhhz8u7kySkyckV4wWTf_dzsASBlxOpnIMAw,93124
|
|
249
249
|
pulumi_harness/platform/newrelic_connector.py,sha256=Uw6Ijl4y_nJZgH72LIdtlAvLTrFKgdyKRouesB6V1d0,26405
|
|
250
250
|
pulumi_harness/platform/nexus_connector.py,sha256=A4qgeDn-IC6QbHpY9I1fQF9yeX8P3ioPrCLivJwbePw,24501
|
|
251
|
-
pulumi_harness/platform/notification_rule.py,sha256=
|
|
251
|
+
pulumi_harness/platform/notification_rule.py,sha256=aw2y6UP90OehyenmrxznKjaEl3DfHwPd26P8AY7jdlk,20482
|
|
252
252
|
pulumi_harness/platform/oci_helm_connector.py,sha256=6xTx-8S34ngfgh92VcGgJalmfkJNmoQD2E6NA06vYwA,24556
|
|
253
253
|
pulumi_harness/platform/organization.py,sha256=dgpcVkEdb2_BkQ9B2bfpDb-p8Y1eW6Xnr_E4mkLseRo,12068
|
|
254
254
|
pulumi_harness/platform/outputs.py,sha256=EctIQViVhoUnZpVcyLyqdXQVV_Vo9hPfk6UXJpRuRlo,935594
|
|
@@ -273,7 +273,7 @@ pulumi_harness/platform/service.py,sha256=B1IXUoCI4rgOt9gzPZgyzbb8r90I3sKKG-pHY-
|
|
|
273
273
|
pulumi_harness/platform/service_account.py,sha256=CeYBLHtgbbAH5AyNftKf1GRb2AcYMhJAsxucGqn3yvE,20100
|
|
274
274
|
pulumi_harness/platform/service_now_connector.py,sha256=m1k4BarCIVWXqlRV6QzBKT1QnBXtVlUGCN_3HPzKku4,32106
|
|
275
275
|
pulumi_harness/platform/service_overrides_v2.py,sha256=IGHoENUg-ENcNe01fIW9i6d0qLnGQSpgwDBtFPa3tt4,35130
|
|
276
|
-
pulumi_harness/platform/slo.py,sha256=
|
|
276
|
+
pulumi_harness/platform/slo.py,sha256=OuZzBdrVB1hC0BjlV9OTXT0S-V0wsD6yEYk138ElwTY,16961
|
|
277
277
|
pulumi_harness/platform/splunk_connector.py,sha256=yF0bqgE5O5jKXut8CjlLNTT_Tjqj6Tw3lQdiEVtInoU,28236
|
|
278
278
|
pulumi_harness/platform/spot_connector.py,sha256=s7I25qv1FxF7Lj4Tf3IGNKNo2pSXqBI1WSaCNFYoeKQ,18036
|
|
279
279
|
pulumi_harness/platform/sumologic_connector.py,sha256=fIncQ_DlNAQFykG3LvowHIzG1zGIvGaVrryLiTTITxE,28279
|
|
@@ -300,7 +300,7 @@ pulumi_harness/service/outputs.py,sha256=jEI8NBaeHDnW-22YI9Yk-Sp5lvPelLoOnTBBgMZ
|
|
|
300
300
|
pulumi_harness/service/ssh.py,sha256=FULtd3EFn_0pHthZzPwpUY26LFy1k178WBTBKPC_HEc,14924
|
|
301
301
|
pulumi_harness/service/tanzu.py,sha256=AI3KuSH1y5_XPr6nxFjOIVpop_Mo4NvJbUc15ifDvT4,12965
|
|
302
302
|
pulumi_harness/service/winrm.py,sha256=a1PCzjC8jAaYzhqPKghSS_iefY04xZszjpH9Vu78Blw,15056
|
|
303
|
-
pulumi_harness-0.5.
|
|
304
|
-
pulumi_harness-0.5.
|
|
305
|
-
pulumi_harness-0.5.
|
|
306
|
-
pulumi_harness-0.5.
|
|
303
|
+
pulumi_harness-0.5.0a1730384268.dist-info/METADATA,sha256=Q1xLjaiFDrIKnFINO8OxXf2TvP_KM2bPzaRf7piH02w,1570
|
|
304
|
+
pulumi_harness-0.5.0a1730384268.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
305
|
+
pulumi_harness-0.5.0a1730384268.dist-info/top_level.txt,sha256=INN42KbPR49RnRJzIyLMbti8o6QRYA_eKubKhjPHqNk,15
|
|
306
|
+
pulumi_harness-0.5.0a1730384268.dist-info/RECORD,,
|
|
File without changes
|