diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index 589268e6..3e1ad720 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -1.3.0 \ No newline at end of file +1.5.0 \ No newline at end of file diff --git a/patches/0001-fork.patch b/patches/0001-fork.patch index a78f214d..c313cf92 100644 --- a/patches/0001-fork.patch +++ b/patches/0001-fork.patch @@ -411,7 +411,7 @@ index 8b4329c..a88de6a 100644 [3]:https://help.sumologic.com/03Send-Data/Sources/02Sources-for-Hosted-Collectors/Amazon-Web-Services/AWS-Metadata-(Tag)-Source -[4]:https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs#common-source-properties diff --git a/website/docs/r/monitor.html.markdown b/website/docs/r/monitor.html.markdown -index 8a20e27..62eebed 100644 +index 054e4c0..48e3245 100644 --- a/website/docs/r/monitor.html.markdown +++ b/website/docs/r/monitor.html.markdown @@ -35,10 +35,17 @@ resource "sumologic_role" "tf_test_role_02" { @@ -432,7 +432,7 @@ index 8a20e27..62eebed 100644 content_type = "Monitor" monitor_type = "Logs" evaluation_delay = "5m" -@@ -107,10 +114,17 @@ resource "sumologic_monitor" "tf_logs_monitor_1" { +@@ -108,10 +115,17 @@ resource "sumologic_monitor" "tf_logs_monitor_1" { ```hcl resource "sumologic_monitor" "tf_metrics_monitor_1" { @@ -450,7 +450,7 @@ index 8a20e27..62eebed 100644 content_type = "Monitor" monitor_type = "Metrics" evaluation_delay = "1m" -@@ -240,7 +254,11 @@ resource "sumologic_monitor" "tf_slo_monitor_2" { +@@ -241,7 +255,11 @@ resource "sumologic_monitor" "tf_slo_monitor_2" { ```hcl resource "sumologic_monitor_folder" "tf_monitor_folder_1" { @@ -462,7 +462,7 @@ index 8a20e27..62eebed 100644 description = "A folder for Monitors" } -@@ -262,11 +280,19 @@ JSON +@@ -263,11 +281,19 @@ JSON } resource "sumologic_monitor" "tf_logs_monitor_2" { @@ -482,7 +482,7 @@ index 8a20e27..62eebed 100644 content_type = "Monitor" monitor_type = "Logs" tags = { -@@ -417,7 +443,18 @@ resource "sumologic_monitor" "tf_example_metrics_anomaly_monitor" { +@@ -419,7 +445,18 @@ resource "sumologic_monitor" "tf_example_metrics_anomaly_monitor" { ## Monitor Folders diff --git a/provider/cmd/pulumi-resource-sumologic/schema.json b/provider/cmd/pulumi-resource-sumologic/schema.json index 484d88ef..14440276 100644 --- a/provider/cmd/pulumi-resource-sumologic/schema.json +++ b/provider/cmd/pulumi-resource-sumologic/schema.json @@ -13386,6 +13386,9 @@ "detectionMethod": { "type": "string" }, + "frequency": { + "type": "string" + }, "minDataPoints": { "type": "integer" }, @@ -13413,10 +13416,14 @@ } }, "type": "object", + "required": [ + "timeRange" + ], "language": { "nodejs": { "requiredOutputs": [ - "minDataPoints" + "minDataPoints", + "timeRange" ] } } @@ -13497,6 +13504,9 @@ }, "sumologic:index/MonitorTriggerConditionsLogsMissingDataCondition:MonitorTriggerConditionsLogsMissingDataCondition": { "properties": { + "frequency": { + "type": "string" + }, "timeRange": { "type": "string" } @@ -13570,6 +13580,9 @@ "alert": { "$ref": "#/types/sumologic:index/MonitorTriggerConditionsLogsStaticConditionCriticalAlert:MonitorTriggerConditionsLogsStaticConditionCriticalAlert" }, + "frequency": { + "type": "string" + }, "resolution": { "$ref": "#/types/sumologic:index/MonitorTriggerConditionsLogsStaticConditionCriticalResolution:MonitorTriggerConditionsLogsStaticConditionCriticalResolution" }, @@ -13615,6 +13628,9 @@ "alert": { "$ref": "#/types/sumologic:index/MonitorTriggerConditionsLogsStaticConditionWarningAlert:MonitorTriggerConditionsLogsStaticConditionWarningAlert" }, + "frequency": { + "type": "string" + }, "resolution": { "$ref": "#/types/sumologic:index/MonitorTriggerConditionsLogsStaticConditionWarningResolution:MonitorTriggerConditionsLogsStaticConditionWarningResolution" }, diff --git a/sdk/dotnet/Inputs/MonitorTriggerArgs.cs b/sdk/dotnet/Inputs/MonitorTriggerArgs.cs index aaa9f20e..8a2dd7e2 100644 --- a/sdk/dotnet/Inputs/MonitorTriggerArgs.cs +++ b/sdk/dotnet/Inputs/MonitorTriggerArgs.cs @@ -15,6 +15,9 @@ public sealed class MonitorTriggerArgs : global::Pulumi.ResourceArgs [Input("detectionMethod")] public Input? DetectionMethod { get; set; } + [Input("frequency")] + public Input? Frequency { get; set; } + [Input("minDataPoints")] public Input? MinDataPoints { get; set; } @@ -33,8 +36,8 @@ public sealed class MonitorTriggerArgs : global::Pulumi.ResourceArgs [Input("thresholdType")] public Input? ThresholdType { get; set; } - [Input("timeRange")] - public Input? TimeRange { get; set; } + [Input("timeRange", required: true)] + public Input TimeRange { get; set; } = null!; [Input("triggerSource")] public Input? TriggerSource { get; set; } diff --git a/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsMissingDataConditionArgs.cs b/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsMissingDataConditionArgs.cs index 09cf952c..c7f21613 100644 --- a/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsMissingDataConditionArgs.cs +++ b/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsMissingDataConditionArgs.cs @@ -12,6 +12,9 @@ namespace Pulumi.SumoLogic.Inputs public sealed class MonitorTriggerConditionsLogsMissingDataConditionArgs : global::Pulumi.ResourceArgs { + [Input("frequency")] + public Input? Frequency { get; set; } + [Input("timeRange", required: true)] public Input TimeRange { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsMissingDataConditionGetArgs.cs b/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsMissingDataConditionGetArgs.cs index 257b0707..71fc8a2a 100644 --- a/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsMissingDataConditionGetArgs.cs +++ b/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsMissingDataConditionGetArgs.cs @@ -12,6 +12,9 @@ namespace Pulumi.SumoLogic.Inputs public sealed class MonitorTriggerConditionsLogsMissingDataConditionGetArgs : global::Pulumi.ResourceArgs { + [Input("frequency")] + public Input? Frequency { get; set; } + [Input("timeRange", required: true)] public Input TimeRange { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsStaticConditionCriticalArgs.cs b/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsStaticConditionCriticalArgs.cs index 48584b63..96c8a185 100644 --- a/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsStaticConditionCriticalArgs.cs +++ b/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsStaticConditionCriticalArgs.cs @@ -15,6 +15,9 @@ public sealed class MonitorTriggerConditionsLogsStaticConditionCriticalArgs : gl [Input("alert", required: true)] public Input Alert { get; set; } = null!; + [Input("frequency")] + public Input? Frequency { get; set; } + [Input("resolution", required: true)] public Input Resolution { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsStaticConditionCriticalGetArgs.cs b/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsStaticConditionCriticalGetArgs.cs index 3d8a02a3..e74b7eaf 100644 --- a/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsStaticConditionCriticalGetArgs.cs +++ b/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsStaticConditionCriticalGetArgs.cs @@ -15,6 +15,9 @@ public sealed class MonitorTriggerConditionsLogsStaticConditionCriticalGetArgs : [Input("alert", required: true)] public Input Alert { get; set; } = null!; + [Input("frequency")] + public Input? Frequency { get; set; } + [Input("resolution", required: true)] public Input Resolution { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsStaticConditionWarningArgs.cs b/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsStaticConditionWarningArgs.cs index b473f802..311b4dbf 100644 --- a/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsStaticConditionWarningArgs.cs +++ b/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsStaticConditionWarningArgs.cs @@ -15,6 +15,9 @@ public sealed class MonitorTriggerConditionsLogsStaticConditionWarningArgs : glo [Input("alert", required: true)] public Input Alert { get; set; } = null!; + [Input("frequency")] + public Input? Frequency { get; set; } + [Input("resolution", required: true)] public Input Resolution { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsStaticConditionWarningGetArgs.cs b/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsStaticConditionWarningGetArgs.cs index 2971925d..1f9cb486 100644 --- a/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsStaticConditionWarningGetArgs.cs +++ b/sdk/dotnet/Inputs/MonitorTriggerConditionsLogsStaticConditionWarningGetArgs.cs @@ -15,6 +15,9 @@ public sealed class MonitorTriggerConditionsLogsStaticConditionWarningGetArgs : [Input("alert", required: true)] public Input Alert { get; set; } = null!; + [Input("frequency")] + public Input? Frequency { get; set; } + [Input("resolution", required: true)] public Input Resolution { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/MonitorTriggerGetArgs.cs b/sdk/dotnet/Inputs/MonitorTriggerGetArgs.cs index bfa47a74..4d2b3aaa 100644 --- a/sdk/dotnet/Inputs/MonitorTriggerGetArgs.cs +++ b/sdk/dotnet/Inputs/MonitorTriggerGetArgs.cs @@ -15,6 +15,9 @@ public sealed class MonitorTriggerGetArgs : global::Pulumi.ResourceArgs [Input("detectionMethod")] public Input? DetectionMethod { get; set; } + [Input("frequency")] + public Input? Frequency { get; set; } + [Input("minDataPoints")] public Input? MinDataPoints { get; set; } @@ -33,8 +36,8 @@ public sealed class MonitorTriggerGetArgs : global::Pulumi.ResourceArgs [Input("thresholdType")] public Input? ThresholdType { get; set; } - [Input("timeRange")] - public Input? TimeRange { get; set; } + [Input("timeRange", required: true)] + public Input TimeRange { get; set; } = null!; [Input("triggerSource")] public Input? TriggerSource { get; set; } diff --git a/sdk/dotnet/Outputs/MonitorTrigger.cs b/sdk/dotnet/Outputs/MonitorTrigger.cs index ea825662..4fc6d673 100644 --- a/sdk/dotnet/Outputs/MonitorTrigger.cs +++ b/sdk/dotnet/Outputs/MonitorTrigger.cs @@ -14,6 +14,7 @@ namespace Pulumi.SumoLogic.Outputs public sealed class MonitorTrigger { public readonly string? DetectionMethod; + public readonly string? Frequency; public readonly int? MinDataPoints; public readonly string? OccurrenceType; /// @@ -22,7 +23,7 @@ public sealed class MonitorTrigger public readonly string? ResolutionWindow; public readonly double? Threshold; public readonly string? ThresholdType; - public readonly string? TimeRange; + public readonly string TimeRange; public readonly string? TriggerSource; public readonly string? TriggerType; @@ -30,6 +31,8 @@ public sealed class MonitorTrigger private MonitorTrigger( string? detectionMethod, + string? frequency, + int? minDataPoints, string? occurrenceType, @@ -40,13 +43,14 @@ private MonitorTrigger( string? thresholdType, - string? timeRange, + string timeRange, string? triggerSource, string? triggerType) { DetectionMethod = detectionMethod; + Frequency = frequency; MinDataPoints = minDataPoints; OccurrenceType = occurrenceType; ResolutionWindow = resolutionWindow; diff --git a/sdk/dotnet/Outputs/MonitorTriggerConditionsLogsMissingDataCondition.cs b/sdk/dotnet/Outputs/MonitorTriggerConditionsLogsMissingDataCondition.cs index 0a97995c..c00cb4a5 100644 --- a/sdk/dotnet/Outputs/MonitorTriggerConditionsLogsMissingDataCondition.cs +++ b/sdk/dotnet/Outputs/MonitorTriggerConditionsLogsMissingDataCondition.cs @@ -13,11 +13,16 @@ namespace Pulumi.SumoLogic.Outputs [OutputType] public sealed class MonitorTriggerConditionsLogsMissingDataCondition { + public readonly string? Frequency; public readonly string TimeRange; [OutputConstructor] - private MonitorTriggerConditionsLogsMissingDataCondition(string timeRange) + private MonitorTriggerConditionsLogsMissingDataCondition( + string? frequency, + + string timeRange) { + Frequency = frequency; TimeRange = timeRange; } } diff --git a/sdk/dotnet/Outputs/MonitorTriggerConditionsLogsStaticConditionCritical.cs b/sdk/dotnet/Outputs/MonitorTriggerConditionsLogsStaticConditionCritical.cs index c7cee953..ed30f9a2 100644 --- a/sdk/dotnet/Outputs/MonitorTriggerConditionsLogsStaticConditionCritical.cs +++ b/sdk/dotnet/Outputs/MonitorTriggerConditionsLogsStaticConditionCritical.cs @@ -14,6 +14,7 @@ namespace Pulumi.SumoLogic.Outputs public sealed class MonitorTriggerConditionsLogsStaticConditionCritical { public readonly Outputs.MonitorTriggerConditionsLogsStaticConditionCriticalAlert Alert; + public readonly string? Frequency; public readonly Outputs.MonitorTriggerConditionsLogsStaticConditionCriticalResolution Resolution; public readonly string TimeRange; @@ -21,11 +22,14 @@ public sealed class MonitorTriggerConditionsLogsStaticConditionCritical private MonitorTriggerConditionsLogsStaticConditionCritical( Outputs.MonitorTriggerConditionsLogsStaticConditionCriticalAlert alert, + string? frequency, + Outputs.MonitorTriggerConditionsLogsStaticConditionCriticalResolution resolution, string timeRange) { Alert = alert; + Frequency = frequency; Resolution = resolution; TimeRange = timeRange; } diff --git a/sdk/dotnet/Outputs/MonitorTriggerConditionsLogsStaticConditionWarning.cs b/sdk/dotnet/Outputs/MonitorTriggerConditionsLogsStaticConditionWarning.cs index 9f6b33b6..71a0aa6b 100644 --- a/sdk/dotnet/Outputs/MonitorTriggerConditionsLogsStaticConditionWarning.cs +++ b/sdk/dotnet/Outputs/MonitorTriggerConditionsLogsStaticConditionWarning.cs @@ -14,6 +14,7 @@ namespace Pulumi.SumoLogic.Outputs public sealed class MonitorTriggerConditionsLogsStaticConditionWarning { public readonly Outputs.MonitorTriggerConditionsLogsStaticConditionWarningAlert Alert; + public readonly string? Frequency; public readonly Outputs.MonitorTriggerConditionsLogsStaticConditionWarningResolution Resolution; public readonly string TimeRange; @@ -21,11 +22,14 @@ public sealed class MonitorTriggerConditionsLogsStaticConditionWarning private MonitorTriggerConditionsLogsStaticConditionWarning( Outputs.MonitorTriggerConditionsLogsStaticConditionWarningAlert alert, + string? frequency, + Outputs.MonitorTriggerConditionsLogsStaticConditionWarningResolution resolution, string timeRange) { Alert = alert; + Frequency = frequency; Resolution = resolution; TimeRange = timeRange; } diff --git a/sdk/go/sumologic/pulumiTypes1.go b/sdk/go/sumologic/pulumiTypes1.go index f4ce85d5..3f71484d 100644 --- a/sdk/go/sumologic/pulumiTypes1.go +++ b/sdk/go/sumologic/pulumiTypes1.go @@ -20851,13 +20851,14 @@ func (o MonitorQueryArrayOutput) Index(i pulumi.IntInput) MonitorQueryOutput { type MonitorTrigger struct { DetectionMethod *string `pulumi:"detectionMethod"` + Frequency *string `pulumi:"frequency"` MinDataPoints *int `pulumi:"minDataPoints"` OccurrenceType *string `pulumi:"occurrenceType"` // The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used. ResolutionWindow *string `pulumi:"resolutionWindow"` Threshold *float64 `pulumi:"threshold"` ThresholdType *string `pulumi:"thresholdType"` - TimeRange *string `pulumi:"timeRange"` + TimeRange string `pulumi:"timeRange"` TriggerSource *string `pulumi:"triggerSource"` TriggerType *string `pulumi:"triggerType"` } @@ -20875,13 +20876,14 @@ type MonitorTriggerInput interface { type MonitorTriggerArgs struct { DetectionMethod pulumi.StringPtrInput `pulumi:"detectionMethod"` + Frequency pulumi.StringPtrInput `pulumi:"frequency"` MinDataPoints pulumi.IntPtrInput `pulumi:"minDataPoints"` OccurrenceType pulumi.StringPtrInput `pulumi:"occurrenceType"` // The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used. ResolutionWindow pulumi.StringPtrInput `pulumi:"resolutionWindow"` Threshold pulumi.Float64PtrInput `pulumi:"threshold"` ThresholdType pulumi.StringPtrInput `pulumi:"thresholdType"` - TimeRange pulumi.StringPtrInput `pulumi:"timeRange"` + TimeRange pulumi.StringInput `pulumi:"timeRange"` TriggerSource pulumi.StringPtrInput `pulumi:"triggerSource"` TriggerType pulumi.StringPtrInput `pulumi:"triggerType"` } @@ -20941,6 +20943,10 @@ func (o MonitorTriggerOutput) DetectionMethod() pulumi.StringPtrOutput { return o.ApplyT(func(v MonitorTrigger) *string { return v.DetectionMethod }).(pulumi.StringPtrOutput) } +func (o MonitorTriggerOutput) Frequency() pulumi.StringPtrOutput { + return o.ApplyT(func(v MonitorTrigger) *string { return v.Frequency }).(pulumi.StringPtrOutput) +} + func (o MonitorTriggerOutput) MinDataPoints() pulumi.IntPtrOutput { return o.ApplyT(func(v MonitorTrigger) *int { return v.MinDataPoints }).(pulumi.IntPtrOutput) } @@ -20962,8 +20968,8 @@ func (o MonitorTriggerOutput) ThresholdType() pulumi.StringPtrOutput { return o.ApplyT(func(v MonitorTrigger) *string { return v.ThresholdType }).(pulumi.StringPtrOutput) } -func (o MonitorTriggerOutput) TimeRange() pulumi.StringPtrOutput { - return o.ApplyT(func(v MonitorTrigger) *string { return v.TimeRange }).(pulumi.StringPtrOutput) +func (o MonitorTriggerOutput) TimeRange() pulumi.StringOutput { + return o.ApplyT(func(v MonitorTrigger) string { return v.TimeRange }).(pulumi.StringOutput) } func (o MonitorTriggerOutput) TriggerSource() pulumi.StringPtrOutput { @@ -21624,7 +21630,8 @@ func (o MonitorTriggerConditionsLogsAnomalyConditionCriticalPtrOutput) TimeRange } type MonitorTriggerConditionsLogsMissingDataCondition struct { - TimeRange string `pulumi:"timeRange"` + Frequency *string `pulumi:"frequency"` + TimeRange string `pulumi:"timeRange"` } // MonitorTriggerConditionsLogsMissingDataConditionInput is an input type that accepts MonitorTriggerConditionsLogsMissingDataConditionArgs and MonitorTriggerConditionsLogsMissingDataConditionOutput values. @@ -21639,7 +21646,8 @@ type MonitorTriggerConditionsLogsMissingDataConditionInput interface { } type MonitorTriggerConditionsLogsMissingDataConditionArgs struct { - TimeRange pulumi.StringInput `pulumi:"timeRange"` + Frequency pulumi.StringPtrInput `pulumi:"frequency"` + TimeRange pulumi.StringInput `pulumi:"timeRange"` } func (MonitorTriggerConditionsLogsMissingDataConditionArgs) ElementType() reflect.Type { @@ -21719,6 +21727,10 @@ func (o MonitorTriggerConditionsLogsMissingDataConditionOutput) ToMonitorTrigger }).(MonitorTriggerConditionsLogsMissingDataConditionPtrOutput) } +func (o MonitorTriggerConditionsLogsMissingDataConditionOutput) Frequency() pulumi.StringPtrOutput { + return o.ApplyT(func(v MonitorTriggerConditionsLogsMissingDataCondition) *string { return v.Frequency }).(pulumi.StringPtrOutput) +} + func (o MonitorTriggerConditionsLogsMissingDataConditionOutput) TimeRange() pulumi.StringOutput { return o.ApplyT(func(v MonitorTriggerConditionsLogsMissingDataCondition) string { return v.TimeRange }).(pulumi.StringOutput) } @@ -21747,6 +21759,15 @@ func (o MonitorTriggerConditionsLogsMissingDataConditionPtrOutput) Elem() Monito }).(MonitorTriggerConditionsLogsMissingDataConditionOutput) } +func (o MonitorTriggerConditionsLogsMissingDataConditionPtrOutput) Frequency() pulumi.StringPtrOutput { + return o.ApplyT(func(v *MonitorTriggerConditionsLogsMissingDataCondition) *string { + if v == nil { + return nil + } + return v.Frequency + }).(pulumi.StringPtrOutput) +} + func (o MonitorTriggerConditionsLogsMissingDataConditionPtrOutput) TimeRange() pulumi.StringPtrOutput { return o.ApplyT(func(v *MonitorTriggerConditionsLogsMissingDataCondition) *string { if v == nil { @@ -22433,6 +22454,7 @@ func (o MonitorTriggerConditionsLogsStaticConditionPtrOutput) Warning() MonitorT type MonitorTriggerConditionsLogsStaticConditionCritical struct { Alert MonitorTriggerConditionsLogsStaticConditionCriticalAlert `pulumi:"alert"` + Frequency *string `pulumi:"frequency"` Resolution MonitorTriggerConditionsLogsStaticConditionCriticalResolution `pulumi:"resolution"` TimeRange string `pulumi:"timeRange"` } @@ -22450,6 +22472,7 @@ type MonitorTriggerConditionsLogsStaticConditionCriticalInput interface { type MonitorTriggerConditionsLogsStaticConditionCriticalArgs struct { Alert MonitorTriggerConditionsLogsStaticConditionCriticalAlertInput `pulumi:"alert"` + Frequency pulumi.StringPtrInput `pulumi:"frequency"` Resolution MonitorTriggerConditionsLogsStaticConditionCriticalResolutionInput `pulumi:"resolution"` TimeRange pulumi.StringInput `pulumi:"timeRange"` } @@ -22537,6 +22560,10 @@ func (o MonitorTriggerConditionsLogsStaticConditionCriticalOutput) Alert() Monit }).(MonitorTriggerConditionsLogsStaticConditionCriticalAlertOutput) } +func (o MonitorTriggerConditionsLogsStaticConditionCriticalOutput) Frequency() pulumi.StringPtrOutput { + return o.ApplyT(func(v MonitorTriggerConditionsLogsStaticConditionCritical) *string { return v.Frequency }).(pulumi.StringPtrOutput) +} + func (o MonitorTriggerConditionsLogsStaticConditionCriticalOutput) Resolution() MonitorTriggerConditionsLogsStaticConditionCriticalResolutionOutput { return o.ApplyT(func(v MonitorTriggerConditionsLogsStaticConditionCritical) MonitorTriggerConditionsLogsStaticConditionCriticalResolution { return v.Resolution @@ -22580,6 +22607,15 @@ func (o MonitorTriggerConditionsLogsStaticConditionCriticalPtrOutput) Alert() Mo }).(MonitorTriggerConditionsLogsStaticConditionCriticalAlertPtrOutput) } +func (o MonitorTriggerConditionsLogsStaticConditionCriticalPtrOutput) Frequency() pulumi.StringPtrOutput { + return o.ApplyT(func(v *MonitorTriggerConditionsLogsStaticConditionCritical) *string { + if v == nil { + return nil + } + return v.Frequency + }).(pulumi.StringPtrOutput) +} + func (o MonitorTriggerConditionsLogsStaticConditionCriticalPtrOutput) Resolution() MonitorTriggerConditionsLogsStaticConditionCriticalResolutionPtrOutput { return o.ApplyT(func(v *MonitorTriggerConditionsLogsStaticConditionCritical) *MonitorTriggerConditionsLogsStaticConditionCriticalResolution { if v == nil { @@ -22917,6 +22953,7 @@ func (o MonitorTriggerConditionsLogsStaticConditionCriticalResolutionPtrOutput) type MonitorTriggerConditionsLogsStaticConditionWarning struct { Alert MonitorTriggerConditionsLogsStaticConditionWarningAlert `pulumi:"alert"` + Frequency *string `pulumi:"frequency"` Resolution MonitorTriggerConditionsLogsStaticConditionWarningResolution `pulumi:"resolution"` TimeRange string `pulumi:"timeRange"` } @@ -22934,6 +22971,7 @@ type MonitorTriggerConditionsLogsStaticConditionWarningInput interface { type MonitorTriggerConditionsLogsStaticConditionWarningArgs struct { Alert MonitorTriggerConditionsLogsStaticConditionWarningAlertInput `pulumi:"alert"` + Frequency pulumi.StringPtrInput `pulumi:"frequency"` Resolution MonitorTriggerConditionsLogsStaticConditionWarningResolutionInput `pulumi:"resolution"` TimeRange pulumi.StringInput `pulumi:"timeRange"` } @@ -23021,6 +23059,10 @@ func (o MonitorTriggerConditionsLogsStaticConditionWarningOutput) Alert() Monito }).(MonitorTriggerConditionsLogsStaticConditionWarningAlertOutput) } +func (o MonitorTriggerConditionsLogsStaticConditionWarningOutput) Frequency() pulumi.StringPtrOutput { + return o.ApplyT(func(v MonitorTriggerConditionsLogsStaticConditionWarning) *string { return v.Frequency }).(pulumi.StringPtrOutput) +} + func (o MonitorTriggerConditionsLogsStaticConditionWarningOutput) Resolution() MonitorTriggerConditionsLogsStaticConditionWarningResolutionOutput { return o.ApplyT(func(v MonitorTriggerConditionsLogsStaticConditionWarning) MonitorTriggerConditionsLogsStaticConditionWarningResolution { return v.Resolution @@ -23064,6 +23106,15 @@ func (o MonitorTriggerConditionsLogsStaticConditionWarningPtrOutput) Alert() Mon }).(MonitorTriggerConditionsLogsStaticConditionWarningAlertPtrOutput) } +func (o MonitorTriggerConditionsLogsStaticConditionWarningPtrOutput) Frequency() pulumi.StringPtrOutput { + return o.ApplyT(func(v *MonitorTriggerConditionsLogsStaticConditionWarning) *string { + if v == nil { + return nil + } + return v.Frequency + }).(pulumi.StringPtrOutput) +} + func (o MonitorTriggerConditionsLogsStaticConditionWarningPtrOutput) Resolution() MonitorTriggerConditionsLogsStaticConditionWarningResolutionPtrOutput { return o.ApplyT(func(v *MonitorTriggerConditionsLogsStaticConditionWarning) *MonitorTriggerConditionsLogsStaticConditionWarningResolution { if v == nil { diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index fe5c885d..70b68d80 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -44,7 +44,7 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") implementation("com.google.code.gson:gson:2.8.9") - implementation("com.pulumi:pulumi:1.3.0") + implementation("com.pulumi:pulumi:1.5.0") } task sourcesJar(type: Jar) { diff --git a/sdk/java/src/main/java/com/pulumi/sumologic/inputs/MonitorTriggerArgs.java b/sdk/java/src/main/java/com/pulumi/sumologic/inputs/MonitorTriggerArgs.java index c871d445..3e03bd36 100644 --- a/sdk/java/src/main/java/com/pulumi/sumologic/inputs/MonitorTriggerArgs.java +++ b/sdk/java/src/main/java/com/pulumi/sumologic/inputs/MonitorTriggerArgs.java @@ -5,6 +5,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Double; import java.lang.Integer; import java.lang.String; @@ -24,6 +25,13 @@ public Optional> detectionMethod() { return Optional.ofNullable(this.detectionMethod); } + @Import(name="frequency") + private @Nullable Output frequency; + + public Optional> frequency() { + return Optional.ofNullable(this.frequency); + } + @Import(name="minDataPoints") private @Nullable Output minDataPoints; @@ -67,11 +75,11 @@ public Optional> thresholdType() { return Optional.ofNullable(this.thresholdType); } - @Import(name="timeRange") - private @Nullable Output timeRange; + @Import(name="timeRange", required=true) + private Output timeRange; - public Optional> timeRange() { - return Optional.ofNullable(this.timeRange); + public Output timeRange() { + return this.timeRange; } @Import(name="triggerSource") @@ -92,6 +100,7 @@ private MonitorTriggerArgs() {} private MonitorTriggerArgs(MonitorTriggerArgs $) { this.detectionMethod = $.detectionMethod; + this.frequency = $.frequency; this.minDataPoints = $.minDataPoints; this.occurrenceType = $.occurrenceType; this.resolutionWindow = $.resolutionWindow; @@ -129,6 +138,15 @@ public Builder detectionMethod(String detectionMethod) { return detectionMethod(Output.of(detectionMethod)); } + public Builder frequency(@Nullable Output frequency) { + $.frequency = frequency; + return this; + } + + public Builder frequency(String frequency) { + return frequency(Output.of(frequency)); + } + public Builder minDataPoints(@Nullable Output minDataPoints) { $.minDataPoints = minDataPoints; return this; @@ -186,7 +204,7 @@ public Builder thresholdType(String thresholdType) { return thresholdType(Output.of(thresholdType)); } - public Builder timeRange(@Nullable Output timeRange) { + public Builder timeRange(Output timeRange) { $.timeRange = timeRange; return this; } @@ -214,6 +232,9 @@ public Builder triggerType(String triggerType) { } public MonitorTriggerArgs build() { + if ($.timeRange == null) { + throw new MissingRequiredPropertyException("MonitorTriggerArgs", "timeRange"); + } return $; } } diff --git a/sdk/java/src/main/java/com/pulumi/sumologic/inputs/MonitorTriggerConditionsLogsMissingDataConditionArgs.java b/sdk/java/src/main/java/com/pulumi/sumologic/inputs/MonitorTriggerConditionsLogsMissingDataConditionArgs.java index 885244a8..47f08fc6 100644 --- a/sdk/java/src/main/java/com/pulumi/sumologic/inputs/MonitorTriggerConditionsLogsMissingDataConditionArgs.java +++ b/sdk/java/src/main/java/com/pulumi/sumologic/inputs/MonitorTriggerConditionsLogsMissingDataConditionArgs.java @@ -8,12 +8,21 @@ import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class MonitorTriggerConditionsLogsMissingDataConditionArgs extends com.pulumi.resources.ResourceArgs { public static final MonitorTriggerConditionsLogsMissingDataConditionArgs Empty = new MonitorTriggerConditionsLogsMissingDataConditionArgs(); + @Import(name="frequency") + private @Nullable Output frequency; + + public Optional> frequency() { + return Optional.ofNullable(this.frequency); + } + @Import(name="timeRange", required=true) private Output timeRange; @@ -24,6 +33,7 @@ public Output timeRange() { private MonitorTriggerConditionsLogsMissingDataConditionArgs() {} private MonitorTriggerConditionsLogsMissingDataConditionArgs(MonitorTriggerConditionsLogsMissingDataConditionArgs $) { + this.frequency = $.frequency; this.timeRange = $.timeRange; } @@ -45,6 +55,15 @@ public Builder(MonitorTriggerConditionsLogsMissingDataConditionArgs defaults) { $ = new MonitorTriggerConditionsLogsMissingDataConditionArgs(Objects.requireNonNull(defaults)); } + public Builder frequency(@Nullable Output frequency) { + $.frequency = frequency; + return this; + } + + public Builder frequency(String frequency) { + return frequency(Output.of(frequency)); + } + public Builder timeRange(Output timeRange) { $.timeRange = timeRange; return this; diff --git a/sdk/java/src/main/java/com/pulumi/sumologic/inputs/MonitorTriggerConditionsLogsStaticConditionCriticalArgs.java b/sdk/java/src/main/java/com/pulumi/sumologic/inputs/MonitorTriggerConditionsLogsStaticConditionCriticalArgs.java index 53328938..f9de80df 100644 --- a/sdk/java/src/main/java/com/pulumi/sumologic/inputs/MonitorTriggerConditionsLogsStaticConditionCriticalArgs.java +++ b/sdk/java/src/main/java/com/pulumi/sumologic/inputs/MonitorTriggerConditionsLogsStaticConditionCriticalArgs.java @@ -10,6 +10,8 @@ import com.pulumi.sumologic.inputs.MonitorTriggerConditionsLogsStaticConditionCriticalResolutionArgs; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class MonitorTriggerConditionsLogsStaticConditionCriticalArgs extends com.pulumi.resources.ResourceArgs { @@ -23,6 +25,13 @@ public Output aler return this.alert; } + @Import(name="frequency") + private @Nullable Output frequency; + + public Optional> frequency() { + return Optional.ofNullable(this.frequency); + } + @Import(name="resolution", required=true) private Output resolution; @@ -41,6 +50,7 @@ private MonitorTriggerConditionsLogsStaticConditionCriticalArgs() {} private MonitorTriggerConditionsLogsStaticConditionCriticalArgs(MonitorTriggerConditionsLogsStaticConditionCriticalArgs $) { this.alert = $.alert; + this.frequency = $.frequency; this.resolution = $.resolution; this.timeRange = $.timeRange; } @@ -72,6 +82,15 @@ public Builder alert(MonitorTriggerConditionsLogsStaticConditionCriticalAlertArg return alert(Output.of(alert)); } + public Builder frequency(@Nullable Output frequency) { + $.frequency = frequency; + return this; + } + + public Builder frequency(String frequency) { + return frequency(Output.of(frequency)); + } + public Builder resolution(Output resolution) { $.resolution = resolution; return this; diff --git a/sdk/java/src/main/java/com/pulumi/sumologic/inputs/MonitorTriggerConditionsLogsStaticConditionWarningArgs.java b/sdk/java/src/main/java/com/pulumi/sumologic/inputs/MonitorTriggerConditionsLogsStaticConditionWarningArgs.java index 70268e83..f031729a 100644 --- a/sdk/java/src/main/java/com/pulumi/sumologic/inputs/MonitorTriggerConditionsLogsStaticConditionWarningArgs.java +++ b/sdk/java/src/main/java/com/pulumi/sumologic/inputs/MonitorTriggerConditionsLogsStaticConditionWarningArgs.java @@ -10,6 +10,8 @@ import com.pulumi.sumologic.inputs.MonitorTriggerConditionsLogsStaticConditionWarningResolutionArgs; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class MonitorTriggerConditionsLogsStaticConditionWarningArgs extends com.pulumi.resources.ResourceArgs { @@ -23,6 +25,13 @@ public Output alert return this.alert; } + @Import(name="frequency") + private @Nullable Output frequency; + + public Optional> frequency() { + return Optional.ofNullable(this.frequency); + } + @Import(name="resolution", required=true) private Output resolution; @@ -41,6 +50,7 @@ private MonitorTriggerConditionsLogsStaticConditionWarningArgs() {} private MonitorTriggerConditionsLogsStaticConditionWarningArgs(MonitorTriggerConditionsLogsStaticConditionWarningArgs $) { this.alert = $.alert; + this.frequency = $.frequency; this.resolution = $.resolution; this.timeRange = $.timeRange; } @@ -72,6 +82,15 @@ public Builder alert(MonitorTriggerConditionsLogsStaticConditionWarningAlertArgs return alert(Output.of(alert)); } + public Builder frequency(@Nullable Output frequency) { + $.frequency = frequency; + return this; + } + + public Builder frequency(String frequency) { + return frequency(Output.of(frequency)); + } + public Builder resolution(Output resolution) { $.resolution = resolution; return this; diff --git a/sdk/java/src/main/java/com/pulumi/sumologic/outputs/MonitorTrigger.java b/sdk/java/src/main/java/com/pulumi/sumologic/outputs/MonitorTrigger.java index a415fbbd..5b0c9315 100644 --- a/sdk/java/src/main/java/com/pulumi/sumologic/outputs/MonitorTrigger.java +++ b/sdk/java/src/main/java/com/pulumi/sumologic/outputs/MonitorTrigger.java @@ -4,6 +4,7 @@ package com.pulumi.sumologic.outputs; import com.pulumi.core.annotations.CustomType; +import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Double; import java.lang.Integer; import java.lang.String; @@ -14,6 +15,7 @@ @CustomType public final class MonitorTrigger { private @Nullable String detectionMethod; + private @Nullable String frequency; private @Nullable Integer minDataPoints; private @Nullable String occurrenceType; /** @@ -23,7 +25,7 @@ public final class MonitorTrigger { private @Nullable String resolutionWindow; private @Nullable Double threshold; private @Nullable String thresholdType; - private @Nullable String timeRange; + private String timeRange; private @Nullable String triggerSource; private @Nullable String triggerType; @@ -31,6 +33,9 @@ private MonitorTrigger() {} public Optional detectionMethod() { return Optional.ofNullable(this.detectionMethod); } + public Optional frequency() { + return Optional.ofNullable(this.frequency); + } public Optional minDataPoints() { return Optional.ofNullable(this.minDataPoints); } @@ -50,8 +55,8 @@ public Optional threshold() { public Optional thresholdType() { return Optional.ofNullable(this.thresholdType); } - public Optional timeRange() { - return Optional.ofNullable(this.timeRange); + public String timeRange() { + return this.timeRange; } public Optional triggerSource() { return Optional.ofNullable(this.triggerSource); @@ -70,18 +75,20 @@ public static Builder builder(MonitorTrigger defaults) { @CustomType.Builder public static final class Builder { private @Nullable String detectionMethod; + private @Nullable String frequency; private @Nullable Integer minDataPoints; private @Nullable String occurrenceType; private @Nullable String resolutionWindow; private @Nullable Double threshold; private @Nullable String thresholdType; - private @Nullable String timeRange; + private String timeRange; private @Nullable String triggerSource; private @Nullable String triggerType; public Builder() {} public Builder(MonitorTrigger defaults) { Objects.requireNonNull(defaults); this.detectionMethod = defaults.detectionMethod; + this.frequency = defaults.frequency; this.minDataPoints = defaults.minDataPoints; this.occurrenceType = defaults.occurrenceType; this.resolutionWindow = defaults.resolutionWindow; @@ -99,6 +106,12 @@ public Builder detectionMethod(@Nullable String detectionMethod) { return this; } @CustomType.Setter + public Builder frequency(@Nullable String frequency) { + + this.frequency = frequency; + return this; + } + @CustomType.Setter public Builder minDataPoints(@Nullable Integer minDataPoints) { this.minDataPoints = minDataPoints; @@ -129,8 +142,10 @@ public Builder thresholdType(@Nullable String thresholdType) { return this; } @CustomType.Setter - public Builder timeRange(@Nullable String timeRange) { - + public Builder timeRange(String timeRange) { + if (timeRange == null) { + throw new MissingRequiredPropertyException("MonitorTrigger", "timeRange"); + } this.timeRange = timeRange; return this; } @@ -149,6 +164,7 @@ public Builder triggerType(@Nullable String triggerType) { public MonitorTrigger build() { final var _resultValue = new MonitorTrigger(); _resultValue.detectionMethod = detectionMethod; + _resultValue.frequency = frequency; _resultValue.minDataPoints = minDataPoints; _resultValue.occurrenceType = occurrenceType; _resultValue.resolutionWindow = resolutionWindow; diff --git a/sdk/java/src/main/java/com/pulumi/sumologic/outputs/MonitorTriggerConditionsLogsMissingDataCondition.java b/sdk/java/src/main/java/com/pulumi/sumologic/outputs/MonitorTriggerConditionsLogsMissingDataCondition.java index 73793e0f..7a4b0ecf 100644 --- a/sdk/java/src/main/java/com/pulumi/sumologic/outputs/MonitorTriggerConditionsLogsMissingDataCondition.java +++ b/sdk/java/src/main/java/com/pulumi/sumologic/outputs/MonitorTriggerConditionsLogsMissingDataCondition.java @@ -7,12 +7,18 @@ import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; @CustomType public final class MonitorTriggerConditionsLogsMissingDataCondition { + private @Nullable String frequency; private String timeRange; private MonitorTriggerConditionsLogsMissingDataCondition() {} + public Optional frequency() { + return Optional.ofNullable(this.frequency); + } public String timeRange() { return this.timeRange; } @@ -26,13 +32,21 @@ public static Builder builder(MonitorTriggerConditionsLogsMissingDataCondition d } @CustomType.Builder public static final class Builder { + private @Nullable String frequency; private String timeRange; public Builder() {} public Builder(MonitorTriggerConditionsLogsMissingDataCondition defaults) { Objects.requireNonNull(defaults); + this.frequency = defaults.frequency; this.timeRange = defaults.timeRange; } + @CustomType.Setter + public Builder frequency(@Nullable String frequency) { + + this.frequency = frequency; + return this; + } @CustomType.Setter public Builder timeRange(String timeRange) { if (timeRange == null) { @@ -43,6 +57,7 @@ public Builder timeRange(String timeRange) { } public MonitorTriggerConditionsLogsMissingDataCondition build() { final var _resultValue = new MonitorTriggerConditionsLogsMissingDataCondition(); + _resultValue.frequency = frequency; _resultValue.timeRange = timeRange; return _resultValue; } diff --git a/sdk/java/src/main/java/com/pulumi/sumologic/outputs/MonitorTriggerConditionsLogsStaticConditionCritical.java b/sdk/java/src/main/java/com/pulumi/sumologic/outputs/MonitorTriggerConditionsLogsStaticConditionCritical.java index 1b814b06..8e008087 100644 --- a/sdk/java/src/main/java/com/pulumi/sumologic/outputs/MonitorTriggerConditionsLogsStaticConditionCritical.java +++ b/sdk/java/src/main/java/com/pulumi/sumologic/outputs/MonitorTriggerConditionsLogsStaticConditionCritical.java @@ -9,10 +9,13 @@ import com.pulumi.sumologic.outputs.MonitorTriggerConditionsLogsStaticConditionCriticalResolution; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; @CustomType public final class MonitorTriggerConditionsLogsStaticConditionCritical { private MonitorTriggerConditionsLogsStaticConditionCriticalAlert alert; + private @Nullable String frequency; private MonitorTriggerConditionsLogsStaticConditionCriticalResolution resolution; private String timeRange; @@ -20,6 +23,9 @@ private MonitorTriggerConditionsLogsStaticConditionCritical() {} public MonitorTriggerConditionsLogsStaticConditionCriticalAlert alert() { return this.alert; } + public Optional frequency() { + return Optional.ofNullable(this.frequency); + } public MonitorTriggerConditionsLogsStaticConditionCriticalResolution resolution() { return this.resolution; } @@ -37,12 +43,14 @@ public static Builder builder(MonitorTriggerConditionsLogsStaticConditionCritica @CustomType.Builder public static final class Builder { private MonitorTriggerConditionsLogsStaticConditionCriticalAlert alert; + private @Nullable String frequency; private MonitorTriggerConditionsLogsStaticConditionCriticalResolution resolution; private String timeRange; public Builder() {} public Builder(MonitorTriggerConditionsLogsStaticConditionCritical defaults) { Objects.requireNonNull(defaults); this.alert = defaults.alert; + this.frequency = defaults.frequency; this.resolution = defaults.resolution; this.timeRange = defaults.timeRange; } @@ -56,6 +64,12 @@ public Builder alert(MonitorTriggerConditionsLogsStaticConditionCriticalAlert al return this; } @CustomType.Setter + public Builder frequency(@Nullable String frequency) { + + this.frequency = frequency; + return this; + } + @CustomType.Setter public Builder resolution(MonitorTriggerConditionsLogsStaticConditionCriticalResolution resolution) { if (resolution == null) { throw new MissingRequiredPropertyException("MonitorTriggerConditionsLogsStaticConditionCritical", "resolution"); @@ -74,6 +88,7 @@ public Builder timeRange(String timeRange) { public MonitorTriggerConditionsLogsStaticConditionCritical build() { final var _resultValue = new MonitorTriggerConditionsLogsStaticConditionCritical(); _resultValue.alert = alert; + _resultValue.frequency = frequency; _resultValue.resolution = resolution; _resultValue.timeRange = timeRange; return _resultValue; diff --git a/sdk/java/src/main/java/com/pulumi/sumologic/outputs/MonitorTriggerConditionsLogsStaticConditionWarning.java b/sdk/java/src/main/java/com/pulumi/sumologic/outputs/MonitorTriggerConditionsLogsStaticConditionWarning.java index 45927828..5f7ae556 100644 --- a/sdk/java/src/main/java/com/pulumi/sumologic/outputs/MonitorTriggerConditionsLogsStaticConditionWarning.java +++ b/sdk/java/src/main/java/com/pulumi/sumologic/outputs/MonitorTriggerConditionsLogsStaticConditionWarning.java @@ -9,10 +9,13 @@ import com.pulumi.sumologic.outputs.MonitorTriggerConditionsLogsStaticConditionWarningResolution; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; @CustomType public final class MonitorTriggerConditionsLogsStaticConditionWarning { private MonitorTriggerConditionsLogsStaticConditionWarningAlert alert; + private @Nullable String frequency; private MonitorTriggerConditionsLogsStaticConditionWarningResolution resolution; private String timeRange; @@ -20,6 +23,9 @@ private MonitorTriggerConditionsLogsStaticConditionWarning() {} public MonitorTriggerConditionsLogsStaticConditionWarningAlert alert() { return this.alert; } + public Optional frequency() { + return Optional.ofNullable(this.frequency); + } public MonitorTriggerConditionsLogsStaticConditionWarningResolution resolution() { return this.resolution; } @@ -37,12 +43,14 @@ public static Builder builder(MonitorTriggerConditionsLogsStaticConditionWarning @CustomType.Builder public static final class Builder { private MonitorTriggerConditionsLogsStaticConditionWarningAlert alert; + private @Nullable String frequency; private MonitorTriggerConditionsLogsStaticConditionWarningResolution resolution; private String timeRange; public Builder() {} public Builder(MonitorTriggerConditionsLogsStaticConditionWarning defaults) { Objects.requireNonNull(defaults); this.alert = defaults.alert; + this.frequency = defaults.frequency; this.resolution = defaults.resolution; this.timeRange = defaults.timeRange; } @@ -56,6 +64,12 @@ public Builder alert(MonitorTriggerConditionsLogsStaticConditionWarningAlert ale return this; } @CustomType.Setter + public Builder frequency(@Nullable String frequency) { + + this.frequency = frequency; + return this; + } + @CustomType.Setter public Builder resolution(MonitorTriggerConditionsLogsStaticConditionWarningResolution resolution) { if (resolution == null) { throw new MissingRequiredPropertyException("MonitorTriggerConditionsLogsStaticConditionWarning", "resolution"); @@ -74,6 +88,7 @@ public Builder timeRange(String timeRange) { public MonitorTriggerConditionsLogsStaticConditionWarning build() { final var _resultValue = new MonitorTriggerConditionsLogsStaticConditionWarning(); _resultValue.alert = alert; + _resultValue.frequency = frequency; _resultValue.resolution = resolution; _resultValue.timeRange = timeRange; return _resultValue; diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index a0bb7aed..7ca58919 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -7631,6 +7631,7 @@ export interface MonitorQuery { export interface MonitorTrigger { detectionMethod?: pulumi.Input; + frequency?: pulumi.Input; minDataPoints?: pulumi.Input; occurrenceType?: pulumi.Input; /** @@ -7639,7 +7640,7 @@ export interface MonitorTrigger { resolutionWindow?: pulumi.Input; threshold?: pulumi.Input; thresholdType?: pulumi.Input; - timeRange?: pulumi.Input; + timeRange: pulumi.Input; triggerSource?: pulumi.Input; triggerType?: pulumi.Input; } @@ -7671,6 +7672,7 @@ export interface MonitorTriggerConditionsLogsAnomalyConditionCritical { } export interface MonitorTriggerConditionsLogsMissingDataCondition { + frequency?: pulumi.Input; timeRange: pulumi.Input; } @@ -7701,6 +7703,7 @@ export interface MonitorTriggerConditionsLogsStaticCondition { export interface MonitorTriggerConditionsLogsStaticConditionCritical { alert: pulumi.Input; + frequency?: pulumi.Input; resolution: pulumi.Input; timeRange: pulumi.Input; } @@ -7721,6 +7724,7 @@ export interface MonitorTriggerConditionsLogsStaticConditionCriticalResolution { export interface MonitorTriggerConditionsLogsStaticConditionWarning { alert: pulumi.Input; + frequency?: pulumi.Input; resolution: pulumi.Input; timeRange: pulumi.Input; } diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 3bee18d8..2b1e76b7 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -7636,6 +7636,7 @@ export interface MonitorQuery { export interface MonitorTrigger { detectionMethod?: string; + frequency?: string; minDataPoints: number; occurrenceType?: string; /** @@ -7644,7 +7645,7 @@ export interface MonitorTrigger { resolutionWindow?: string; threshold?: number; thresholdType?: string; - timeRange?: string; + timeRange: string; triggerSource?: string; triggerType?: string; } @@ -7676,6 +7677,7 @@ export interface MonitorTriggerConditionsLogsAnomalyConditionCritical { } export interface MonitorTriggerConditionsLogsMissingDataCondition { + frequency?: string; timeRange: string; } @@ -7706,6 +7708,7 @@ export interface MonitorTriggerConditionsLogsStaticCondition { export interface MonitorTriggerConditionsLogsStaticConditionCritical { alert: outputs.MonitorTriggerConditionsLogsStaticConditionCriticalAlert; + frequency?: string; resolution: outputs.MonitorTriggerConditionsLogsStaticConditionCriticalResolution; timeRange: string; } @@ -7726,6 +7729,7 @@ export interface MonitorTriggerConditionsLogsStaticConditionCriticalResolution { export interface MonitorTriggerConditionsLogsStaticConditionWarning { alert: outputs.MonitorTriggerConditionsLogsStaticConditionWarningAlert; + frequency?: string; resolution: outputs.MonitorTriggerConditionsLogsStaticConditionWarningResolution; timeRange: string; } diff --git a/sdk/python/pulumi_sumologic/_inputs.py b/sdk/python/pulumi_sumologic/_inputs.py index 6f40688b..82acf303 100644 --- a/sdk/python/pulumi_sumologic/_inputs.py +++ b/sdk/python/pulumi_sumologic/_inputs.py @@ -41331,7 +41331,9 @@ def row_id(self, value: pulumi.Input[str]): if not MYPY: class MonitorTriggerArgsDict(TypedDict): + time_range: pulumi.Input[str] detection_method: NotRequired[pulumi.Input[str]] + frequency: NotRequired[pulumi.Input[str]] min_data_points: NotRequired[pulumi.Input[int]] occurrence_type: NotRequired[pulumi.Input[str]] resolution_window: NotRequired[pulumi.Input[str]] @@ -41340,7 +41342,6 @@ class MonitorTriggerArgsDict(TypedDict): """ threshold: NotRequired[pulumi.Input[float]] threshold_type: NotRequired[pulumi.Input[str]] - time_range: NotRequired[pulumi.Input[str]] trigger_source: NotRequired[pulumi.Input[str]] trigger_type: NotRequired[pulumi.Input[str]] elif False: @@ -41349,20 +41350,24 @@ class MonitorTriggerArgsDict(TypedDict): @pulumi.input_type class MonitorTriggerArgs: def __init__(__self__, *, + time_range: pulumi.Input[str], detection_method: Optional[pulumi.Input[str]] = None, + frequency: Optional[pulumi.Input[str]] = None, min_data_points: Optional[pulumi.Input[int]] = None, occurrence_type: Optional[pulumi.Input[str]] = None, resolution_window: Optional[pulumi.Input[str]] = None, threshold: Optional[pulumi.Input[float]] = None, threshold_type: Optional[pulumi.Input[str]] = None, - time_range: Optional[pulumi.Input[str]] = None, trigger_source: Optional[pulumi.Input[str]] = None, trigger_type: Optional[pulumi.Input[str]] = None): """ :param pulumi.Input[str] resolution_window: The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used. """ + pulumi.set(__self__, "time_range", time_range) if detection_method is not None: pulumi.set(__self__, "detection_method", detection_method) + if frequency is not None: + pulumi.set(__self__, "frequency", frequency) if min_data_points is not None: pulumi.set(__self__, "min_data_points", min_data_points) if occurrence_type is not None: @@ -41373,13 +41378,20 @@ def __init__(__self__, *, pulumi.set(__self__, "threshold", threshold) if threshold_type is not None: pulumi.set(__self__, "threshold_type", threshold_type) - if time_range is not None: - pulumi.set(__self__, "time_range", time_range) if trigger_source is not None: pulumi.set(__self__, "trigger_source", trigger_source) if trigger_type is not None: pulumi.set(__self__, "trigger_type", trigger_type) + @property + @pulumi.getter(name="timeRange") + def time_range(self) -> pulumi.Input[str]: + return pulumi.get(self, "time_range") + + @time_range.setter + def time_range(self, value: pulumi.Input[str]): + pulumi.set(self, "time_range", value) + @property @pulumi.getter(name="detectionMethod") def detection_method(self) -> Optional[pulumi.Input[str]]: @@ -41389,6 +41401,15 @@ def detection_method(self) -> Optional[pulumi.Input[str]]: def detection_method(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "detection_method", value) + @property + @pulumi.getter + def frequency(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "frequency") + + @frequency.setter + def frequency(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "frequency", value) + @property @pulumi.getter(name="minDataPoints") def min_data_points(self) -> Optional[pulumi.Input[int]]: @@ -41437,15 +41458,6 @@ def threshold_type(self) -> Optional[pulumi.Input[str]]: def threshold_type(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "threshold_type", value) - @property - @pulumi.getter(name="timeRange") - def time_range(self) -> Optional[pulumi.Input[str]]: - return pulumi.get(self, "time_range") - - @time_range.setter - def time_range(self, value: Optional[pulumi.Input[str]]): - pulumi.set(self, "time_range", value) - @property @pulumi.getter(name="triggerSource") def trigger_source(self) -> Optional[pulumi.Input[str]]: @@ -41715,14 +41727,18 @@ def sensitivity(self, value: Optional[pulumi.Input[float]]): if not MYPY: class MonitorTriggerConditionsLogsMissingDataConditionArgsDict(TypedDict): time_range: pulumi.Input[str] + frequency: NotRequired[pulumi.Input[str]] elif False: MonitorTriggerConditionsLogsMissingDataConditionArgsDict: TypeAlias = Mapping[str, Any] @pulumi.input_type class MonitorTriggerConditionsLogsMissingDataConditionArgs: def __init__(__self__, *, - time_range: pulumi.Input[str]): + time_range: pulumi.Input[str], + frequency: Optional[pulumi.Input[str]] = None): pulumi.set(__self__, "time_range", time_range) + if frequency is not None: + pulumi.set(__self__, "frequency", frequency) @property @pulumi.getter(name="timeRange") @@ -41733,6 +41749,15 @@ def time_range(self) -> pulumi.Input[str]: def time_range(self, value: pulumi.Input[str]): pulumi.set(self, "time_range", value) + @property + @pulumi.getter + def frequency(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "frequency") + + @frequency.setter + def frequency(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "frequency", value) + if not MYPY: class MonitorTriggerConditionsLogsOutlierConditionArgsDict(TypedDict): @@ -41948,6 +41973,7 @@ class MonitorTriggerConditionsLogsStaticConditionCriticalArgsDict(TypedDict): alert: pulumi.Input['MonitorTriggerConditionsLogsStaticConditionCriticalAlertArgsDict'] resolution: pulumi.Input['MonitorTriggerConditionsLogsStaticConditionCriticalResolutionArgsDict'] time_range: pulumi.Input[str] + frequency: NotRequired[pulumi.Input[str]] elif False: MonitorTriggerConditionsLogsStaticConditionCriticalArgsDict: TypeAlias = Mapping[str, Any] @@ -41956,10 +41982,13 @@ class MonitorTriggerConditionsLogsStaticConditionCriticalArgs: def __init__(__self__, *, alert: pulumi.Input['MonitorTriggerConditionsLogsStaticConditionCriticalAlertArgs'], resolution: pulumi.Input['MonitorTriggerConditionsLogsStaticConditionCriticalResolutionArgs'], - time_range: pulumi.Input[str]): + time_range: pulumi.Input[str], + frequency: Optional[pulumi.Input[str]] = None): pulumi.set(__self__, "alert", alert) pulumi.set(__self__, "resolution", resolution) pulumi.set(__self__, "time_range", time_range) + if frequency is not None: + pulumi.set(__self__, "frequency", frequency) @property @pulumi.getter @@ -41988,6 +42017,15 @@ def time_range(self) -> pulumi.Input[str]: def time_range(self, value: pulumi.Input[str]): pulumi.set(self, "time_range", value) + @property + @pulumi.getter + def frequency(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "frequency") + + @frequency.setter + def frequency(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "frequency", value) + if not MYPY: class MonitorTriggerConditionsLogsStaticConditionCriticalAlertArgsDict(TypedDict): @@ -42088,6 +42126,7 @@ class MonitorTriggerConditionsLogsStaticConditionWarningArgsDict(TypedDict): alert: pulumi.Input['MonitorTriggerConditionsLogsStaticConditionWarningAlertArgsDict'] resolution: pulumi.Input['MonitorTriggerConditionsLogsStaticConditionWarningResolutionArgsDict'] time_range: pulumi.Input[str] + frequency: NotRequired[pulumi.Input[str]] elif False: MonitorTriggerConditionsLogsStaticConditionWarningArgsDict: TypeAlias = Mapping[str, Any] @@ -42096,10 +42135,13 @@ class MonitorTriggerConditionsLogsStaticConditionWarningArgs: def __init__(__self__, *, alert: pulumi.Input['MonitorTriggerConditionsLogsStaticConditionWarningAlertArgs'], resolution: pulumi.Input['MonitorTriggerConditionsLogsStaticConditionWarningResolutionArgs'], - time_range: pulumi.Input[str]): + time_range: pulumi.Input[str], + frequency: Optional[pulumi.Input[str]] = None): pulumi.set(__self__, "alert", alert) pulumi.set(__self__, "resolution", resolution) pulumi.set(__self__, "time_range", time_range) + if frequency is not None: + pulumi.set(__self__, "frequency", frequency) @property @pulumi.getter @@ -42128,6 +42170,15 @@ def time_range(self) -> pulumi.Input[str]: def time_range(self, value: pulumi.Input[str]): pulumi.set(self, "time_range", value) + @property + @pulumi.getter + def frequency(self) -> Optional[pulumi.Input[str]]: + return pulumi.get(self, "frequency") + + @frequency.setter + def frequency(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "frequency", value) + if not MYPY: class MonitorTriggerConditionsLogsStaticConditionWarningAlertArgsDict(TypedDict): diff --git a/sdk/python/pulumi_sumologic/outputs.py b/sdk/python/pulumi_sumologic/outputs.py index a3691ab4..8300645a 100644 --- a/sdk/python/pulumi_sumologic/outputs.py +++ b/sdk/python/pulumi_sumologic/outputs.py @@ -33576,7 +33576,9 @@ class MonitorTrigger(dict): @staticmethod def __key_warning(key: str): suggest = None - if key == "detectionMethod": + if key == "timeRange": + suggest = "time_range" + elif key == "detectionMethod": suggest = "detection_method" elif key == "minDataPoints": suggest = "min_data_points" @@ -33586,8 +33588,6 @@ def __key_warning(key: str): suggest = "resolution_window" elif key == "thresholdType": suggest = "threshold_type" - elif key == "timeRange": - suggest = "time_range" elif key == "triggerSource": suggest = "trigger_source" elif key == "triggerType": @@ -33605,20 +33605,24 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, + time_range: str, detection_method: Optional[str] = None, + frequency: Optional[str] = None, min_data_points: Optional[int] = None, occurrence_type: Optional[str] = None, resolution_window: Optional[str] = None, threshold: Optional[float] = None, threshold_type: Optional[str] = None, - time_range: Optional[str] = None, trigger_source: Optional[str] = None, trigger_type: Optional[str] = None): """ :param str resolution_window: The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used. """ + pulumi.set(__self__, "time_range", time_range) if detection_method is not None: pulumi.set(__self__, "detection_method", detection_method) + if frequency is not None: + pulumi.set(__self__, "frequency", frequency) if min_data_points is not None: pulumi.set(__self__, "min_data_points", min_data_points) if occurrence_type is not None: @@ -33629,18 +33633,26 @@ def __init__(__self__, *, pulumi.set(__self__, "threshold", threshold) if threshold_type is not None: pulumi.set(__self__, "threshold_type", threshold_type) - if time_range is not None: - pulumi.set(__self__, "time_range", time_range) if trigger_source is not None: pulumi.set(__self__, "trigger_source", trigger_source) if trigger_type is not None: pulumi.set(__self__, "trigger_type", trigger_type) + @property + @pulumi.getter(name="timeRange") + def time_range(self) -> str: + return pulumi.get(self, "time_range") + @property @pulumi.getter(name="detectionMethod") def detection_method(self) -> Optional[str]: return pulumi.get(self, "detection_method") + @property + @pulumi.getter + def frequency(self) -> Optional[str]: + return pulumi.get(self, "frequency") + @property @pulumi.getter(name="minDataPoints") def min_data_points(self) -> Optional[int]: @@ -33669,11 +33681,6 @@ def threshold(self) -> Optional[float]: def threshold_type(self) -> Optional[str]: return pulumi.get(self, "threshold_type") - @property - @pulumi.getter(name="timeRange") - def time_range(self) -> Optional[str]: - return pulumi.get(self, "time_range") - @property @pulumi.getter(name="triggerSource") def trigger_source(self) -> Optional[str]: @@ -33923,14 +33930,22 @@ def get(self, key: str, default = None) -> Any: return super().get(key, default) def __init__(__self__, *, - time_range: str): + time_range: str, + frequency: Optional[str] = None): pulumi.set(__self__, "time_range", time_range) + if frequency is not None: + pulumi.set(__self__, "frequency", frequency) @property @pulumi.getter(name="timeRange") def time_range(self) -> str: return pulumi.get(self, "time_range") + @property + @pulumi.getter + def frequency(self) -> Optional[str]: + return pulumi.get(self, "frequency") + @pulumi.output_type class MonitorTriggerConditionsLogsOutlierCondition(dict): @@ -34078,10 +34093,13 @@ def get(self, key: str, default = None) -> Any: def __init__(__self__, *, alert: 'outputs.MonitorTriggerConditionsLogsStaticConditionCriticalAlert', resolution: 'outputs.MonitorTriggerConditionsLogsStaticConditionCriticalResolution', - time_range: str): + time_range: str, + frequency: Optional[str] = None): pulumi.set(__self__, "alert", alert) pulumi.set(__self__, "resolution", resolution) pulumi.set(__self__, "time_range", time_range) + if frequency is not None: + pulumi.set(__self__, "frequency", frequency) @property @pulumi.getter @@ -34098,6 +34116,11 @@ def resolution(self) -> 'outputs.MonitorTriggerConditionsLogsStaticConditionCrit def time_range(self) -> str: return pulumi.get(self, "time_range") + @property + @pulumi.getter + def frequency(self) -> Optional[str]: + return pulumi.get(self, "frequency") + @pulumi.output_type class MonitorTriggerConditionsLogsStaticConditionCriticalAlert(dict): @@ -34213,10 +34236,13 @@ def get(self, key: str, default = None) -> Any: def __init__(__self__, *, alert: 'outputs.MonitorTriggerConditionsLogsStaticConditionWarningAlert', resolution: 'outputs.MonitorTriggerConditionsLogsStaticConditionWarningResolution', - time_range: str): + time_range: str, + frequency: Optional[str] = None): pulumi.set(__self__, "alert", alert) pulumi.set(__self__, "resolution", resolution) pulumi.set(__self__, "time_range", time_range) + if frequency is not None: + pulumi.set(__self__, "frequency", frequency) @property @pulumi.getter @@ -34233,6 +34259,11 @@ def resolution(self) -> 'outputs.MonitorTriggerConditionsLogsStaticConditionWarn def time_range(self) -> str: return pulumi.get(self, "time_range") + @property + @pulumi.getter + def frequency(self) -> Optional[str]: + return pulumi.get(self, "frequency") + @pulumi.output_type class MonitorTriggerConditionsLogsStaticConditionWarningAlert(dict): diff --git a/upstream b/upstream index a6c74360..f060c648 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit a6c7436032879e53eb571b16ee2e341b5d42e955 +Subproject commit f060c648f2ca5ad32101a0ead12532779e41cbb8