newrelic.MonitorDowntime
Explore with Pulumi AI
Use this resource to create, update, and delete Monitor Downtimes in New Relic.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const foo = new newrelic.MonitorDowntime("foo", {
name: "Sample Monitor Downtime",
monitorGuids: [
"<GUID-1>",
"<GUID-2>",
],
mode: "WEEKLY",
startTime: "2023-11-30T10:30:00",
endTime: "2023-12-10T02:45:30",
timeZone: "Asia/Kolkata",
endRepeat: {
onDate: "2023-12-20",
},
maintenanceDays: [
"FRIDAY",
"SATURDAY",
],
});
import pulumi
import pulumi_newrelic as newrelic
foo = newrelic.MonitorDowntime("foo",
name="Sample Monitor Downtime",
monitor_guids=[
"<GUID-1>",
"<GUID-2>",
],
mode="WEEKLY",
start_time="2023-11-30T10:30:00",
end_time="2023-12-10T02:45:30",
time_zone="Asia/Kolkata",
end_repeat=newrelic.MonitorDowntimeEndRepeatArgs(
on_date="2023-12-20",
),
maintenance_days=[
"FRIDAY",
"SATURDAY",
])
package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := newrelic.NewMonitorDowntime(ctx, "foo", &newrelic.MonitorDowntimeArgs{
Name: pulumi.String("Sample Monitor Downtime"),
MonitorGuids: pulumi.StringArray{
pulumi.String("<GUID-1>"),
pulumi.String("<GUID-2>"),
},
Mode: pulumi.String("WEEKLY"),
StartTime: pulumi.String("2023-11-30T10:30:00"),
EndTime: pulumi.String("2023-12-10T02:45:30"),
TimeZone: pulumi.String("Asia/Kolkata"),
EndRepeat: &newrelic.MonitorDowntimeEndRepeatArgs{
OnDate: pulumi.String("2023-12-20"),
},
MaintenanceDays: pulumi.StringArray{
pulumi.String("FRIDAY"),
pulumi.String("SATURDAY"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() =>
{
var foo = new NewRelic.MonitorDowntime("foo", new()
{
Name = "Sample Monitor Downtime",
MonitorGuids = new[]
{
"<GUID-1>",
"<GUID-2>",
},
Mode = "WEEKLY",
StartTime = "2023-11-30T10:30:00",
EndTime = "2023-12-10T02:45:30",
TimeZone = "Asia/Kolkata",
EndRepeat = new NewRelic.Inputs.MonitorDowntimeEndRepeatArgs
{
OnDate = "2023-12-20",
},
MaintenanceDays = new[]
{
"FRIDAY",
"SATURDAY",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.MonitorDowntime;
import com.pulumi.newrelic.MonitorDowntimeArgs;
import com.pulumi.newrelic.inputs.MonitorDowntimeEndRepeatArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var foo = new MonitorDowntime("foo", MonitorDowntimeArgs.builder()
.name("Sample Monitor Downtime")
.monitorGuids(
"<GUID-1>",
"<GUID-2>")
.mode("WEEKLY")
.startTime("2023-11-30T10:30:00")
.endTime("2023-12-10T02:45:30")
.timeZone("Asia/Kolkata")
.endRepeat(MonitorDowntimeEndRepeatArgs.builder()
.onDate("2023-12-20")
.build())
.maintenanceDays(
"FRIDAY",
"SATURDAY")
.build());
}
}
resources:
foo:
type: newrelic:MonitorDowntime
properties:
name: Sample Monitor Downtime
monitorGuids:
- <GUID-1>
- <GUID-2>
mode: WEEKLY
startTime: 2023-11-30T10:30:00
endTime: 2023-12-10T02:45:30
timeZone: Asia/Kolkata
endRepeat:
onDate: 2023-12-20
maintenanceDays:
- FRIDAY
- SATURDAY
Monitor Downtimes are of four types; one-time, daily, weekly and monthly. For more details on each type and the right arguments that go with them, check out the argument reference and examples sections below.
Examples
One-Time Monitor Downtime
The below example illustrates creating a one-time monitor downtime.
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const sampleOneTimeNewrelicMonitorDowntime = new newrelic.MonitorDowntime("sample_one_time_newrelic_monitor_downtime", {
name: "Sample One Time Monitor Downtime",
monitorGuids: [
"<GUID-1>",
"<GUID-2>",
],
mode: "ONE_TIME",
startTime: "2023-12-04T10:15:00",
endTime: "2024-01-04T16:24:30",
timeZone: "America/Los_Angeles",
});
import pulumi
import pulumi_newrelic as newrelic
sample_one_time_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_one_time_newrelic_monitor_downtime",
name="Sample One Time Monitor Downtime",
monitor_guids=[
"<GUID-1>",
"<GUID-2>",
],
mode="ONE_TIME",
start_time="2023-12-04T10:15:00",
end_time="2024-01-04T16:24:30",
time_zone="America/Los_Angeles")
package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := newrelic.NewMonitorDowntime(ctx, "sample_one_time_newrelic_monitor_downtime", &newrelic.MonitorDowntimeArgs{
Name: pulumi.String("Sample One Time Monitor Downtime"),
MonitorGuids: pulumi.StringArray{
pulumi.String("<GUID-1>"),
pulumi.String("<GUID-2>"),
},
Mode: pulumi.String("ONE_TIME"),
StartTime: pulumi.String("2023-12-04T10:15:00"),
EndTime: pulumi.String("2024-01-04T16:24:30"),
TimeZone: pulumi.String("America/Los_Angeles"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() =>
{
var sampleOneTimeNewrelicMonitorDowntime = new NewRelic.MonitorDowntime("sample_one_time_newrelic_monitor_downtime", new()
{
Name = "Sample One Time Monitor Downtime",
MonitorGuids = new[]
{
"<GUID-1>",
"<GUID-2>",
},
Mode = "ONE_TIME",
StartTime = "2023-12-04T10:15:00",
EndTime = "2024-01-04T16:24:30",
TimeZone = "America/Los_Angeles",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.MonitorDowntime;
import com.pulumi.newrelic.MonitorDowntimeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var sampleOneTimeNewrelicMonitorDowntime = new MonitorDowntime("sampleOneTimeNewrelicMonitorDowntime", MonitorDowntimeArgs.builder()
.name("Sample One Time Monitor Downtime")
.monitorGuids(
"<GUID-1>",
"<GUID-2>")
.mode("ONE_TIME")
.startTime("2023-12-04T10:15:00")
.endTime("2024-01-04T16:24:30")
.timeZone("America/Los_Angeles")
.build());
}
}
resources:
sampleOneTimeNewrelicMonitorDowntime:
type: newrelic:MonitorDowntime
name: sample_one_time_newrelic_monitor_downtime
properties:
name: Sample One Time Monitor Downtime
monitorGuids:
- <GUID-1>
- <GUID-2>
mode: ONE_TIME
startTime: 2023-12-04T10:15:00
endTime: 2024-01-04T16:24:30
timeZone: America/Los_Angeles
Daily Monitor Downtime
The below example illustrates creating a daily monitor downtime.
Note that end_repeat
has been specified in the configuration; however, this is optional, in accordance with the rules of end_repeat
specified in the argument reference section above. This example uses the on_date
nested argument of end_repeat
, however, the other nested argument, on_repeat
may also be used instead, as you may see in some of the other examples below; though both on_date
and on_repeat
cannot be specified together, as they are mutually exclusive.
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const sampleDailyNewrelicMonitorDowntime = new newrelic.MonitorDowntime("sample_daily_newrelic_monitor_downtime", {
name: "Sample Daily Monitor Downtime",
monitorGuids: [
"<GUID-1>",
"<GUID-2>",
],
mode: "DAILY",
startTime: "2023-12-04T18:15:00",
endTime: "2024-01-04T07:15:00",
endRepeat: {
onDate: "2023-12-25",
},
timeZone: "Asia/Kolkata",
});
import pulumi
import pulumi_newrelic as newrelic
sample_daily_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_daily_newrelic_monitor_downtime",
name="Sample Daily Monitor Downtime",
monitor_guids=[
"<GUID-1>",
"<GUID-2>",
],
mode="DAILY",
start_time="2023-12-04T18:15:00",
end_time="2024-01-04T07:15:00",
end_repeat=newrelic.MonitorDowntimeEndRepeatArgs(
on_date="2023-12-25",
),
time_zone="Asia/Kolkata")
package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := newrelic.NewMonitorDowntime(ctx, "sample_daily_newrelic_monitor_downtime", &newrelic.MonitorDowntimeArgs{
Name: pulumi.String("Sample Daily Monitor Downtime"),
MonitorGuids: pulumi.StringArray{
pulumi.String("<GUID-1>"),
pulumi.String("<GUID-2>"),
},
Mode: pulumi.String("DAILY"),
StartTime: pulumi.String("2023-12-04T18:15:00"),
EndTime: pulumi.String("2024-01-04T07:15:00"),
EndRepeat: &newrelic.MonitorDowntimeEndRepeatArgs{
OnDate: pulumi.String("2023-12-25"),
},
TimeZone: pulumi.String("Asia/Kolkata"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() =>
{
var sampleDailyNewrelicMonitorDowntime = new NewRelic.MonitorDowntime("sample_daily_newrelic_monitor_downtime", new()
{
Name = "Sample Daily Monitor Downtime",
MonitorGuids = new[]
{
"<GUID-1>",
"<GUID-2>",
},
Mode = "DAILY",
StartTime = "2023-12-04T18:15:00",
EndTime = "2024-01-04T07:15:00",
EndRepeat = new NewRelic.Inputs.MonitorDowntimeEndRepeatArgs
{
OnDate = "2023-12-25",
},
TimeZone = "Asia/Kolkata",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.MonitorDowntime;
import com.pulumi.newrelic.MonitorDowntimeArgs;
import com.pulumi.newrelic.inputs.MonitorDowntimeEndRepeatArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var sampleDailyNewrelicMonitorDowntime = new MonitorDowntime("sampleDailyNewrelicMonitorDowntime", MonitorDowntimeArgs.builder()
.name("Sample Daily Monitor Downtime")
.monitorGuids(
"<GUID-1>",
"<GUID-2>")
.mode("DAILY")
.startTime("2023-12-04T18:15:00")
.endTime("2024-01-04T07:15:00")
.endRepeat(MonitorDowntimeEndRepeatArgs.builder()
.onDate("2023-12-25")
.build())
.timeZone("Asia/Kolkata")
.build());
}
}
resources:
sampleDailyNewrelicMonitorDowntime:
type: newrelic:MonitorDowntime
name: sample_daily_newrelic_monitor_downtime
properties:
name: Sample Daily Monitor Downtime
monitorGuids:
- <GUID-1>
- <GUID-2>
mode: DAILY
startTime: 2023-12-04T18:15:00
endTime: 2024-01-04T07:15:00
endRepeat:
onDate: 2023-12-25
timeZone: Asia/Kolkata
Weekly Monitor Downtime
The below example illustrates creating a weekly monitor downtime.
Note that maintenance_days
has been specified in the configuration as it is required with weekly monitor downtimes; and end_repeat
has not been specified as it is optional, all in accordance with the rules of these arguments specified in the argument reference section above.
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const sampleWeeklyNewrelicMonitorDowntime = new newrelic.MonitorDowntime("sample_weekly_newrelic_monitor_downtime", {
name: "Sample Weekly Monitor Downtime",
monitorGuids: [
"<GUID-1>",
"<GUID-2>",
],
mode: "WEEKLY",
startTime: "2023-12-04T14:15:00",
endTime: "2024-01-04T23:55:00",
timeZone: "US/Hawaii",
maintenanceDays: [
"SATURDAY",
"SUNDAY",
],
});
import pulumi
import pulumi_newrelic as newrelic
sample_weekly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_weekly_newrelic_monitor_downtime",
name="Sample Weekly Monitor Downtime",
monitor_guids=[
"<GUID-1>",
"<GUID-2>",
],
mode="WEEKLY",
start_time="2023-12-04T14:15:00",
end_time="2024-01-04T23:55:00",
time_zone="US/Hawaii",
maintenance_days=[
"SATURDAY",
"SUNDAY",
])
package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := newrelic.NewMonitorDowntime(ctx, "sample_weekly_newrelic_monitor_downtime", &newrelic.MonitorDowntimeArgs{
Name: pulumi.String("Sample Weekly Monitor Downtime"),
MonitorGuids: pulumi.StringArray{
pulumi.String("<GUID-1>"),
pulumi.String("<GUID-2>"),
},
Mode: pulumi.String("WEEKLY"),
StartTime: pulumi.String("2023-12-04T14:15:00"),
EndTime: pulumi.String("2024-01-04T23:55:00"),
TimeZone: pulumi.String("US/Hawaii"),
MaintenanceDays: pulumi.StringArray{
pulumi.String("SATURDAY"),
pulumi.String("SUNDAY"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() =>
{
var sampleWeeklyNewrelicMonitorDowntime = new NewRelic.MonitorDowntime("sample_weekly_newrelic_monitor_downtime", new()
{
Name = "Sample Weekly Monitor Downtime",
MonitorGuids = new[]
{
"<GUID-1>",
"<GUID-2>",
},
Mode = "WEEKLY",
StartTime = "2023-12-04T14:15:00",
EndTime = "2024-01-04T23:55:00",
TimeZone = "US/Hawaii",
MaintenanceDays = new[]
{
"SATURDAY",
"SUNDAY",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.MonitorDowntime;
import com.pulumi.newrelic.MonitorDowntimeArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var sampleWeeklyNewrelicMonitorDowntime = new MonitorDowntime("sampleWeeklyNewrelicMonitorDowntime", MonitorDowntimeArgs.builder()
.name("Sample Weekly Monitor Downtime")
.monitorGuids(
"<GUID-1>",
"<GUID-2>")
.mode("WEEKLY")
.startTime("2023-12-04T14:15:00")
.endTime("2024-01-04T23:55:00")
.timeZone("US/Hawaii")
.maintenanceDays(
"SATURDAY",
"SUNDAY")
.build());
}
}
resources:
sampleWeeklyNewrelicMonitorDowntime:
type: newrelic:MonitorDowntime
name: sample_weekly_newrelic_monitor_downtime
properties:
name: Sample Weekly Monitor Downtime
monitorGuids:
- <GUID-1>
- <GUID-2>
mode: WEEKLY
startTime: 2023-12-04T14:15:00
endTime: 2024-01-04T23:55:00
timeZone: US/Hawaii
maintenanceDays:
- SATURDAY
- SUNDAY
Monthly Monitor Downtime
The below example illustrates creating a monthly monitor downtime.
Note that frequency
has been specified in the configuration as it is required with monthly monitor downtimes, and end_repeat
has been specified too, though it is optional. frequency
has been specified with days_of_week
comprising both of its nested arguments, ordinal_day_of_month
and week_day
; all in accordance with the rules of these arguments specified in the argument reference section above.
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const sampleMonthlyNewrelicMonitorDowntime = new newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime", {
name: "Sample Monthly Monitor Downtime",
monitorGuids: [
"<GUID-1>",
"<GUID-2>",
],
mode: "MONTHLY",
startTime: "2023-12-04T07:15:00",
endTime: "2024-01-04T19:15:00",
endRepeat: {
onRepeat: 6,
},
timeZone: "Europe/Dublin",
frequency: {
daysOfWeek: {
ordinalDayOfMonth: "SECOND",
weekDay: "SATURDAY",
},
},
});
import pulumi
import pulumi_newrelic as newrelic
sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime",
name="Sample Monthly Monitor Downtime",
monitor_guids=[
"<GUID-1>",
"<GUID-2>",
],
mode="MONTHLY",
start_time="2023-12-04T07:15:00",
end_time="2024-01-04T19:15:00",
end_repeat=newrelic.MonitorDowntimeEndRepeatArgs(
on_repeat=6,
),
time_zone="Europe/Dublin",
frequency=newrelic.MonitorDowntimeFrequencyArgs(
days_of_week=newrelic.MonitorDowntimeFrequencyDaysOfWeekArgs(
ordinal_day_of_month="SECOND",
week_day="SATURDAY",
),
))
package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := newrelic.NewMonitorDowntime(ctx, "sample_monthly_newrelic_monitor_downtime", &newrelic.MonitorDowntimeArgs{
Name: pulumi.String("Sample Monthly Monitor Downtime"),
MonitorGuids: pulumi.StringArray{
pulumi.String("<GUID-1>"),
pulumi.String("<GUID-2>"),
},
Mode: pulumi.String("MONTHLY"),
StartTime: pulumi.String("2023-12-04T07:15:00"),
EndTime: pulumi.String("2024-01-04T19:15:00"),
EndRepeat: &newrelic.MonitorDowntimeEndRepeatArgs{
OnRepeat: pulumi.Int(6),
},
TimeZone: pulumi.String("Europe/Dublin"),
Frequency: &newrelic.MonitorDowntimeFrequencyArgs{
DaysOfWeek: &newrelic.MonitorDowntimeFrequencyDaysOfWeekArgs{
OrdinalDayOfMonth: pulumi.String("SECOND"),
WeekDay: pulumi.String("SATURDAY"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() =>
{
var sampleMonthlyNewrelicMonitorDowntime = new NewRelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime", new()
{
Name = "Sample Monthly Monitor Downtime",
MonitorGuids = new[]
{
"<GUID-1>",
"<GUID-2>",
},
Mode = "MONTHLY",
StartTime = "2023-12-04T07:15:00",
EndTime = "2024-01-04T19:15:00",
EndRepeat = new NewRelic.Inputs.MonitorDowntimeEndRepeatArgs
{
OnRepeat = 6,
},
TimeZone = "Europe/Dublin",
Frequency = new NewRelic.Inputs.MonitorDowntimeFrequencyArgs
{
DaysOfWeek = new NewRelic.Inputs.MonitorDowntimeFrequencyDaysOfWeekArgs
{
OrdinalDayOfMonth = "SECOND",
WeekDay = "SATURDAY",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.MonitorDowntime;
import com.pulumi.newrelic.MonitorDowntimeArgs;
import com.pulumi.newrelic.inputs.MonitorDowntimeEndRepeatArgs;
import com.pulumi.newrelic.inputs.MonitorDowntimeFrequencyArgs;
import com.pulumi.newrelic.inputs.MonitorDowntimeFrequencyDaysOfWeekArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var sampleMonthlyNewrelicMonitorDowntime = new MonitorDowntime("sampleMonthlyNewrelicMonitorDowntime", MonitorDowntimeArgs.builder()
.name("Sample Monthly Monitor Downtime")
.monitorGuids(
"<GUID-1>",
"<GUID-2>")
.mode("MONTHLY")
.startTime("2023-12-04T07:15:00")
.endTime("2024-01-04T19:15:00")
.endRepeat(MonitorDowntimeEndRepeatArgs.builder()
.onRepeat(6)
.build())
.timeZone("Europe/Dublin")
.frequency(MonitorDowntimeFrequencyArgs.builder()
.daysOfWeek(MonitorDowntimeFrequencyDaysOfWeekArgs.builder()
.ordinalDayOfMonth("SECOND")
.weekDay("SATURDAY")
.build())
.build())
.build());
}
}
resources:
sampleMonthlyNewrelicMonitorDowntime:
type: newrelic:MonitorDowntime
name: sample_monthly_newrelic_monitor_downtime
properties:
name: Sample Monthly Monitor Downtime
monitorGuids:
- <GUID-1>
- <GUID-2>
mode: MONTHLY
startTime: 2023-12-04T07:15:00
endTime: 2024-01-04T19:15:00
endRepeat:
onRepeat: 6
timeZone: Europe/Dublin
frequency:
daysOfWeek:
ordinalDayOfMonth: SECOND
weekDay: SATURDAY
However, the frequency
block in monthly monitor downtimes may also be specified with its other nested argument, days_of_month
, as shown in the example below - though both days_of_month
and days_of_week
cannot be specified together, as they are mutually exclusive.
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";
const sampleMonthlyNewrelicMonitorDowntime = new newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime", {
name: "Sample Monthly Monitor Downtime",
monitorGuids: [
"<GUID-1>",
"<GUID-2>",
],
mode: "MONTHLY",
startTime: "2023-12-04T07:15:00",
endTime: "2024-01-04T19:15:00",
endRepeat: {
onRepeat: 6,
},
timeZone: "Europe/Dublin",
frequency: {
daysOfMonths: [
3,
6,
14,
23,
],
},
});
import pulumi
import pulumi_newrelic as newrelic
sample_monthly_newrelic_monitor_downtime = newrelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime",
name="Sample Monthly Monitor Downtime",
monitor_guids=[
"<GUID-1>",
"<GUID-2>",
],
mode="MONTHLY",
start_time="2023-12-04T07:15:00",
end_time="2024-01-04T19:15:00",
end_repeat=newrelic.MonitorDowntimeEndRepeatArgs(
on_repeat=6,
),
time_zone="Europe/Dublin",
frequency=newrelic.MonitorDowntimeFrequencyArgs(
days_of_months=[
3,
6,
14,
23,
],
))
package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := newrelic.NewMonitorDowntime(ctx, "sample_monthly_newrelic_monitor_downtime", &newrelic.MonitorDowntimeArgs{
Name: pulumi.String("Sample Monthly Monitor Downtime"),
MonitorGuids: pulumi.StringArray{
pulumi.String("<GUID-1>"),
pulumi.String("<GUID-2>"),
},
Mode: pulumi.String("MONTHLY"),
StartTime: pulumi.String("2023-12-04T07:15:00"),
EndTime: pulumi.String("2024-01-04T19:15:00"),
EndRepeat: &newrelic.MonitorDowntimeEndRepeatArgs{
OnRepeat: pulumi.Int(6),
},
TimeZone: pulumi.String("Europe/Dublin"),
Frequency: &newrelic.MonitorDowntimeFrequencyArgs{
DaysOfMonths: pulumi.IntArray{
pulumi.Int(3),
pulumi.Int(6),
pulumi.Int(14),
pulumi.Int(23),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;
return await Deployment.RunAsync(() =>
{
var sampleMonthlyNewrelicMonitorDowntime = new NewRelic.MonitorDowntime("sample_monthly_newrelic_monitor_downtime", new()
{
Name = "Sample Monthly Monitor Downtime",
MonitorGuids = new[]
{
"<GUID-1>",
"<GUID-2>",
},
Mode = "MONTHLY",
StartTime = "2023-12-04T07:15:00",
EndTime = "2024-01-04T19:15:00",
EndRepeat = new NewRelic.Inputs.MonitorDowntimeEndRepeatArgs
{
OnRepeat = 6,
},
TimeZone = "Europe/Dublin",
Frequency = new NewRelic.Inputs.MonitorDowntimeFrequencyArgs
{
DaysOfMonths = new[]
{
3,
6,
14,
23,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.MonitorDowntime;
import com.pulumi.newrelic.MonitorDowntimeArgs;
import com.pulumi.newrelic.inputs.MonitorDowntimeEndRepeatArgs;
import com.pulumi.newrelic.inputs.MonitorDowntimeFrequencyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var sampleMonthlyNewrelicMonitorDowntime = new MonitorDowntime("sampleMonthlyNewrelicMonitorDowntime", MonitorDowntimeArgs.builder()
.name("Sample Monthly Monitor Downtime")
.monitorGuids(
"<GUID-1>",
"<GUID-2>")
.mode("MONTHLY")
.startTime("2023-12-04T07:15:00")
.endTime("2024-01-04T19:15:00")
.endRepeat(MonitorDowntimeEndRepeatArgs.builder()
.onRepeat(6)
.build())
.timeZone("Europe/Dublin")
.frequency(MonitorDowntimeFrequencyArgs.builder()
.daysOfMonths(
3,
6,
14,
23)
.build())
.build());
}
}
resources:
sampleMonthlyNewrelicMonitorDowntime:
type: newrelic:MonitorDowntime
name: sample_monthly_newrelic_monitor_downtime
properties:
name: Sample Monthly Monitor Downtime
monitorGuids:
- <GUID-1>
- <GUID-2>
mode: MONTHLY
startTime: 2023-12-04T07:15:00
endTime: 2024-01-04T19:15:00
endRepeat:
onRepeat: 6
timeZone: Europe/Dublin
frequency:
daysOfMonths:
- 3
- 6
- 14
- 23
Create MonitorDowntime Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitorDowntime(name: string, args: MonitorDowntimeArgs, opts?: CustomResourceOptions);
@overload
def MonitorDowntime(resource_name: str,
args: MonitorDowntimeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitorDowntime(resource_name: str,
opts: Optional[ResourceOptions] = None,
end_time: Optional[str] = None,
mode: Optional[str] = None,
start_time: Optional[str] = None,
time_zone: Optional[str] = None,
account_id: Optional[str] = None,
end_repeat: Optional[MonitorDowntimeEndRepeatArgs] = None,
frequency: Optional[MonitorDowntimeFrequencyArgs] = None,
maintenance_days: Optional[Sequence[str]] = None,
monitor_guids: Optional[Sequence[str]] = None,
name: Optional[str] = None)
func NewMonitorDowntime(ctx *Context, name string, args MonitorDowntimeArgs, opts ...ResourceOption) (*MonitorDowntime, error)
public MonitorDowntime(string name, MonitorDowntimeArgs args, CustomResourceOptions? opts = null)
public MonitorDowntime(String name, MonitorDowntimeArgs args)
public MonitorDowntime(String name, MonitorDowntimeArgs args, CustomResourceOptions options)
type: newrelic:MonitorDowntime
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args MonitorDowntimeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args MonitorDowntimeArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args MonitorDowntimeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorDowntimeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorDowntimeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var monitorDowntimeResource = new NewRelic.MonitorDowntime("monitorDowntimeResource", new()
{
EndTime = "string",
Mode = "string",
StartTime = "string",
TimeZone = "string",
AccountId = "string",
EndRepeat = new NewRelic.Inputs.MonitorDowntimeEndRepeatArgs
{
OnDate = "string",
OnRepeat = 0,
},
Frequency = new NewRelic.Inputs.MonitorDowntimeFrequencyArgs
{
DaysOfMonths = new[]
{
0,
},
DaysOfWeek = new NewRelic.Inputs.MonitorDowntimeFrequencyDaysOfWeekArgs
{
OrdinalDayOfMonth = "string",
WeekDay = "string",
},
},
MaintenanceDays = new[]
{
"string",
},
MonitorGuids = new[]
{
"string",
},
Name = "string",
});
example, err := newrelic.NewMonitorDowntime(ctx, "monitorDowntimeResource", &newrelic.MonitorDowntimeArgs{
EndTime: pulumi.String("string"),
Mode: pulumi.String("string"),
StartTime: pulumi.String("string"),
TimeZone: pulumi.String("string"),
AccountId: pulumi.String("string"),
EndRepeat: &newrelic.MonitorDowntimeEndRepeatArgs{
OnDate: pulumi.String("string"),
OnRepeat: pulumi.Int(0),
},
Frequency: &newrelic.MonitorDowntimeFrequencyArgs{
DaysOfMonths: pulumi.IntArray{
pulumi.Int(0),
},
DaysOfWeek: &newrelic.MonitorDowntimeFrequencyDaysOfWeekArgs{
OrdinalDayOfMonth: pulumi.String("string"),
WeekDay: pulumi.String("string"),
},
},
MaintenanceDays: pulumi.StringArray{
pulumi.String("string"),
},
MonitorGuids: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
})
var monitorDowntimeResource = new MonitorDowntime("monitorDowntimeResource", MonitorDowntimeArgs.builder()
.endTime("string")
.mode("string")
.startTime("string")
.timeZone("string")
.accountId("string")
.endRepeat(MonitorDowntimeEndRepeatArgs.builder()
.onDate("string")
.onRepeat(0)
.build())
.frequency(MonitorDowntimeFrequencyArgs.builder()
.daysOfMonths(0)
.daysOfWeek(MonitorDowntimeFrequencyDaysOfWeekArgs.builder()
.ordinalDayOfMonth("string")
.weekDay("string")
.build())
.build())
.maintenanceDays("string")
.monitorGuids("string")
.name("string")
.build());
monitor_downtime_resource = newrelic.MonitorDowntime("monitorDowntimeResource",
end_time="string",
mode="string",
start_time="string",
time_zone="string",
account_id="string",
end_repeat=newrelic.MonitorDowntimeEndRepeatArgs(
on_date="string",
on_repeat=0,
),
frequency=newrelic.MonitorDowntimeFrequencyArgs(
days_of_months=[0],
days_of_week=newrelic.MonitorDowntimeFrequencyDaysOfWeekArgs(
ordinal_day_of_month="string",
week_day="string",
),
),
maintenance_days=["string"],
monitor_guids=["string"],
name="string")
const monitorDowntimeResource = new newrelic.MonitorDowntime("monitorDowntimeResource", {
endTime: "string",
mode: "string",
startTime: "string",
timeZone: "string",
accountId: "string",
endRepeat: {
onDate: "string",
onRepeat: 0,
},
frequency: {
daysOfMonths: [0],
daysOfWeek: {
ordinalDayOfMonth: "string",
weekDay: "string",
},
},
maintenanceDays: ["string"],
monitorGuids: ["string"],
name: "string",
});
type: newrelic:MonitorDowntime
properties:
accountId: string
endRepeat:
onDate: string
onRepeat: 0
endTime: string
frequency:
daysOfMonths:
- 0
daysOfWeek:
ordinalDayOfMonth: string
weekDay: string
maintenanceDays:
- string
mode: string
monitorGuids:
- string
name: string
startTime: string
timeZone: string
MonitorDowntime Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The MonitorDowntime resource accepts the following input properties:
- End
Time string - A datetime stamp signifying the end of the Monitor Downtime.
- Mode string
- An identifier of the type of Monitor Downtime to be created.
- Start
Time string - A datetime stamp signifying the start of the Monitor Downtime.
- Time
Zone string - The timezone that applies to the Monitor Downtime schedule.
- Account
Id string - The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the
account_id
in the provider{} configuration if not specified. - End
Repeat Pulumi.New Relic. Inputs. Monitor Downtime End Repeat - A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
- Frequency
Pulumi.
New Relic. Inputs. Monitor Downtime Frequency - Configuration options for which days of the month a monitor downtime will occur
- Maintenance
Days List<string> - A list of maintenance days to be included with the created weekly Monitor Downtime.
- Monitor
Guids List<string> - A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
- Name string
- A name to identify the Monitor Downtime to be created.
- End
Time string - A datetime stamp signifying the end of the Monitor Downtime.
- Mode string
- An identifier of the type of Monitor Downtime to be created.
- Start
Time string - A datetime stamp signifying the start of the Monitor Downtime.
- Time
Zone string - The timezone that applies to the Monitor Downtime schedule.
- Account
Id string - The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the
account_id
in the provider{} configuration if not specified. - End
Repeat MonitorDowntime End Repeat Args - A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
- Frequency
Monitor
Downtime Frequency Args - Configuration options for which days of the month a monitor downtime will occur
- Maintenance
Days []string - A list of maintenance days to be included with the created weekly Monitor Downtime.
- Monitor
Guids []string - A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
- Name string
- A name to identify the Monitor Downtime to be created.
- end
Time String - A datetime stamp signifying the end of the Monitor Downtime.
- mode String
- An identifier of the type of Monitor Downtime to be created.
- start
Time String - A datetime stamp signifying the start of the Monitor Downtime.
- time
Zone String - The timezone that applies to the Monitor Downtime schedule.
- account
Id String - The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the
account_id
in the provider{} configuration if not specified. - end
Repeat MonitorDowntime End Repeat - A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
- frequency
Monitor
Downtime Frequency - Configuration options for which days of the month a monitor downtime will occur
- maintenance
Days List<String> - A list of maintenance days to be included with the created weekly Monitor Downtime.
- monitor
Guids List<String> - A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
- name String
- A name to identify the Monitor Downtime to be created.
- end
Time string - A datetime stamp signifying the end of the Monitor Downtime.
- mode string
- An identifier of the type of Monitor Downtime to be created.
- start
Time string - A datetime stamp signifying the start of the Monitor Downtime.
- time
Zone string - The timezone that applies to the Monitor Downtime schedule.
- account
Id string - The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the
account_id
in the provider{} configuration if not specified. - end
Repeat MonitorDowntime End Repeat - A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
- frequency
Monitor
Downtime Frequency - Configuration options for which days of the month a monitor downtime will occur
- maintenance
Days string[] - A list of maintenance days to be included with the created weekly Monitor Downtime.
- monitor
Guids string[] - A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
- name string
- A name to identify the Monitor Downtime to be created.
- end_
time str - A datetime stamp signifying the end of the Monitor Downtime.
- mode str
- An identifier of the type of Monitor Downtime to be created.
- start_
time str - A datetime stamp signifying the start of the Monitor Downtime.
- time_
zone str - The timezone that applies to the Monitor Downtime schedule.
- account_
id str - The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the
account_id
in the provider{} configuration if not specified. - end_
repeat MonitorDowntime End Repeat Args - A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
- frequency
Monitor
Downtime Frequency Args - Configuration options for which days of the month a monitor downtime will occur
- maintenance_
days Sequence[str] - A list of maintenance days to be included with the created weekly Monitor Downtime.
- monitor_
guids Sequence[str] - A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
- name str
- A name to identify the Monitor Downtime to be created.
- end
Time String - A datetime stamp signifying the end of the Monitor Downtime.
- mode String
- An identifier of the type of Monitor Downtime to be created.
- start
Time String - A datetime stamp signifying the start of the Monitor Downtime.
- time
Zone String - The timezone that applies to the Monitor Downtime schedule.
- account
Id String - The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the
account_id
in the provider{} configuration if not specified. - end
Repeat Property Map - A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
- frequency Property Map
- Configuration options for which days of the month a monitor downtime will occur
- maintenance
Days List<String> - A list of maintenance days to be included with the created weekly Monitor Downtime.
- monitor
Guids List<String> - A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
- name String
- A name to identify the Monitor Downtime to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitorDowntime resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing MonitorDowntime Resource
Get an existing MonitorDowntime resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: MonitorDowntimeState, opts?: CustomResourceOptions): MonitorDowntime
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
end_repeat: Optional[MonitorDowntimeEndRepeatArgs] = None,
end_time: Optional[str] = None,
frequency: Optional[MonitorDowntimeFrequencyArgs] = None,
maintenance_days: Optional[Sequence[str]] = None,
mode: Optional[str] = None,
monitor_guids: Optional[Sequence[str]] = None,
name: Optional[str] = None,
start_time: Optional[str] = None,
time_zone: Optional[str] = None) -> MonitorDowntime
func GetMonitorDowntime(ctx *Context, name string, id IDInput, state *MonitorDowntimeState, opts ...ResourceOption) (*MonitorDowntime, error)
public static MonitorDowntime Get(string name, Input<string> id, MonitorDowntimeState? state, CustomResourceOptions? opts = null)
public static MonitorDowntime get(String name, Output<String> id, MonitorDowntimeState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the
account_id
in the provider{} configuration if not specified. - End
Repeat Pulumi.New Relic. Inputs. Monitor Downtime End Repeat - A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
- End
Time string - A datetime stamp signifying the end of the Monitor Downtime.
- Frequency
Pulumi.
New Relic. Inputs. Monitor Downtime Frequency - Configuration options for which days of the month a monitor downtime will occur
- Maintenance
Days List<string> - A list of maintenance days to be included with the created weekly Monitor Downtime.
- Mode string
- An identifier of the type of Monitor Downtime to be created.
- Monitor
Guids List<string> - A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
- Name string
- A name to identify the Monitor Downtime to be created.
- Start
Time string - A datetime stamp signifying the start of the Monitor Downtime.
- Time
Zone string - The timezone that applies to the Monitor Downtime schedule.
- Account
Id string - The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the
account_id
in the provider{} configuration if not specified. - End
Repeat MonitorDowntime End Repeat Args - A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
- End
Time string - A datetime stamp signifying the end of the Monitor Downtime.
- Frequency
Monitor
Downtime Frequency Args - Configuration options for which days of the month a monitor downtime will occur
- Maintenance
Days []string - A list of maintenance days to be included with the created weekly Monitor Downtime.
- Mode string
- An identifier of the type of Monitor Downtime to be created.
- Monitor
Guids []string - A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
- Name string
- A name to identify the Monitor Downtime to be created.
- Start
Time string - A datetime stamp signifying the start of the Monitor Downtime.
- Time
Zone string - The timezone that applies to the Monitor Downtime schedule.
- account
Id String - The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the
account_id
in the provider{} configuration if not specified. - end
Repeat MonitorDowntime End Repeat - A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
- end
Time String - A datetime stamp signifying the end of the Monitor Downtime.
- frequency
Monitor
Downtime Frequency - Configuration options for which days of the month a monitor downtime will occur
- maintenance
Days List<String> - A list of maintenance days to be included with the created weekly Monitor Downtime.
- mode String
- An identifier of the type of Monitor Downtime to be created.
- monitor
Guids List<String> - A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
- name String
- A name to identify the Monitor Downtime to be created.
- start
Time String - A datetime stamp signifying the start of the Monitor Downtime.
- time
Zone String - The timezone that applies to the Monitor Downtime schedule.
- account
Id string - The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the
account_id
in the provider{} configuration if not specified. - end
Repeat MonitorDowntime End Repeat - A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
- end
Time string - A datetime stamp signifying the end of the Monitor Downtime.
- frequency
Monitor
Downtime Frequency - Configuration options for which days of the month a monitor downtime will occur
- maintenance
Days string[] - A list of maintenance days to be included with the created weekly Monitor Downtime.
- mode string
- An identifier of the type of Monitor Downtime to be created.
- monitor
Guids string[] - A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
- name string
- A name to identify the Monitor Downtime to be created.
- start
Time string - A datetime stamp signifying the start of the Monitor Downtime.
- time
Zone string - The timezone that applies to the Monitor Downtime schedule.
- account_
id str - The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the
account_id
in the provider{} configuration if not specified. - end_
repeat MonitorDowntime End Repeat Args - A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
- end_
time str - A datetime stamp signifying the end of the Monitor Downtime.
- frequency
Monitor
Downtime Frequency Args - Configuration options for which days of the month a monitor downtime will occur
- maintenance_
days Sequence[str] - A list of maintenance days to be included with the created weekly Monitor Downtime.
- mode str
- An identifier of the type of Monitor Downtime to be created.
- monitor_
guids Sequence[str] - A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
- name str
- A name to identify the Monitor Downtime to be created.
- start_
time str - A datetime stamp signifying the start of the Monitor Downtime.
- time_
zone str - The timezone that applies to the Monitor Downtime schedule.
- account
Id String - The ID of the New Relic account in which the Monitor Downtime shall be created. Defaults to the
account_id
in the provider{} configuration if not specified. - end
Repeat Property Map - A specification of when the Monitor Downtime should end its repeat cycle, by number of occurrences or date.
- end
Time String - A datetime stamp signifying the end of the Monitor Downtime.
- frequency Property Map
- Configuration options for which days of the month a monitor downtime will occur
- maintenance
Days List<String> - A list of maintenance days to be included with the created weekly Monitor Downtime.
- mode String
- An identifier of the type of Monitor Downtime to be created.
- monitor
Guids List<String> - A list of GUIDs of monitors, to which the created Monitor Downtime shall be applied.
- name String
- A name to identify the Monitor Downtime to be created.
- start
Time String - A datetime stamp signifying the start of the Monitor Downtime.
- time
Zone String - The timezone that applies to the Monitor Downtime schedule.
Supporting Types
MonitorDowntimeEndRepeat, MonitorDowntimeEndRepeatArgs
MonitorDowntimeFrequency, MonitorDowntimeFrequencyArgs
- Days
Of List<int>Months - A numerical list of days of a month on which the Monitor Downtime is scheduled to run.
- Days
Of Pulumi.Week New Relic. Inputs. Monitor Downtime Frequency Days Of Week - A list of days of the week on which the Monitor Downtime is scheduled to run.
- Days
Of []intMonths - A numerical list of days of a month on which the Monitor Downtime is scheduled to run.
- Days
Of MonitorWeek Downtime Frequency Days Of Week - A list of days of the week on which the Monitor Downtime is scheduled to run.
- days
Of List<Integer>Months - A numerical list of days of a month on which the Monitor Downtime is scheduled to run.
- days
Of MonitorWeek Downtime Frequency Days Of Week - A list of days of the week on which the Monitor Downtime is scheduled to run.
- days
Of number[]Months - A numerical list of days of a month on which the Monitor Downtime is scheduled to run.
- days
Of MonitorWeek Downtime Frequency Days Of Week - A list of days of the week on which the Monitor Downtime is scheduled to run.
- days_
of_ Sequence[int]months - A numerical list of days of a month on which the Monitor Downtime is scheduled to run.
- days_
of_ Monitorweek Downtime Frequency Days Of Week - A list of days of the week on which the Monitor Downtime is scheduled to run.
- days
Of List<Number>Months - A numerical list of days of a month on which the Monitor Downtime is scheduled to run.
- days
Of Property MapWeek - A list of days of the week on which the Monitor Downtime is scheduled to run.
MonitorDowntimeFrequencyDaysOfWeek, MonitorDowntimeFrequencyDaysOfWeekArgs
- Ordinal
Day stringOf Month - An occurrence of the day selected within the month.
- Week
Day string - The day of the week on which the Monitor Downtime would run.
- Ordinal
Day stringOf Month - An occurrence of the day selected within the month.
- Week
Day string - The day of the week on which the Monitor Downtime would run.
- ordinal
Day StringOf Month - An occurrence of the day selected within the month.
- week
Day String - The day of the week on which the Monitor Downtime would run.
- ordinal
Day stringOf Month - An occurrence of the day selected within the month.
- week
Day string - The day of the week on which the Monitor Downtime would run.
- ordinal_
day_ strof_ month - An occurrence of the day selected within the month.
- week_
day str - The day of the week on which the Monitor Downtime would run.
- ordinal
Day StringOf Month - An occurrence of the day selected within the month.
- week
Day String - The day of the week on which the Monitor Downtime would run.
Import
A monitor downtime can be imported into Terraform configuration using its guid
, i.e.
bash
$ pulumi import newrelic:index/monitorDowntime:MonitorDowntime monitor <guid>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- New Relic pulumi/pulumi-newrelic
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
newrelic
Terraform Provider.