generated from pulumi/pulumi-tf-provider-boilerplate
/
pulumiTypes.go
3425 lines (2779 loc) · 214 KB
/
pulumiTypes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package monitoring
import (
"context"
"reflect"
"github.com/pulumi/pulumi-oci/sdk/go/oci/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
type AlarmOverride struct {
// (Updatable) The human-readable content of the delivered alarm notification. Oracle recommends providing guidance to operators for resolving the alarm condition. Consider adding links to standard runbook practices. Avoid entering confidential information. Example: `High CPU usage alert. Follow runbook instructions for resolution.`
Body *string `pulumi:"body"`
// (Updatable) The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING". For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING".
//
// The duration is specified as a string in ISO 8601 format (`PT10M` for ten minutes or `PT1H` for one hour). Minimum: PT1M. Maximum: PT1H. Default: PT1M.
//
// Under the default value of PT1M, the first evaluation that breaches the alarm updates the state to "FIRING".
//
// The alarm updates its status to "OK" when the breaching condition has been clear for the most recent minute.
//
// Example: `PT5M`
PendingDuration *string `pulumi:"pendingDuration"`
// (Updatable) The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval depend on the specified time range. More interval values are supported for smaller time ranges. You can optionally specify dimensions and grouping functions. Supported grouping functions: `grouping()`, `groupBy()`. For information about writing MQL expressions, see [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). For details about MQL, see [Monitoring Query Language (MQL) Reference](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). For available dimensions, review the metric definition for the supported service. See [Supported Services](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices).
//
// Example of threshold alarm:
//
// ***
//
// CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.groupBy(availabilityDomain).percentile(0.9) > 85
//
// ***
//
// Example of absence alarm:
//
// ***
//
// CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent()
//
// ***
Query *string `pulumi:"query"`
// (Updatable) Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. Minimum number of characters: 3. Default value is `BASE`. For information about alarm overrides, see [AlarmOverride](https://docs.cloud.oracle.com/iaas/api/#/en/monitoring/latest/datatypes/AlarmOverride).
RuleName *string `pulumi:"ruleName"`
// (Updatable) The perceived type of response required when the alarm is in the "FIRING" state. Example: `CRITICAL`
Severity *string `pulumi:"severity"`
}
// AlarmOverrideInput is an input type that accepts AlarmOverrideArgs and AlarmOverrideOutput values.
// You can construct a concrete instance of `AlarmOverrideInput` via:
//
// AlarmOverrideArgs{...}
type AlarmOverrideInput interface {
pulumi.Input
ToAlarmOverrideOutput() AlarmOverrideOutput
ToAlarmOverrideOutputWithContext(context.Context) AlarmOverrideOutput
}
type AlarmOverrideArgs struct {
// (Updatable) The human-readable content of the delivered alarm notification. Oracle recommends providing guidance to operators for resolving the alarm condition. Consider adding links to standard runbook practices. Avoid entering confidential information. Example: `High CPU usage alert. Follow runbook instructions for resolution.`
Body pulumi.StringPtrInput `pulumi:"body"`
// (Updatable) The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING". For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING".
//
// The duration is specified as a string in ISO 8601 format (`PT10M` for ten minutes or `PT1H` for one hour). Minimum: PT1M. Maximum: PT1H. Default: PT1M.
//
// Under the default value of PT1M, the first evaluation that breaches the alarm updates the state to "FIRING".
//
// The alarm updates its status to "OK" when the breaching condition has been clear for the most recent minute.
//
// Example: `PT5M`
PendingDuration pulumi.StringPtrInput `pulumi:"pendingDuration"`
// (Updatable) The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval depend on the specified time range. More interval values are supported for smaller time ranges. You can optionally specify dimensions and grouping functions. Supported grouping functions: `grouping()`, `groupBy()`. For information about writing MQL expressions, see [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). For details about MQL, see [Monitoring Query Language (MQL) Reference](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). For available dimensions, review the metric definition for the supported service. See [Supported Services](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices).
//
// Example of threshold alarm:
//
// ***
//
// CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.groupBy(availabilityDomain).percentile(0.9) > 85
//
// ***
//
// Example of absence alarm:
//
// ***
//
// CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent()
//
// ***
Query pulumi.StringPtrInput `pulumi:"query"`
// (Updatable) Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. Minimum number of characters: 3. Default value is `BASE`. For information about alarm overrides, see [AlarmOverride](https://docs.cloud.oracle.com/iaas/api/#/en/monitoring/latest/datatypes/AlarmOverride).
RuleName pulumi.StringPtrInput `pulumi:"ruleName"`
// (Updatable) The perceived type of response required when the alarm is in the "FIRING" state. Example: `CRITICAL`
Severity pulumi.StringPtrInput `pulumi:"severity"`
}
func (AlarmOverrideArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AlarmOverride)(nil)).Elem()
}
func (i AlarmOverrideArgs) ToAlarmOverrideOutput() AlarmOverrideOutput {
return i.ToAlarmOverrideOutputWithContext(context.Background())
}
func (i AlarmOverrideArgs) ToAlarmOverrideOutputWithContext(ctx context.Context) AlarmOverrideOutput {
return pulumi.ToOutputWithContext(ctx, i).(AlarmOverrideOutput)
}
// AlarmOverrideArrayInput is an input type that accepts AlarmOverrideArray and AlarmOverrideArrayOutput values.
// You can construct a concrete instance of `AlarmOverrideArrayInput` via:
//
// AlarmOverrideArray{ AlarmOverrideArgs{...} }
type AlarmOverrideArrayInput interface {
pulumi.Input
ToAlarmOverrideArrayOutput() AlarmOverrideArrayOutput
ToAlarmOverrideArrayOutputWithContext(context.Context) AlarmOverrideArrayOutput
}
type AlarmOverrideArray []AlarmOverrideInput
func (AlarmOverrideArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]AlarmOverride)(nil)).Elem()
}
func (i AlarmOverrideArray) ToAlarmOverrideArrayOutput() AlarmOverrideArrayOutput {
return i.ToAlarmOverrideArrayOutputWithContext(context.Background())
}
func (i AlarmOverrideArray) ToAlarmOverrideArrayOutputWithContext(ctx context.Context) AlarmOverrideArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(AlarmOverrideArrayOutput)
}
type AlarmOverrideOutput struct{ *pulumi.OutputState }
func (AlarmOverrideOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AlarmOverride)(nil)).Elem()
}
func (o AlarmOverrideOutput) ToAlarmOverrideOutput() AlarmOverrideOutput {
return o
}
func (o AlarmOverrideOutput) ToAlarmOverrideOutputWithContext(ctx context.Context) AlarmOverrideOutput {
return o
}
// (Updatable) The human-readable content of the delivered alarm notification. Oracle recommends providing guidance to operators for resolving the alarm condition. Consider adding links to standard runbook practices. Avoid entering confidential information. Example: `High CPU usage alert. Follow runbook instructions for resolution.`
func (o AlarmOverrideOutput) Body() pulumi.StringPtrOutput {
return o.ApplyT(func(v AlarmOverride) *string { return v.Body }).(pulumi.StringPtrOutput)
}
// (Updatable) The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING". For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING".
//
// The duration is specified as a string in ISO 8601 format (`PT10M` for ten minutes or `PT1H` for one hour). Minimum: PT1M. Maximum: PT1H. Default: PT1M.
//
// Under the default value of PT1M, the first evaluation that breaches the alarm updates the state to "FIRING".
//
// The alarm updates its status to "OK" when the breaching condition has been clear for the most recent minute.
//
// Example: `PT5M`
func (o AlarmOverrideOutput) PendingDuration() pulumi.StringPtrOutput {
return o.ApplyT(func(v AlarmOverride) *string { return v.PendingDuration }).(pulumi.StringPtrOutput)
}
// (Updatable) The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval depend on the specified time range. More interval values are supported for smaller time ranges. You can optionally specify dimensions and grouping functions. Supported grouping functions: `grouping()`, `groupBy()`. For information about writing MQL expressions, see [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). For details about MQL, see [Monitoring Query Language (MQL) Reference](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). For available dimensions, review the metric definition for the supported service. See [Supported Services](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices).
//
// Example of threshold alarm:
//
// ***
//
// CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.groupBy(availabilityDomain).percentile(0.9) > 85
//
// ***
//
// Example of absence alarm:
//
// ***
//
// CpuUtilization[1m]{availabilityDomain="cumS:PHX-AD-1"}.absent()
//
// ***
func (o AlarmOverrideOutput) Query() pulumi.StringPtrOutput {
return o.ApplyT(func(v AlarmOverride) *string { return v.Query }).(pulumi.StringPtrOutput)
}
// (Updatable) Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. Minimum number of characters: 3. Default value is `BASE`. For information about alarm overrides, see [AlarmOverride](https://docs.cloud.oracle.com/iaas/api/#/en/monitoring/latest/datatypes/AlarmOverride).
func (o AlarmOverrideOutput) RuleName() pulumi.StringPtrOutput {
return o.ApplyT(func(v AlarmOverride) *string { return v.RuleName }).(pulumi.StringPtrOutput)
}
// (Updatable) The perceived type of response required when the alarm is in the "FIRING" state. Example: `CRITICAL`
func (o AlarmOverrideOutput) Severity() pulumi.StringPtrOutput {
return o.ApplyT(func(v AlarmOverride) *string { return v.Severity }).(pulumi.StringPtrOutput)
}
type AlarmOverrideArrayOutput struct{ *pulumi.OutputState }
func (AlarmOverrideArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]AlarmOverride)(nil)).Elem()
}
func (o AlarmOverrideArrayOutput) ToAlarmOverrideArrayOutput() AlarmOverrideArrayOutput {
return o
}
func (o AlarmOverrideArrayOutput) ToAlarmOverrideArrayOutputWithContext(ctx context.Context) AlarmOverrideArrayOutput {
return o
}
func (o AlarmOverrideArrayOutput) Index(i pulumi.IntInput) AlarmOverrideOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) AlarmOverride {
return vs[0].([]AlarmOverride)[vs[1].(int)]
}).(AlarmOverrideOutput)
}
type AlarmSuppressionType struct {
// (Updatable) Human-readable reason for suppressing alarm notifications. It does not have to be unique, and it's changeable. Avoid entering confidential information.
//
// Oracle recommends including tracking information for the event or associated work, such as a ticket number.
//
// Example: `Planned outage due to change IT-1234.`
Description *string `pulumi:"description"`
// (Updatable) The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: `2023-02-01T01:02:29.600Z`
TimeSuppressFrom string `pulumi:"timeSuppressFrom"`
// (Updatable) The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: `2023-02-01T02:02:29.600Z`
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
TimeSuppressUntil string `pulumi:"timeSuppressUntil"`
}
// AlarmSuppressionTypeInput is an input type that accepts AlarmSuppressionTypeArgs and AlarmSuppressionTypeOutput values.
// You can construct a concrete instance of `AlarmSuppressionTypeInput` via:
//
// AlarmSuppressionTypeArgs{...}
type AlarmSuppressionTypeInput interface {
pulumi.Input
ToAlarmSuppressionTypeOutput() AlarmSuppressionTypeOutput
ToAlarmSuppressionTypeOutputWithContext(context.Context) AlarmSuppressionTypeOutput
}
type AlarmSuppressionTypeArgs struct {
// (Updatable) Human-readable reason for suppressing alarm notifications. It does not have to be unique, and it's changeable. Avoid entering confidential information.
//
// Oracle recommends including tracking information for the event or associated work, such as a ticket number.
//
// Example: `Planned outage due to change IT-1234.`
Description pulumi.StringPtrInput `pulumi:"description"`
// (Updatable) The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: `2023-02-01T01:02:29.600Z`
TimeSuppressFrom pulumi.StringInput `pulumi:"timeSuppressFrom"`
// (Updatable) The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: `2023-02-01T02:02:29.600Z`
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
TimeSuppressUntil pulumi.StringInput `pulumi:"timeSuppressUntil"`
}
func (AlarmSuppressionTypeArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AlarmSuppressionType)(nil)).Elem()
}
func (i AlarmSuppressionTypeArgs) ToAlarmSuppressionTypeOutput() AlarmSuppressionTypeOutput {
return i.ToAlarmSuppressionTypeOutputWithContext(context.Background())
}
func (i AlarmSuppressionTypeArgs) ToAlarmSuppressionTypeOutputWithContext(ctx context.Context) AlarmSuppressionTypeOutput {
return pulumi.ToOutputWithContext(ctx, i).(AlarmSuppressionTypeOutput)
}
func (i AlarmSuppressionTypeArgs) ToAlarmSuppressionTypePtrOutput() AlarmSuppressionTypePtrOutput {
return i.ToAlarmSuppressionTypePtrOutputWithContext(context.Background())
}
func (i AlarmSuppressionTypeArgs) ToAlarmSuppressionTypePtrOutputWithContext(ctx context.Context) AlarmSuppressionTypePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(AlarmSuppressionTypeOutput).ToAlarmSuppressionTypePtrOutputWithContext(ctx)
}
// AlarmSuppressionTypePtrInput is an input type that accepts AlarmSuppressionTypeArgs, AlarmSuppressionTypePtr and AlarmSuppressionTypePtrOutput values.
// You can construct a concrete instance of `AlarmSuppressionTypePtrInput` via:
//
// AlarmSuppressionTypeArgs{...}
//
// or:
//
// nil
type AlarmSuppressionTypePtrInput interface {
pulumi.Input
ToAlarmSuppressionTypePtrOutput() AlarmSuppressionTypePtrOutput
ToAlarmSuppressionTypePtrOutputWithContext(context.Context) AlarmSuppressionTypePtrOutput
}
type alarmSuppressionTypePtrType AlarmSuppressionTypeArgs
func AlarmSuppressionTypePtr(v *AlarmSuppressionTypeArgs) AlarmSuppressionTypePtrInput {
return (*alarmSuppressionTypePtrType)(v)
}
func (*alarmSuppressionTypePtrType) ElementType() reflect.Type {
return reflect.TypeOf((**AlarmSuppressionType)(nil)).Elem()
}
func (i *alarmSuppressionTypePtrType) ToAlarmSuppressionTypePtrOutput() AlarmSuppressionTypePtrOutput {
return i.ToAlarmSuppressionTypePtrOutputWithContext(context.Background())
}
func (i *alarmSuppressionTypePtrType) ToAlarmSuppressionTypePtrOutputWithContext(ctx context.Context) AlarmSuppressionTypePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(AlarmSuppressionTypePtrOutput)
}
type AlarmSuppressionTypeOutput struct{ *pulumi.OutputState }
func (AlarmSuppressionTypeOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AlarmSuppressionType)(nil)).Elem()
}
func (o AlarmSuppressionTypeOutput) ToAlarmSuppressionTypeOutput() AlarmSuppressionTypeOutput {
return o
}
func (o AlarmSuppressionTypeOutput) ToAlarmSuppressionTypeOutputWithContext(ctx context.Context) AlarmSuppressionTypeOutput {
return o
}
func (o AlarmSuppressionTypeOutput) ToAlarmSuppressionTypePtrOutput() AlarmSuppressionTypePtrOutput {
return o.ToAlarmSuppressionTypePtrOutputWithContext(context.Background())
}
func (o AlarmSuppressionTypeOutput) ToAlarmSuppressionTypePtrOutputWithContext(ctx context.Context) AlarmSuppressionTypePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v AlarmSuppressionType) *AlarmSuppressionType {
return &v
}).(AlarmSuppressionTypePtrOutput)
}
// (Updatable) Human-readable reason for suppressing alarm notifications. It does not have to be unique, and it's changeable. Avoid entering confidential information.
//
// Oracle recommends including tracking information for the event or associated work, such as a ticket number.
//
// Example: `Planned outage due to change IT-1234.`
func (o AlarmSuppressionTypeOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v AlarmSuppressionType) *string { return v.Description }).(pulumi.StringPtrOutput)
}
// (Updatable) The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: `2023-02-01T01:02:29.600Z`
func (o AlarmSuppressionTypeOutput) TimeSuppressFrom() pulumi.StringOutput {
return o.ApplyT(func(v AlarmSuppressionType) string { return v.TimeSuppressFrom }).(pulumi.StringOutput)
}
// (Updatable) The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: `2023-02-01T02:02:29.600Z`
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
func (o AlarmSuppressionTypeOutput) TimeSuppressUntil() pulumi.StringOutput {
return o.ApplyT(func(v AlarmSuppressionType) string { return v.TimeSuppressUntil }).(pulumi.StringOutput)
}
type AlarmSuppressionTypePtrOutput struct{ *pulumi.OutputState }
func (AlarmSuppressionTypePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**AlarmSuppressionType)(nil)).Elem()
}
func (o AlarmSuppressionTypePtrOutput) ToAlarmSuppressionTypePtrOutput() AlarmSuppressionTypePtrOutput {
return o
}
func (o AlarmSuppressionTypePtrOutput) ToAlarmSuppressionTypePtrOutputWithContext(ctx context.Context) AlarmSuppressionTypePtrOutput {
return o
}
func (o AlarmSuppressionTypePtrOutput) Elem() AlarmSuppressionTypeOutput {
return o.ApplyT(func(v *AlarmSuppressionType) AlarmSuppressionType {
if v != nil {
return *v
}
var ret AlarmSuppressionType
return ret
}).(AlarmSuppressionTypeOutput)
}
// (Updatable) Human-readable reason for suppressing alarm notifications. It does not have to be unique, and it's changeable. Avoid entering confidential information.
//
// Oracle recommends including tracking information for the event or associated work, such as a ticket number.
//
// Example: `Planned outage due to change IT-1234.`
func (o AlarmSuppressionTypePtrOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v *AlarmSuppressionType) *string {
if v == nil {
return nil
}
return v.Description
}).(pulumi.StringPtrOutput)
}
// (Updatable) The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: `2023-02-01T01:02:29.600Z`
func (o AlarmSuppressionTypePtrOutput) TimeSuppressFrom() pulumi.StringPtrOutput {
return o.ApplyT(func(v *AlarmSuppressionType) *string {
if v == nil {
return nil
}
return &v.TimeSuppressFrom
}).(pulumi.StringPtrOutput)
}
// (Updatable) The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: `2023-02-01T02:02:29.600Z`
//
// ** IMPORTANT **
// Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
func (o AlarmSuppressionTypePtrOutput) TimeSuppressUntil() pulumi.StringPtrOutput {
return o.ApplyT(func(v *AlarmSuppressionType) *string {
if v == nil {
return nil
}
return &v.TimeSuppressUntil
}).(pulumi.StringPtrOutput)
}
type AlarmSuppressionAlarmSuppressionTarget struct {
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression.
AlarmId string `pulumi:"alarmId"`
// The type of the alarm suppression target.
TargetType string `pulumi:"targetType"`
}
// AlarmSuppressionAlarmSuppressionTargetInput is an input type that accepts AlarmSuppressionAlarmSuppressionTargetArgs and AlarmSuppressionAlarmSuppressionTargetOutput values.
// You can construct a concrete instance of `AlarmSuppressionAlarmSuppressionTargetInput` via:
//
// AlarmSuppressionAlarmSuppressionTargetArgs{...}
type AlarmSuppressionAlarmSuppressionTargetInput interface {
pulumi.Input
ToAlarmSuppressionAlarmSuppressionTargetOutput() AlarmSuppressionAlarmSuppressionTargetOutput
ToAlarmSuppressionAlarmSuppressionTargetOutputWithContext(context.Context) AlarmSuppressionAlarmSuppressionTargetOutput
}
type AlarmSuppressionAlarmSuppressionTargetArgs struct {
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression.
AlarmId pulumi.StringInput `pulumi:"alarmId"`
// The type of the alarm suppression target.
TargetType pulumi.StringInput `pulumi:"targetType"`
}
func (AlarmSuppressionAlarmSuppressionTargetArgs) ElementType() reflect.Type {
return reflect.TypeOf((*AlarmSuppressionAlarmSuppressionTarget)(nil)).Elem()
}
func (i AlarmSuppressionAlarmSuppressionTargetArgs) ToAlarmSuppressionAlarmSuppressionTargetOutput() AlarmSuppressionAlarmSuppressionTargetOutput {
return i.ToAlarmSuppressionAlarmSuppressionTargetOutputWithContext(context.Background())
}
func (i AlarmSuppressionAlarmSuppressionTargetArgs) ToAlarmSuppressionAlarmSuppressionTargetOutputWithContext(ctx context.Context) AlarmSuppressionAlarmSuppressionTargetOutput {
return pulumi.ToOutputWithContext(ctx, i).(AlarmSuppressionAlarmSuppressionTargetOutput)
}
func (i AlarmSuppressionAlarmSuppressionTargetArgs) ToAlarmSuppressionAlarmSuppressionTargetPtrOutput() AlarmSuppressionAlarmSuppressionTargetPtrOutput {
return i.ToAlarmSuppressionAlarmSuppressionTargetPtrOutputWithContext(context.Background())
}
func (i AlarmSuppressionAlarmSuppressionTargetArgs) ToAlarmSuppressionAlarmSuppressionTargetPtrOutputWithContext(ctx context.Context) AlarmSuppressionAlarmSuppressionTargetPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(AlarmSuppressionAlarmSuppressionTargetOutput).ToAlarmSuppressionAlarmSuppressionTargetPtrOutputWithContext(ctx)
}
// AlarmSuppressionAlarmSuppressionTargetPtrInput is an input type that accepts AlarmSuppressionAlarmSuppressionTargetArgs, AlarmSuppressionAlarmSuppressionTargetPtr and AlarmSuppressionAlarmSuppressionTargetPtrOutput values.
// You can construct a concrete instance of `AlarmSuppressionAlarmSuppressionTargetPtrInput` via:
//
// AlarmSuppressionAlarmSuppressionTargetArgs{...}
//
// or:
//
// nil
type AlarmSuppressionAlarmSuppressionTargetPtrInput interface {
pulumi.Input
ToAlarmSuppressionAlarmSuppressionTargetPtrOutput() AlarmSuppressionAlarmSuppressionTargetPtrOutput
ToAlarmSuppressionAlarmSuppressionTargetPtrOutputWithContext(context.Context) AlarmSuppressionAlarmSuppressionTargetPtrOutput
}
type alarmSuppressionAlarmSuppressionTargetPtrType AlarmSuppressionAlarmSuppressionTargetArgs
func AlarmSuppressionAlarmSuppressionTargetPtr(v *AlarmSuppressionAlarmSuppressionTargetArgs) AlarmSuppressionAlarmSuppressionTargetPtrInput {
return (*alarmSuppressionAlarmSuppressionTargetPtrType)(v)
}
func (*alarmSuppressionAlarmSuppressionTargetPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**AlarmSuppressionAlarmSuppressionTarget)(nil)).Elem()
}
func (i *alarmSuppressionAlarmSuppressionTargetPtrType) ToAlarmSuppressionAlarmSuppressionTargetPtrOutput() AlarmSuppressionAlarmSuppressionTargetPtrOutput {
return i.ToAlarmSuppressionAlarmSuppressionTargetPtrOutputWithContext(context.Background())
}
func (i *alarmSuppressionAlarmSuppressionTargetPtrType) ToAlarmSuppressionAlarmSuppressionTargetPtrOutputWithContext(ctx context.Context) AlarmSuppressionAlarmSuppressionTargetPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(AlarmSuppressionAlarmSuppressionTargetPtrOutput)
}
type AlarmSuppressionAlarmSuppressionTargetOutput struct{ *pulumi.OutputState }
func (AlarmSuppressionAlarmSuppressionTargetOutput) ElementType() reflect.Type {
return reflect.TypeOf((*AlarmSuppressionAlarmSuppressionTarget)(nil)).Elem()
}
func (o AlarmSuppressionAlarmSuppressionTargetOutput) ToAlarmSuppressionAlarmSuppressionTargetOutput() AlarmSuppressionAlarmSuppressionTargetOutput {
return o
}
func (o AlarmSuppressionAlarmSuppressionTargetOutput) ToAlarmSuppressionAlarmSuppressionTargetOutputWithContext(ctx context.Context) AlarmSuppressionAlarmSuppressionTargetOutput {
return o
}
func (o AlarmSuppressionAlarmSuppressionTargetOutput) ToAlarmSuppressionAlarmSuppressionTargetPtrOutput() AlarmSuppressionAlarmSuppressionTargetPtrOutput {
return o.ToAlarmSuppressionAlarmSuppressionTargetPtrOutputWithContext(context.Background())
}
func (o AlarmSuppressionAlarmSuppressionTargetOutput) ToAlarmSuppressionAlarmSuppressionTargetPtrOutputWithContext(ctx context.Context) AlarmSuppressionAlarmSuppressionTargetPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v AlarmSuppressionAlarmSuppressionTarget) *AlarmSuppressionAlarmSuppressionTarget {
return &v
}).(AlarmSuppressionAlarmSuppressionTargetPtrOutput)
}
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression.
func (o AlarmSuppressionAlarmSuppressionTargetOutput) AlarmId() pulumi.StringOutput {
return o.ApplyT(func(v AlarmSuppressionAlarmSuppressionTarget) string { return v.AlarmId }).(pulumi.StringOutput)
}
// The type of the alarm suppression target.
func (o AlarmSuppressionAlarmSuppressionTargetOutput) TargetType() pulumi.StringOutput {
return o.ApplyT(func(v AlarmSuppressionAlarmSuppressionTarget) string { return v.TargetType }).(pulumi.StringOutput)
}
type AlarmSuppressionAlarmSuppressionTargetPtrOutput struct{ *pulumi.OutputState }
func (AlarmSuppressionAlarmSuppressionTargetPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**AlarmSuppressionAlarmSuppressionTarget)(nil)).Elem()
}
func (o AlarmSuppressionAlarmSuppressionTargetPtrOutput) ToAlarmSuppressionAlarmSuppressionTargetPtrOutput() AlarmSuppressionAlarmSuppressionTargetPtrOutput {
return o
}
func (o AlarmSuppressionAlarmSuppressionTargetPtrOutput) ToAlarmSuppressionAlarmSuppressionTargetPtrOutputWithContext(ctx context.Context) AlarmSuppressionAlarmSuppressionTargetPtrOutput {
return o
}
func (o AlarmSuppressionAlarmSuppressionTargetPtrOutput) Elem() AlarmSuppressionAlarmSuppressionTargetOutput {
return o.ApplyT(func(v *AlarmSuppressionAlarmSuppressionTarget) AlarmSuppressionAlarmSuppressionTarget {
if v != nil {
return *v
}
var ret AlarmSuppressionAlarmSuppressionTarget
return ret
}).(AlarmSuppressionAlarmSuppressionTargetOutput)
}
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm that is the target of the alarm suppression.
func (o AlarmSuppressionAlarmSuppressionTargetPtrOutput) AlarmId() pulumi.StringPtrOutput {
return o.ApplyT(func(v *AlarmSuppressionAlarmSuppressionTarget) *string {
if v == nil {
return nil
}
return &v.AlarmId
}).(pulumi.StringPtrOutput)
}
// The type of the alarm suppression target.
func (o AlarmSuppressionAlarmSuppressionTargetPtrOutput) TargetType() pulumi.StringPtrOutput {
return o.ApplyT(func(v *AlarmSuppressionAlarmSuppressionTarget) *string {
if v == nil {
return nil
}
return &v.TargetType
}).(pulumi.StringPtrOutput)
}
type GetAlarmHistoryCollectionEntry struct {
// Description for this alarm history entry.
Summary string `pulumi:"summary"`
// Timestamp for this alarm history entry. Format defined by RFC3339. Example: `2023-02-01T01:02:29.600Z`
Timestamp string `pulumi:"timestamp"`
// Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing. Available for state transition entries only. Note: A three-minute lag for this value accounts for any late-arriving metrics. Example: `2023-02-01T0:59:00.789Z`
TimestampTriggered string `pulumi:"timestampTriggered"`
}
// GetAlarmHistoryCollectionEntryInput is an input type that accepts GetAlarmHistoryCollectionEntryArgs and GetAlarmHistoryCollectionEntryOutput values.
// You can construct a concrete instance of `GetAlarmHistoryCollectionEntryInput` via:
//
// GetAlarmHistoryCollectionEntryArgs{...}
type GetAlarmHistoryCollectionEntryInput interface {
pulumi.Input
ToGetAlarmHistoryCollectionEntryOutput() GetAlarmHistoryCollectionEntryOutput
ToGetAlarmHistoryCollectionEntryOutputWithContext(context.Context) GetAlarmHistoryCollectionEntryOutput
}
type GetAlarmHistoryCollectionEntryArgs struct {
// Description for this alarm history entry.
Summary pulumi.StringInput `pulumi:"summary"`
// Timestamp for this alarm history entry. Format defined by RFC3339. Example: `2023-02-01T01:02:29.600Z`
Timestamp pulumi.StringInput `pulumi:"timestamp"`
// Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing. Available for state transition entries only. Note: A three-minute lag for this value accounts for any late-arriving metrics. Example: `2023-02-01T0:59:00.789Z`
TimestampTriggered pulumi.StringInput `pulumi:"timestampTriggered"`
}
func (GetAlarmHistoryCollectionEntryArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetAlarmHistoryCollectionEntry)(nil)).Elem()
}
func (i GetAlarmHistoryCollectionEntryArgs) ToGetAlarmHistoryCollectionEntryOutput() GetAlarmHistoryCollectionEntryOutput {
return i.ToGetAlarmHistoryCollectionEntryOutputWithContext(context.Background())
}
func (i GetAlarmHistoryCollectionEntryArgs) ToGetAlarmHistoryCollectionEntryOutputWithContext(ctx context.Context) GetAlarmHistoryCollectionEntryOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetAlarmHistoryCollectionEntryOutput)
}
// GetAlarmHistoryCollectionEntryArrayInput is an input type that accepts GetAlarmHistoryCollectionEntryArray and GetAlarmHistoryCollectionEntryArrayOutput values.
// You can construct a concrete instance of `GetAlarmHistoryCollectionEntryArrayInput` via:
//
// GetAlarmHistoryCollectionEntryArray{ GetAlarmHistoryCollectionEntryArgs{...} }
type GetAlarmHistoryCollectionEntryArrayInput interface {
pulumi.Input
ToGetAlarmHistoryCollectionEntryArrayOutput() GetAlarmHistoryCollectionEntryArrayOutput
ToGetAlarmHistoryCollectionEntryArrayOutputWithContext(context.Context) GetAlarmHistoryCollectionEntryArrayOutput
}
type GetAlarmHistoryCollectionEntryArray []GetAlarmHistoryCollectionEntryInput
func (GetAlarmHistoryCollectionEntryArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetAlarmHistoryCollectionEntry)(nil)).Elem()
}
func (i GetAlarmHistoryCollectionEntryArray) ToGetAlarmHistoryCollectionEntryArrayOutput() GetAlarmHistoryCollectionEntryArrayOutput {
return i.ToGetAlarmHistoryCollectionEntryArrayOutputWithContext(context.Background())
}
func (i GetAlarmHistoryCollectionEntryArray) ToGetAlarmHistoryCollectionEntryArrayOutputWithContext(ctx context.Context) GetAlarmHistoryCollectionEntryArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetAlarmHistoryCollectionEntryArrayOutput)
}
type GetAlarmHistoryCollectionEntryOutput struct{ *pulumi.OutputState }
func (GetAlarmHistoryCollectionEntryOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetAlarmHistoryCollectionEntry)(nil)).Elem()
}
func (o GetAlarmHistoryCollectionEntryOutput) ToGetAlarmHistoryCollectionEntryOutput() GetAlarmHistoryCollectionEntryOutput {
return o
}
func (o GetAlarmHistoryCollectionEntryOutput) ToGetAlarmHistoryCollectionEntryOutputWithContext(ctx context.Context) GetAlarmHistoryCollectionEntryOutput {
return o
}
// Description for this alarm history entry.
func (o GetAlarmHistoryCollectionEntryOutput) Summary() pulumi.StringOutput {
return o.ApplyT(func(v GetAlarmHistoryCollectionEntry) string { return v.Summary }).(pulumi.StringOutput)
}
// Timestamp for this alarm history entry. Format defined by RFC3339. Example: `2023-02-01T01:02:29.600Z`
func (o GetAlarmHistoryCollectionEntryOutput) Timestamp() pulumi.StringOutput {
return o.ApplyT(func(v GetAlarmHistoryCollectionEntry) string { return v.Timestamp }).(pulumi.StringOutput)
}
// Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing. Available for state transition entries only. Note: A three-minute lag for this value accounts for any late-arriving metrics. Example: `2023-02-01T0:59:00.789Z`
func (o GetAlarmHistoryCollectionEntryOutput) TimestampTriggered() pulumi.StringOutput {
return o.ApplyT(func(v GetAlarmHistoryCollectionEntry) string { return v.TimestampTriggered }).(pulumi.StringOutput)
}
type GetAlarmHistoryCollectionEntryArrayOutput struct{ *pulumi.OutputState }
func (GetAlarmHistoryCollectionEntryArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetAlarmHistoryCollectionEntry)(nil)).Elem()
}
func (o GetAlarmHistoryCollectionEntryArrayOutput) ToGetAlarmHistoryCollectionEntryArrayOutput() GetAlarmHistoryCollectionEntryArrayOutput {
return o
}
func (o GetAlarmHistoryCollectionEntryArrayOutput) ToGetAlarmHistoryCollectionEntryArrayOutputWithContext(ctx context.Context) GetAlarmHistoryCollectionEntryArrayOutput {
return o
}
func (o GetAlarmHistoryCollectionEntryArrayOutput) Index(i pulumi.IntInput) GetAlarmHistoryCollectionEntryOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetAlarmHistoryCollectionEntry {
return vs[0].([]GetAlarmHistoryCollectionEntry)[vs[1].(int)]
}).(GetAlarmHistoryCollectionEntryOutput)
}
type GetAlarmOverride struct {
// The human-readable content of the delivered alarm notification. Oracle recommends providing guidance to operators for resolving the alarm condition. Consider adding links to standard runbook practices. Avoid entering confidential information. Example: `High CPU usage alert. Follow runbook instructions for resolution.`
Body string `pulumi:"body"`
// The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING". For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING".
PendingDuration string `pulumi:"pendingDuration"`
// The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval depend on the specified time range. More interval values are supported for smaller time ranges. You can optionally specify dimensions and grouping functions. Supported grouping functions: `grouping()`, `groupBy()`. For information about writing MQL expressions, see [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). For details about MQL, see [Monitoring Query Language (MQL) Reference](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). For available dimensions, review the metric definition for the supported service. See [Supported Services](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices).
Query string `pulumi:"query"`
// Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. Minimum number of characters: 3. Default value is `BASE`. For information about alarm overrides, see [AlarmOverride](https://docs.cloud.oracle.com/iaas/api/#/en/monitoring/latest/datatypes/AlarmOverride).
RuleName string `pulumi:"ruleName"`
// The perceived type of response required when the alarm is in the "FIRING" state. Example: `CRITICAL`
Severity string `pulumi:"severity"`
}
// GetAlarmOverrideInput is an input type that accepts GetAlarmOverrideArgs and GetAlarmOverrideOutput values.
// You can construct a concrete instance of `GetAlarmOverrideInput` via:
//
// GetAlarmOverrideArgs{...}
type GetAlarmOverrideInput interface {
pulumi.Input
ToGetAlarmOverrideOutput() GetAlarmOverrideOutput
ToGetAlarmOverrideOutputWithContext(context.Context) GetAlarmOverrideOutput
}
type GetAlarmOverrideArgs struct {
// The human-readable content of the delivered alarm notification. Oracle recommends providing guidance to operators for resolving the alarm condition. Consider adding links to standard runbook practices. Avoid entering confidential information. Example: `High CPU usage alert. Follow runbook instructions for resolution.`
Body pulumi.StringInput `pulumi:"body"`
// The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING". For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING".
PendingDuration pulumi.StringInput `pulumi:"pendingDuration"`
// The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval depend on the specified time range. More interval values are supported for smaller time ranges. You can optionally specify dimensions and grouping functions. Supported grouping functions: `grouping()`, `groupBy()`. For information about writing MQL expressions, see [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). For details about MQL, see [Monitoring Query Language (MQL) Reference](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). For available dimensions, review the metric definition for the supported service. See [Supported Services](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices).
Query pulumi.StringInput `pulumi:"query"`
// Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. Minimum number of characters: 3. Default value is `BASE`. For information about alarm overrides, see [AlarmOverride](https://docs.cloud.oracle.com/iaas/api/#/en/monitoring/latest/datatypes/AlarmOverride).
RuleName pulumi.StringInput `pulumi:"ruleName"`
// The perceived type of response required when the alarm is in the "FIRING" state. Example: `CRITICAL`
Severity pulumi.StringInput `pulumi:"severity"`
}
func (GetAlarmOverrideArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetAlarmOverride)(nil)).Elem()
}
func (i GetAlarmOverrideArgs) ToGetAlarmOverrideOutput() GetAlarmOverrideOutput {
return i.ToGetAlarmOverrideOutputWithContext(context.Background())
}
func (i GetAlarmOverrideArgs) ToGetAlarmOverrideOutputWithContext(ctx context.Context) GetAlarmOverrideOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetAlarmOverrideOutput)
}
// GetAlarmOverrideArrayInput is an input type that accepts GetAlarmOverrideArray and GetAlarmOverrideArrayOutput values.
// You can construct a concrete instance of `GetAlarmOverrideArrayInput` via:
//
// GetAlarmOverrideArray{ GetAlarmOverrideArgs{...} }
type GetAlarmOverrideArrayInput interface {
pulumi.Input
ToGetAlarmOverrideArrayOutput() GetAlarmOverrideArrayOutput
ToGetAlarmOverrideArrayOutputWithContext(context.Context) GetAlarmOverrideArrayOutput
}
type GetAlarmOverrideArray []GetAlarmOverrideInput
func (GetAlarmOverrideArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetAlarmOverride)(nil)).Elem()
}
func (i GetAlarmOverrideArray) ToGetAlarmOverrideArrayOutput() GetAlarmOverrideArrayOutput {
return i.ToGetAlarmOverrideArrayOutputWithContext(context.Background())
}
func (i GetAlarmOverrideArray) ToGetAlarmOverrideArrayOutputWithContext(ctx context.Context) GetAlarmOverrideArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetAlarmOverrideArrayOutput)
}
type GetAlarmOverrideOutput struct{ *pulumi.OutputState }
func (GetAlarmOverrideOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetAlarmOverride)(nil)).Elem()
}
func (o GetAlarmOverrideOutput) ToGetAlarmOverrideOutput() GetAlarmOverrideOutput {
return o
}
func (o GetAlarmOverrideOutput) ToGetAlarmOverrideOutputWithContext(ctx context.Context) GetAlarmOverrideOutput {
return o
}
// The human-readable content of the delivered alarm notification. Oracle recommends providing guidance to operators for resolving the alarm condition. Consider adding links to standard runbook practices. Avoid entering confidential information. Example: `High CPU usage alert. Follow runbook instructions for resolution.`
func (o GetAlarmOverrideOutput) Body() pulumi.StringOutput {
return o.ApplyT(func(v GetAlarmOverride) string { return v.Body }).(pulumi.StringOutput)
}
// The period of time that the condition defined in the alarm must persist before the alarm state changes from "OK" to "FIRING". For example, a value of 5 minutes means that the alarm must persist in breaching the condition for five minutes before the alarm updates its state to "FIRING".
func (o GetAlarmOverrideOutput) PendingDuration() pulumi.StringOutput {
return o.ApplyT(func(v GetAlarmOverride) string { return v.PendingDuration }).(pulumi.StringOutput)
}
// The Monitoring Query Language (MQL) expression to evaluate for the alarm. The Alarms feature of the Monitoring service interprets results for each returned time series as Boolean values, where zero represents false and a non-zero value represents true. A true value means that the trigger rule condition has been met. The query must specify a metric, statistic, interval, and trigger rule (threshold or absence). Supported values for interval depend on the specified time range. More interval values are supported for smaller time ranges. You can optionally specify dimensions and grouping functions. Supported grouping functions: `grouping()`, `groupBy()`. For information about writing MQL expressions, see [Editing the MQL Expression for a Query](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Tasks/query-metric-mql.htm). For details about MQL, see [Monitoring Query Language (MQL) Reference](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Reference/mql.htm). For available dimensions, review the metric definition for the supported service. See [Supported Services](https://docs.cloud.oracle.com/iaas/Content/Monitoring/Concepts/monitoringoverview.htm#SupportedServices).
func (o GetAlarmOverrideOutput) Query() pulumi.StringOutput {
return o.ApplyT(func(v GetAlarmOverride) string { return v.Query }).(pulumi.StringOutput)
}
// Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. Minimum number of characters: 3. Default value is `BASE`. For information about alarm overrides, see [AlarmOverride](https://docs.cloud.oracle.com/iaas/api/#/en/monitoring/latest/datatypes/AlarmOverride).
func (o GetAlarmOverrideOutput) RuleName() pulumi.StringOutput {
return o.ApplyT(func(v GetAlarmOverride) string { return v.RuleName }).(pulumi.StringOutput)
}
// The perceived type of response required when the alarm is in the "FIRING" state. Example: `CRITICAL`
func (o GetAlarmOverrideOutput) Severity() pulumi.StringOutput {
return o.ApplyT(func(v GetAlarmOverride) string { return v.Severity }).(pulumi.StringOutput)
}
type GetAlarmOverrideArrayOutput struct{ *pulumi.OutputState }
func (GetAlarmOverrideArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetAlarmOverride)(nil)).Elem()
}
func (o GetAlarmOverrideArrayOutput) ToGetAlarmOverrideArrayOutput() GetAlarmOverrideArrayOutput {
return o
}
func (o GetAlarmOverrideArrayOutput) ToGetAlarmOverrideArrayOutputWithContext(ctx context.Context) GetAlarmOverrideArrayOutput {
return o
}
func (o GetAlarmOverrideArrayOutput) Index(i pulumi.IntInput) GetAlarmOverrideOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetAlarmOverride {
return vs[0].([]GetAlarmOverride)[vs[1].(int)]
}).(GetAlarmOverrideOutput)
}
type GetAlarmStatusesAlarmStatus struct {
// A filter to return only resources that match the given display name exactly. Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation.
DisplayName string `pulumi:"displayName"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm.
Id string `pulumi:"id"`
// Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. Minimum number of characters: 3. Default value is `BASE`. For information about alarm overrides, see [AlarmOverride](https://docs.cloud.oracle.com/iaas/api/#/en/monitoring/latest/datatypes/AlarmOverride).
RuleName string `pulumi:"ruleName"`
// The perceived type of response required when the alarm is in the "FIRING" state. Example: `CRITICAL`
Severity string `pulumi:"severity"`
// The status of the metric stream to use for alarm filtering. For example, set `StatusQueryParam` to "FIRING" to filter results to metric streams of the alarm with that status. Default behaviour is to return alarms irrespective of metric streams' status. Example: `FIRING`
Status string `pulumi:"status"`
// The configuration details for suppressing an alarm.
Suppressions []GetAlarmStatusesAlarmStatusSuppression `pulumi:"suppressions"`
// Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing. Note: A three-minute lag for this value accounts for any late-arriving metrics. Example: `2023-02-01T01:02:29.600Z`
TimestampTriggered string `pulumi:"timestampTriggered"`
}
// GetAlarmStatusesAlarmStatusInput is an input type that accepts GetAlarmStatusesAlarmStatusArgs and GetAlarmStatusesAlarmStatusOutput values.
// You can construct a concrete instance of `GetAlarmStatusesAlarmStatusInput` via:
//
// GetAlarmStatusesAlarmStatusArgs{...}
type GetAlarmStatusesAlarmStatusInput interface {
pulumi.Input
ToGetAlarmStatusesAlarmStatusOutput() GetAlarmStatusesAlarmStatusOutput
ToGetAlarmStatusesAlarmStatusOutputWithContext(context.Context) GetAlarmStatusesAlarmStatusOutput
}
type GetAlarmStatusesAlarmStatusArgs struct {
// A filter to return only resources that match the given display name exactly. Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation.
DisplayName pulumi.StringInput `pulumi:"displayName"`
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm.
Id pulumi.StringInput `pulumi:"id"`
// Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. Minimum number of characters: 3. Default value is `BASE`. For information about alarm overrides, see [AlarmOverride](https://docs.cloud.oracle.com/iaas/api/#/en/monitoring/latest/datatypes/AlarmOverride).
RuleName pulumi.StringInput `pulumi:"ruleName"`
// The perceived type of response required when the alarm is in the "FIRING" state. Example: `CRITICAL`
Severity pulumi.StringInput `pulumi:"severity"`
// The status of the metric stream to use for alarm filtering. For example, set `StatusQueryParam` to "FIRING" to filter results to metric streams of the alarm with that status. Default behaviour is to return alarms irrespective of metric streams' status. Example: `FIRING`
Status pulumi.StringInput `pulumi:"status"`
// The configuration details for suppressing an alarm.
Suppressions GetAlarmStatusesAlarmStatusSuppressionArrayInput `pulumi:"suppressions"`
// Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing. Note: A three-minute lag for this value accounts for any late-arriving metrics. Example: `2023-02-01T01:02:29.600Z`
TimestampTriggered pulumi.StringInput `pulumi:"timestampTriggered"`
}
func (GetAlarmStatusesAlarmStatusArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GetAlarmStatusesAlarmStatus)(nil)).Elem()
}
func (i GetAlarmStatusesAlarmStatusArgs) ToGetAlarmStatusesAlarmStatusOutput() GetAlarmStatusesAlarmStatusOutput {
return i.ToGetAlarmStatusesAlarmStatusOutputWithContext(context.Background())
}
func (i GetAlarmStatusesAlarmStatusArgs) ToGetAlarmStatusesAlarmStatusOutputWithContext(ctx context.Context) GetAlarmStatusesAlarmStatusOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetAlarmStatusesAlarmStatusOutput)
}
// GetAlarmStatusesAlarmStatusArrayInput is an input type that accepts GetAlarmStatusesAlarmStatusArray and GetAlarmStatusesAlarmStatusArrayOutput values.
// You can construct a concrete instance of `GetAlarmStatusesAlarmStatusArrayInput` via:
//
// GetAlarmStatusesAlarmStatusArray{ GetAlarmStatusesAlarmStatusArgs{...} }
type GetAlarmStatusesAlarmStatusArrayInput interface {
pulumi.Input
ToGetAlarmStatusesAlarmStatusArrayOutput() GetAlarmStatusesAlarmStatusArrayOutput
ToGetAlarmStatusesAlarmStatusArrayOutputWithContext(context.Context) GetAlarmStatusesAlarmStatusArrayOutput
}
type GetAlarmStatusesAlarmStatusArray []GetAlarmStatusesAlarmStatusInput
func (GetAlarmStatusesAlarmStatusArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetAlarmStatusesAlarmStatus)(nil)).Elem()
}
func (i GetAlarmStatusesAlarmStatusArray) ToGetAlarmStatusesAlarmStatusArrayOutput() GetAlarmStatusesAlarmStatusArrayOutput {
return i.ToGetAlarmStatusesAlarmStatusArrayOutputWithContext(context.Background())
}
func (i GetAlarmStatusesAlarmStatusArray) ToGetAlarmStatusesAlarmStatusArrayOutputWithContext(ctx context.Context) GetAlarmStatusesAlarmStatusArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GetAlarmStatusesAlarmStatusArrayOutput)
}
type GetAlarmStatusesAlarmStatusOutput struct{ *pulumi.OutputState }
func (GetAlarmStatusesAlarmStatusOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GetAlarmStatusesAlarmStatus)(nil)).Elem()
}
func (o GetAlarmStatusesAlarmStatusOutput) ToGetAlarmStatusesAlarmStatusOutput() GetAlarmStatusesAlarmStatusOutput {
return o
}
func (o GetAlarmStatusesAlarmStatusOutput) ToGetAlarmStatusesAlarmStatusOutputWithContext(ctx context.Context) GetAlarmStatusesAlarmStatusOutput {
return o
}
// A filter to return only resources that match the given display name exactly. Use this filter to list an alarm by name. Alternatively, when you know the alarm OCID, use the GetAlarm operation.
func (o GetAlarmStatusesAlarmStatusOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v GetAlarmStatusesAlarmStatus) string { return v.DisplayName }).(pulumi.StringOutput)
}
// The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the alarm.
func (o GetAlarmStatusesAlarmStatusOutput) Id() pulumi.StringOutput {
return o.ApplyT(func(v GetAlarmStatusesAlarmStatus) string { return v.Id }).(pulumi.StringOutput)
}
// Identifier of the alarm's base values for alarm evaluation, for use when the alarm contains overrides. A valid ruleName value starts with an alphabetic character and includes only alphanumeric characters, underscores and square brackets. Minimum number of characters: 3. Default value is `BASE`. For information about alarm overrides, see [AlarmOverride](https://docs.cloud.oracle.com/iaas/api/#/en/monitoring/latest/datatypes/AlarmOverride).
func (o GetAlarmStatusesAlarmStatusOutput) RuleName() pulumi.StringOutput {
return o.ApplyT(func(v GetAlarmStatusesAlarmStatus) string { return v.RuleName }).(pulumi.StringOutput)
}
// The perceived type of response required when the alarm is in the "FIRING" state. Example: `CRITICAL`
func (o GetAlarmStatusesAlarmStatusOutput) Severity() pulumi.StringOutput {
return o.ApplyT(func(v GetAlarmStatusesAlarmStatus) string { return v.Severity }).(pulumi.StringOutput)
}
// The status of the metric stream to use for alarm filtering. For example, set `StatusQueryParam` to "FIRING" to filter results to metric streams of the alarm with that status. Default behaviour is to return alarms irrespective of metric streams' status. Example: `FIRING`
func (o GetAlarmStatusesAlarmStatusOutput) Status() pulumi.StringOutput {
return o.ApplyT(func(v GetAlarmStatusesAlarmStatus) string { return v.Status }).(pulumi.StringOutput)
}
// The configuration details for suppressing an alarm.
func (o GetAlarmStatusesAlarmStatusOutput) Suppressions() GetAlarmStatusesAlarmStatusSuppressionArrayOutput {
return o.ApplyT(func(v GetAlarmStatusesAlarmStatus) []GetAlarmStatusesAlarmStatusSuppression { return v.Suppressions }).(GetAlarmStatusesAlarmStatusSuppressionArrayOutput)
}
// Timestamp for the transition of the alarm state. For example, the time when the alarm transitioned from OK to Firing. Note: A three-minute lag for this value accounts for any late-arriving metrics. Example: `2023-02-01T01:02:29.600Z`
func (o GetAlarmStatusesAlarmStatusOutput) TimestampTriggered() pulumi.StringOutput {
return o.ApplyT(func(v GetAlarmStatusesAlarmStatus) string { return v.TimestampTriggered }).(pulumi.StringOutput)
}
type GetAlarmStatusesAlarmStatusArrayOutput struct{ *pulumi.OutputState }
func (GetAlarmStatusesAlarmStatusArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GetAlarmStatusesAlarmStatus)(nil)).Elem()
}
func (o GetAlarmStatusesAlarmStatusArrayOutput) ToGetAlarmStatusesAlarmStatusArrayOutput() GetAlarmStatusesAlarmStatusArrayOutput {
return o
}
func (o GetAlarmStatusesAlarmStatusArrayOutput) ToGetAlarmStatusesAlarmStatusArrayOutputWithContext(ctx context.Context) GetAlarmStatusesAlarmStatusArrayOutput {
return o
}
func (o GetAlarmStatusesAlarmStatusArrayOutput) Index(i pulumi.IntInput) GetAlarmStatusesAlarmStatusOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetAlarmStatusesAlarmStatus {
return vs[0].([]GetAlarmStatusesAlarmStatus)[vs[1].(int)]
}).(GetAlarmStatusesAlarmStatusOutput)
}
type GetAlarmStatusesAlarmStatusSuppression struct {
// Human-readable reason for suppressing alarm notifications. It does not have to be unique, and it's changeable. Avoid entering confidential information.
Description string `pulumi:"description"`
// The start date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: `2023-02-01T01:02:29.600Z`
TimeSuppressFrom string `pulumi:"timeSuppressFrom"`
// The end date and time for the suppression to take place, inclusive. Format defined by RFC3339. Example: `2023-02-01T02:02:29.600Z`
TimeSuppressUntil string `pulumi:"timeSuppressUntil"`
}
// GetAlarmStatusesAlarmStatusSuppressionInput is an input type that accepts GetAlarmStatusesAlarmStatusSuppressionArgs and GetAlarmStatusesAlarmStatusSuppressionOutput values.
// You can construct a concrete instance of `GetAlarmStatusesAlarmStatusSuppressionInput` via:
//
// GetAlarmStatusesAlarmStatusSuppressionArgs{...}
type GetAlarmStatusesAlarmStatusSuppressionInput interface {
pulumi.Input
ToGetAlarmStatusesAlarmStatusSuppressionOutput() GetAlarmStatusesAlarmStatusSuppressionOutput
ToGetAlarmStatusesAlarmStatusSuppressionOutputWithContext(context.Context) GetAlarmStatusesAlarmStatusSuppressionOutput
}
type GetAlarmStatusesAlarmStatusSuppressionArgs struct {
// Human-readable reason for suppressing alarm notifications. It does not have to be unique, and it's changeable. Avoid entering confidential information.