newrelic logo
New Relic v5.12.0, May 30 23

newrelic.ServiceLevel

Explore with Pulumi AI

Use this resource to create, update, and delete New Relic Service Level Indicators and Objectives.

A New Relic User API key is required to provision this resource. Set the api_key attribute in the provider block or the NEW_RELIC_API_KEY environment variable with your User API key.

Important:

  • Only roles that provide permissions to create events to metric rules can create SLI/SLOs.
  • Only Full users can view SLI/SLOs.

Additional Example

Service level with tags:

import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const mySyntheticMonitorServiceLevel = new newrelic.ServiceLevel("mySyntheticMonitorServiceLevel", {
    guid: "MXxBUE18QVBQTElDQVRJT058MQ",
    description: "Proportion of successful synthetic checks.",
    events: {
        accountId: 12345678,
        validEvents: {
            from: "SyntheticCheck",
            where: "entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ'",
        },
        goodEvents: {
            from: "SyntheticCheck",
            where: "entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ' AND result='SUCCESS'",
        },
    },
    objective: {
        target: 99,
        timeWindow: {
            rolling: {
                count: 7,
                unit: "DAY",
            },
        },
    },
});
const mySyntheticMonitorServiceLevelTags = new newrelic.EntityTags("mySyntheticMonitorServiceLevelTags", {
    guid: mySyntheticMonitorServiceLevel.sliGuid,
    tags: [
        {
            key: "user_journey",
            values: [
                "authentication",
                "sso",
            ],
        },
        {
            key: "owner",
            values: ["identityTeam"],
        },
    ],
});
import pulumi
import pulumi_newrelic as newrelic

my_synthetic_monitor_service_level = newrelic.ServiceLevel("mySyntheticMonitorServiceLevel",
    guid="MXxBUE18QVBQTElDQVRJT058MQ",
    description="Proportion of successful synthetic checks.",
    events=newrelic.ServiceLevelEventsArgs(
        account_id=12345678,
        valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
            from_="SyntheticCheck",
            where="entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ'",
        ),
        good_events=newrelic.ServiceLevelEventsGoodEventsArgs(
            from_="SyntheticCheck",
            where="entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ' AND result='SUCCESS'",
        ),
    ),
    objective=newrelic.ServiceLevelObjectiveArgs(
        target=99,
        time_window=newrelic.ServiceLevelObjectiveTimeWindowArgs(
            rolling=newrelic.ServiceLevelObjectiveTimeWindowRollingArgs(
                count=7,
                unit="DAY",
            ),
        ),
    ))
my_synthetic_monitor_service_level_tags = newrelic.EntityTags("mySyntheticMonitorServiceLevelTags",
    guid=my_synthetic_monitor_service_level.sli_guid,
    tags=[
        newrelic.EntityTagsTagArgs(
            key="user_journey",
            values=[
                "authentication",
                "sso",
            ],
        ),
        newrelic.EntityTagsTagArgs(
            key="owner",
            values=["identityTeam"],
        ),
    ])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;

return await Deployment.RunAsync(() => 
{
    var mySyntheticMonitorServiceLevel = new NewRelic.ServiceLevel("mySyntheticMonitorServiceLevel", new()
    {
        Guid = "MXxBUE18QVBQTElDQVRJT058MQ",
        Description = "Proportion of successful synthetic checks.",
        Events = new NewRelic.Inputs.ServiceLevelEventsArgs
        {
            AccountId = 12345678,
            ValidEvents = new NewRelic.Inputs.ServiceLevelEventsValidEventsArgs
            {
                From = "SyntheticCheck",
                Where = "entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ'",
            },
            GoodEvents = new NewRelic.Inputs.ServiceLevelEventsGoodEventsArgs
            {
                From = "SyntheticCheck",
                Where = "entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ' AND result='SUCCESS'",
            },
        },
        Objective = new NewRelic.Inputs.ServiceLevelObjectiveArgs
        {
            Target = 99,
            TimeWindow = new NewRelic.Inputs.ServiceLevelObjectiveTimeWindowArgs
            {
                Rolling = new NewRelic.Inputs.ServiceLevelObjectiveTimeWindowRollingArgs
                {
                    Count = 7,
                    Unit = "DAY",
                },
            },
        },
    });

    var mySyntheticMonitorServiceLevelTags = new NewRelic.EntityTags("mySyntheticMonitorServiceLevelTags", new()
    {
        Guid = mySyntheticMonitorServiceLevel.SliGuid,
        Tags = new[]
        {
            new NewRelic.Inputs.EntityTagsTagArgs
            {
                Key = "user_journey",
                Values = new[]
                {
                    "authentication",
                    "sso",
                },
            },
            new NewRelic.Inputs.EntityTagsTagArgs
            {
                Key = "owner",
                Values = new[]
                {
                    "identityTeam",
                },
            },
        },
    });

});
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 {
		mySyntheticMonitorServiceLevel, err := newrelic.NewServiceLevel(ctx, "mySyntheticMonitorServiceLevel", &newrelic.ServiceLevelArgs{
			Guid:        pulumi.String("MXxBUE18QVBQTElDQVRJT058MQ"),
			Description: pulumi.String("Proportion of successful synthetic checks."),
			Events: &newrelic.ServiceLevelEventsArgs{
				AccountId: pulumi.Int(12345678),
				ValidEvents: &newrelic.ServiceLevelEventsValidEventsArgs{
					From:  pulumi.String("SyntheticCheck"),
					Where: pulumi.String("entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ'"),
				},
				GoodEvents: &newrelic.ServiceLevelEventsGoodEventsArgs{
					From:  pulumi.String("SyntheticCheck"),
					Where: pulumi.String("entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ' AND result='SUCCESS'"),
				},
			},
			Objective: &newrelic.ServiceLevelObjectiveArgs{
				Target: pulumi.Float64(99),
				TimeWindow: &newrelic.ServiceLevelObjectiveTimeWindowArgs{
					Rolling: &newrelic.ServiceLevelObjectiveTimeWindowRollingArgs{
						Count: pulumi.Int(7),
						Unit:  pulumi.String("DAY"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = newrelic.NewEntityTags(ctx, "mySyntheticMonitorServiceLevelTags", &newrelic.EntityTagsArgs{
			Guid: mySyntheticMonitorServiceLevel.SliGuid,
			Tags: newrelic.EntityTagsTagArray{
				&newrelic.EntityTagsTagArgs{
					Key: pulumi.String("user_journey"),
					Values: pulumi.StringArray{
						pulumi.String("authentication"),
						pulumi.String("sso"),
					},
				},
				&newrelic.EntityTagsTagArgs{
					Key: pulumi.String("owner"),
					Values: pulumi.StringArray{
						pulumi.String("identityTeam"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.ServiceLevel;
import com.pulumi.newrelic.ServiceLevelArgs;
import com.pulumi.newrelic.inputs.ServiceLevelEventsArgs;
import com.pulumi.newrelic.inputs.ServiceLevelEventsValidEventsArgs;
import com.pulumi.newrelic.inputs.ServiceLevelEventsGoodEventsArgs;
import com.pulumi.newrelic.inputs.ServiceLevelObjectiveArgs;
import com.pulumi.newrelic.inputs.ServiceLevelObjectiveTimeWindowArgs;
import com.pulumi.newrelic.inputs.ServiceLevelObjectiveTimeWindowRollingArgs;
import com.pulumi.newrelic.EntityTags;
import com.pulumi.newrelic.EntityTagsArgs;
import com.pulumi.newrelic.inputs.EntityTagsTagArgs;
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 mySyntheticMonitorServiceLevel = new ServiceLevel("mySyntheticMonitorServiceLevel", ServiceLevelArgs.builder()        
            .guid("MXxBUE18QVBQTElDQVRJT058MQ")
            .description("Proportion of successful synthetic checks.")
            .events(ServiceLevelEventsArgs.builder()
                .accountId(12345678)
                .validEvents(ServiceLevelEventsValidEventsArgs.builder()
                    .from("SyntheticCheck")
                    .where("entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ'")
                    .build())
                .goodEvents(ServiceLevelEventsGoodEventsArgs.builder()
                    .from("SyntheticCheck")
                    .where("entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ' AND result='SUCCESS'")
                    .build())
                .build())
            .objective(ServiceLevelObjectiveArgs.builder()
                .target(99)
                .timeWindow(ServiceLevelObjectiveTimeWindowArgs.builder()
                    .rolling(ServiceLevelObjectiveTimeWindowRollingArgs.builder()
                        .count(7)
                        .unit("DAY")
                        .build())
                    .build())
                .build())
            .build());

        var mySyntheticMonitorServiceLevelTags = new EntityTags("mySyntheticMonitorServiceLevelTags", EntityTagsArgs.builder()        
            .guid(mySyntheticMonitorServiceLevel.sliGuid())
            .tags(            
                EntityTagsTagArgs.builder()
                    .key("user_journey")
                    .values(                    
                        "authentication",
                        "sso")
                    .build(),
                EntityTagsTagArgs.builder()
                    .key("owner")
                    .values("identityTeam")
                    .build())
            .build());

    }
}
resources:
  mySyntheticMonitorServiceLevel:
    type: newrelic:ServiceLevel
    properties:
      guid: MXxBUE18QVBQTElDQVRJT058MQ
      description: Proportion of successful synthetic checks.
      events:
        accountId: 1.2345678e+07
        validEvents:
          from: SyntheticCheck
          where: entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ'
        goodEvents:
          from: SyntheticCheck
          where: entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ' AND result='SUCCESS'
      objective:
        target: 99
        timeWindow:
          rolling:
            count: 7
            unit: DAY
  mySyntheticMonitorServiceLevelTags:
    type: newrelic:EntityTags
    properties:
      guid: ${mySyntheticMonitorServiceLevel.sliGuid}
      tags:
        - key: user_journey
          values:
            - authentication
            - sso
        - key: owner
          values:
            - identityTeam

For up-to-date documentation about the tagging resource, please check newrelic.EntityTags

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;

return await Deployment.RunAsync(() => 
{
    var foo = new NewRelic.ServiceLevel("foo", new()
    {
        Description = "Proportion of requests that are served faster than a threshold.",
        Events = new NewRelic.Inputs.ServiceLevelEventsArgs
        {
            AccountId = 12345678,
            GoodEvents = new NewRelic.Inputs.ServiceLevelEventsGoodEventsArgs
            {
                From = "Transaction",
                Where = "appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1",
            },
            ValidEvents = new NewRelic.Inputs.ServiceLevelEventsValidEventsArgs
            {
                From = "Transaction",
                Where = "appName = 'Example application' AND (transactionType='Web')",
            },
        },
        Guid = "MXxBUE18QVBQTElDQVRJT058MQ",
        Objective = new NewRelic.Inputs.ServiceLevelObjectiveArgs
        {
            Target = 99,
            TimeWindow = new NewRelic.Inputs.ServiceLevelObjectiveTimeWindowArgs
            {
                Rolling = new NewRelic.Inputs.ServiceLevelObjectiveTimeWindowRollingArgs
                {
                    Count = 7,
                    Unit = "DAY",
                },
            },
        },
    });

});
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.NewServiceLevel(ctx, "foo", &newrelic.ServiceLevelArgs{
			Description: pulumi.String("Proportion of requests that are served faster than a threshold."),
			Events: &newrelic.ServiceLevelEventsArgs{
				AccountId: pulumi.Int(12345678),
				GoodEvents: &newrelic.ServiceLevelEventsGoodEventsArgs{
					From:  pulumi.String("Transaction"),
					Where: pulumi.String("appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1"),
				},
				ValidEvents: &newrelic.ServiceLevelEventsValidEventsArgs{
					From:  pulumi.String("Transaction"),
					Where: pulumi.String("appName = 'Example application' AND (transactionType='Web')"),
				},
			},
			Guid: pulumi.String("MXxBUE18QVBQTElDQVRJT058MQ"),
			Objective: &newrelic.ServiceLevelObjectiveArgs{
				Target: pulumi.Float64(99),
				TimeWindow: &newrelic.ServiceLevelObjectiveTimeWindowArgs{
					Rolling: &newrelic.ServiceLevelObjectiveTimeWindowRollingArgs{
						Count: pulumi.Int(7),
						Unit:  pulumi.String("DAY"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.ServiceLevel;
import com.pulumi.newrelic.ServiceLevelArgs;
import com.pulumi.newrelic.inputs.ServiceLevelEventsArgs;
import com.pulumi.newrelic.inputs.ServiceLevelEventsGoodEventsArgs;
import com.pulumi.newrelic.inputs.ServiceLevelEventsValidEventsArgs;
import com.pulumi.newrelic.inputs.ServiceLevelObjectiveArgs;
import com.pulumi.newrelic.inputs.ServiceLevelObjectiveTimeWindowArgs;
import com.pulumi.newrelic.inputs.ServiceLevelObjectiveTimeWindowRollingArgs;
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 ServiceLevel("foo", ServiceLevelArgs.builder()        
            .description("Proportion of requests that are served faster than a threshold.")
            .events(ServiceLevelEventsArgs.builder()
                .accountId(12345678)
                .goodEvents(ServiceLevelEventsGoodEventsArgs.builder()
                    .from("Transaction")
                    .where("appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1")
                    .build())
                .validEvents(ServiceLevelEventsValidEventsArgs.builder()
                    .from("Transaction")
                    .where("appName = 'Example application' AND (transactionType='Web')")
                    .build())
                .build())
            .guid("MXxBUE18QVBQTElDQVRJT058MQ")
            .objective(ServiceLevelObjectiveArgs.builder()
                .target(99)
                .timeWindow(ServiceLevelObjectiveTimeWindowArgs.builder()
                    .rolling(ServiceLevelObjectiveTimeWindowRollingArgs.builder()
                        .count(7)
                        .unit("DAY")
                        .build())
                    .build())
                .build())
            .build());

    }
}
import pulumi
import pulumi_newrelic as newrelic

foo = newrelic.ServiceLevel("foo",
    description="Proportion of requests that are served faster than a threshold.",
    events=newrelic.ServiceLevelEventsArgs(
        account_id=12345678,
        good_events=newrelic.ServiceLevelEventsGoodEventsArgs(
            from_="Transaction",
            where="appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1",
        ),
        valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
            from_="Transaction",
            where="appName = 'Example application' AND (transactionType='Web')",
        ),
    ),
    guid="MXxBUE18QVBQTElDQVRJT058MQ",
    objective=newrelic.ServiceLevelObjectiveArgs(
        target=99,
        time_window=newrelic.ServiceLevelObjectiveTimeWindowArgs(
            rolling=newrelic.ServiceLevelObjectiveTimeWindowRollingArgs(
                count=7,
                unit="DAY",
            ),
        ),
    ))
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const foo = new newrelic.ServiceLevel("foo", {
    description: "Proportion of requests that are served faster than a threshold.",
    events: {
        accountId: 12345678,
        goodEvents: {
            from: "Transaction",
            where: "appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1",
        },
        validEvents: {
            from: "Transaction",
            where: "appName = 'Example application' AND (transactionType='Web')",
        },
    },
    guid: "MXxBUE18QVBQTElDQVRJT058MQ",
    objective: {
        target: 99,
        timeWindow: {
            rolling: {
                count: 7,
                unit: "DAY",
            },
        },
    },
});
resources:
  foo:
    type: newrelic:ServiceLevel
    properties:
      description: Proportion of requests that are served faster than a threshold.
      events:
        accountId: 1.2345678e+07
        goodEvents:
          from: Transaction
          where: appName = 'Example application' AND (transactionType= 'Web') AND duration < 0.1
        validEvents:
          from: Transaction
          where: appName = 'Example application' AND (transactionType='Web')
      guid: MXxBUE18QVBQTElDQVRJT058MQ
      objective:
        target: 99
        timeWindow:
          rolling:
            count: 7
            unit: DAY

Service level with tags

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using NewRelic = Pulumi.NewRelic;

return await Deployment.RunAsync(() => 
{
    var mySyntheticMonitorServiceLevel = new NewRelic.ServiceLevel("mySyntheticMonitorServiceLevel", new()
    {
        Guid = "MXxBUE18QVBQTElDQVRJT058MQ",
        Description = "Proportion of successful synthetic checks.",
        Events = new NewRelic.Inputs.ServiceLevelEventsArgs
        {
            AccountId = 12345678,
            ValidEvents = new NewRelic.Inputs.ServiceLevelEventsValidEventsArgs
            {
                From = "SyntheticCheck",
                Where = "entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ'",
            },
            GoodEvents = new NewRelic.Inputs.ServiceLevelEventsGoodEventsArgs
            {
                From = "SyntheticCheck",
                Where = "entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ' AND result='SUCCESS'",
            },
        },
        Objective = new NewRelic.Inputs.ServiceLevelObjectiveArgs
        {
            Target = 99,
            TimeWindow = new NewRelic.Inputs.ServiceLevelObjectiveTimeWindowArgs
            {
                Rolling = new NewRelic.Inputs.ServiceLevelObjectiveTimeWindowRollingArgs
                {
                    Count = 7,
                    Unit = "DAY",
                },
            },
        },
    });

    var mySyntheticMonitorServiceLevelTags = new NewRelic.EntityTags("mySyntheticMonitorServiceLevelTags", new()
    {
        Guid = mySyntheticMonitorServiceLevel.SliGuid,
        Tags = new[]
        {
            new NewRelic.Inputs.EntityTagsTagArgs
            {
                Key = "user_journey",
                Values = new[]
                {
                    "authentication",
                    "sso",
                },
            },
            new NewRelic.Inputs.EntityTagsTagArgs
            {
                Key = "owner",
                Values = new[]
                {
                    "identityTeam",
                },
            },
        },
    });

});
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 {
		mySyntheticMonitorServiceLevel, err := newrelic.NewServiceLevel(ctx, "mySyntheticMonitorServiceLevel", &newrelic.ServiceLevelArgs{
			Guid:        pulumi.String("MXxBUE18QVBQTElDQVRJT058MQ"),
			Description: pulumi.String("Proportion of successful synthetic checks."),
			Events: &newrelic.ServiceLevelEventsArgs{
				AccountId: pulumi.Int(12345678),
				ValidEvents: &newrelic.ServiceLevelEventsValidEventsArgs{
					From:  pulumi.String("SyntheticCheck"),
					Where: pulumi.String("entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ'"),
				},
				GoodEvents: &newrelic.ServiceLevelEventsGoodEventsArgs{
					From:  pulumi.String("SyntheticCheck"),
					Where: pulumi.String("entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ' AND result='SUCCESS'"),
				},
			},
			Objective: &newrelic.ServiceLevelObjectiveArgs{
				Target: pulumi.Float64(99),
				TimeWindow: &newrelic.ServiceLevelObjectiveTimeWindowArgs{
					Rolling: &newrelic.ServiceLevelObjectiveTimeWindowRollingArgs{
						Count: pulumi.Int(7),
						Unit:  pulumi.String("DAY"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = newrelic.NewEntityTags(ctx, "mySyntheticMonitorServiceLevelTags", &newrelic.EntityTagsArgs{
			Guid: mySyntheticMonitorServiceLevel.SliGuid,
			Tags: newrelic.EntityTagsTagArray{
				&newrelic.EntityTagsTagArgs{
					Key: pulumi.String("user_journey"),
					Values: pulumi.StringArray{
						pulumi.String("authentication"),
						pulumi.String("sso"),
					},
				},
				&newrelic.EntityTagsTagArgs{
					Key: pulumi.String("owner"),
					Values: pulumi.StringArray{
						pulumi.String("identityTeam"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.newrelic.ServiceLevel;
import com.pulumi.newrelic.ServiceLevelArgs;
import com.pulumi.newrelic.inputs.ServiceLevelEventsArgs;
import com.pulumi.newrelic.inputs.ServiceLevelEventsValidEventsArgs;
import com.pulumi.newrelic.inputs.ServiceLevelEventsGoodEventsArgs;
import com.pulumi.newrelic.inputs.ServiceLevelObjectiveArgs;
import com.pulumi.newrelic.inputs.ServiceLevelObjectiveTimeWindowArgs;
import com.pulumi.newrelic.inputs.ServiceLevelObjectiveTimeWindowRollingArgs;
import com.pulumi.newrelic.EntityTags;
import com.pulumi.newrelic.EntityTagsArgs;
import com.pulumi.newrelic.inputs.EntityTagsTagArgs;
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 mySyntheticMonitorServiceLevel = new ServiceLevel("mySyntheticMonitorServiceLevel", ServiceLevelArgs.builder()        
            .guid("MXxBUE18QVBQTElDQVRJT058MQ")
            .description("Proportion of successful synthetic checks.")
            .events(ServiceLevelEventsArgs.builder()
                .accountId(12345678)
                .validEvents(ServiceLevelEventsValidEventsArgs.builder()
                    .from("SyntheticCheck")
                    .where("entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ'")
                    .build())
                .goodEvents(ServiceLevelEventsGoodEventsArgs.builder()
                    .from("SyntheticCheck")
                    .where("entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ' AND result='SUCCESS'")
                    .build())
                .build())
            .objective(ServiceLevelObjectiveArgs.builder()
                .target(99)
                .timeWindow(ServiceLevelObjectiveTimeWindowArgs.builder()
                    .rolling(ServiceLevelObjectiveTimeWindowRollingArgs.builder()
                        .count(7)
                        .unit("DAY")
                        .build())
                    .build())
                .build())
            .build());

        var mySyntheticMonitorServiceLevelTags = new EntityTags("mySyntheticMonitorServiceLevelTags", EntityTagsArgs.builder()        
            .guid(mySyntheticMonitorServiceLevel.sliGuid())
            .tags(            
                EntityTagsTagArgs.builder()
                    .key("user_journey")
                    .values(                    
                        "authentication",
                        "sso")
                    .build(),
                EntityTagsTagArgs.builder()
                    .key("owner")
                    .values("identityTeam")
                    .build())
            .build());

    }
}
import pulumi
import pulumi_newrelic as newrelic

my_synthetic_monitor_service_level = newrelic.ServiceLevel("mySyntheticMonitorServiceLevel",
    guid="MXxBUE18QVBQTElDQVRJT058MQ",
    description="Proportion of successful synthetic checks.",
    events=newrelic.ServiceLevelEventsArgs(
        account_id=12345678,
        valid_events=newrelic.ServiceLevelEventsValidEventsArgs(
            from_="SyntheticCheck",
            where="entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ'",
        ),
        good_events=newrelic.ServiceLevelEventsGoodEventsArgs(
            from_="SyntheticCheck",
            where="entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ' AND result='SUCCESS'",
        ),
    ),
    objective=newrelic.ServiceLevelObjectiveArgs(
        target=99,
        time_window=newrelic.ServiceLevelObjectiveTimeWindowArgs(
            rolling=newrelic.ServiceLevelObjectiveTimeWindowRollingArgs(
                count=7,
                unit="DAY",
            ),
        ),
    ))
my_synthetic_monitor_service_level_tags = newrelic.EntityTags("mySyntheticMonitorServiceLevelTags",
    guid=my_synthetic_monitor_service_level.sli_guid,
    tags=[
        newrelic.EntityTagsTagArgs(
            key="user_journey",
            values=[
                "authentication",
                "sso",
            ],
        ),
        newrelic.EntityTagsTagArgs(
            key="owner",
            values=["identityTeam"],
        ),
    ])
import * as pulumi from "@pulumi/pulumi";
import * as newrelic from "@pulumi/newrelic";

const mySyntheticMonitorServiceLevel = new newrelic.ServiceLevel("mySyntheticMonitorServiceLevel", {
    guid: "MXxBUE18QVBQTElDQVRJT058MQ",
    description: "Proportion of successful synthetic checks.",
    events: {
        accountId: 12345678,
        validEvents: {
            from: "SyntheticCheck",
            where: "entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ'",
        },
        goodEvents: {
            from: "SyntheticCheck",
            where: "entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ' AND result='SUCCESS'",
        },
    },
    objective: {
        target: 99,
        timeWindow: {
            rolling: {
                count: 7,
                unit: "DAY",
            },
        },
    },
});
const mySyntheticMonitorServiceLevelTags = new newrelic.EntityTags("mySyntheticMonitorServiceLevelTags", {
    guid: mySyntheticMonitorServiceLevel.sliGuid,
    tags: [
        {
            key: "user_journey",
            values: [
                "authentication",
                "sso",
            ],
        },
        {
            key: "owner",
            values: ["identityTeam"],
        },
    ],
});
resources:
  mySyntheticMonitorServiceLevel:
    type: newrelic:ServiceLevel
    properties:
      guid: MXxBUE18QVBQTElDQVRJT058MQ
      description: Proportion of successful synthetic checks.
      events:
        accountId: 1.2345678e+07
        validEvents:
          from: SyntheticCheck
          where: entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ'
        goodEvents:
          from: SyntheticCheck
          where: entityGuid = 'MXxBUE18QVBQTElDQVRJT058MQ' AND result='SUCCESS'
      objective:
        target: 99
        timeWindow:
          rolling:
            count: 7
            unit: DAY
  mySyntheticMonitorServiceLevelTags:
    type: newrelic:EntityTags
    properties:
      guid: ${mySyntheticMonitorServiceLevel.sliGuid}
      tags:
        - key: user_journey
          values:
            - authentication
            - sso
        - key: owner
          values:
            - identityTeam

Create ServiceLevel Resource

new ServiceLevel(name: string, args: ServiceLevelArgs, opts?: CustomResourceOptions);
@overload
def ServiceLevel(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 description: Optional[str] = None,
                 events: Optional[ServiceLevelEventsArgs] = None,
                 guid: Optional[str] = None,
                 name: Optional[str] = None,
                 objective: Optional[ServiceLevelObjectiveArgs] = None)
@overload
def ServiceLevel(resource_name: str,
                 args: ServiceLevelArgs,
                 opts: Optional[ResourceOptions] = None)
func NewServiceLevel(ctx *Context, name string, args ServiceLevelArgs, opts ...ResourceOption) (*ServiceLevel, error)
public ServiceLevel(string name, ServiceLevelArgs args, CustomResourceOptions? opts = null)
public ServiceLevel(String name, ServiceLevelArgs args)
public ServiceLevel(String name, ServiceLevelArgs args, CustomResourceOptions options)
type: newrelic:ServiceLevel
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args ServiceLevelArgs
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 ServiceLevelArgs
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 ServiceLevelArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ServiceLevelArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ServiceLevelArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

ServiceLevel 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 ServiceLevel resource accepts the following input properties:

Events Pulumi.NewRelic.Inputs.ServiceLevelEventsArgs

The events that define the NRDB data for the SLI/SLO calculations. See Events below for details.

Guid string

The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.

Objective Pulumi.NewRelic.Inputs.ServiceLevelObjectiveArgs

The objective of the SLI, only one can be defined. See Objective below for details.

Description string

The description of the SLI.

Name string

A short name for the SLI that will help anyone understand what it is about.

Events ServiceLevelEventsArgs

The events that define the NRDB data for the SLI/SLO calculations. See Events below for details.

Guid string

The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.

Objective ServiceLevelObjectiveArgs

The objective of the SLI, only one can be defined. See Objective below for details.

Description string

The description of the SLI.

Name string

A short name for the SLI that will help anyone understand what it is about.

events ServiceLevelEventsArgs

The events that define the NRDB data for the SLI/SLO calculations. See Events below for details.

guid String

The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.

objective ServiceLevelObjectiveArgs

The objective of the SLI, only one can be defined. See Objective below for details.

description String

The description of the SLI.

name String

A short name for the SLI that will help anyone understand what it is about.

events ServiceLevelEventsArgs

The events that define the NRDB data for the SLI/SLO calculations. See Events below for details.

guid string

The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.

objective ServiceLevelObjectiveArgs

The objective of the SLI, only one can be defined. See Objective below for details.

description string

The description of the SLI.

name string

A short name for the SLI that will help anyone understand what it is about.

events ServiceLevelEventsArgs

The events that define the NRDB data for the SLI/SLO calculations. See Events below for details.

guid str

The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.

objective ServiceLevelObjectiveArgs

The objective of the SLI, only one can be defined. See Objective below for details.

description str

The description of the SLI.

name str

A short name for the SLI that will help anyone understand what it is about.

events Property Map

The events that define the NRDB data for the SLI/SLO calculations. See Events below for details.

guid String

The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.

objective Property Map

The objective of the SLI, only one can be defined. See Objective below for details.

description String

The description of the SLI.

name String

A short name for the SLI that will help anyone understand what it is about.

Outputs

All input properties are implicitly available as output properties. Additionally, the ServiceLevel resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

SliGuid string

The unique entity identifier of the Service Level Indicator in New Relic.

SliId string

The unique entity identifier of the Service Level Indicator.

Id string

The provider-assigned unique ID for this managed resource.

SliGuid string

The unique entity identifier of the Service Level Indicator in New Relic.

SliId string

The unique entity identifier of the Service Level Indicator.

id String

The provider-assigned unique ID for this managed resource.

sliGuid String

The unique entity identifier of the Service Level Indicator in New Relic.

sliId String

The unique entity identifier of the Service Level Indicator.

id string

The provider-assigned unique ID for this managed resource.

sliGuid string

The unique entity identifier of the Service Level Indicator in New Relic.

sliId string

The unique entity identifier of the Service Level Indicator.

id str

The provider-assigned unique ID for this managed resource.

sli_guid str

The unique entity identifier of the Service Level Indicator in New Relic.

sli_id str

The unique entity identifier of the Service Level Indicator.

id String

The provider-assigned unique ID for this managed resource.

sliGuid String

The unique entity identifier of the Service Level Indicator in New Relic.

sliId String

The unique entity identifier of the Service Level Indicator.

Look up Existing ServiceLevel Resource

Get an existing ServiceLevel 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?: ServiceLevelState, opts?: CustomResourceOptions): ServiceLevel
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        events: Optional[ServiceLevelEventsArgs] = None,
        guid: Optional[str] = None,
        name: Optional[str] = None,
        objective: Optional[ServiceLevelObjectiveArgs] = None,
        sli_guid: Optional[str] = None,
        sli_id: Optional[str] = None) -> ServiceLevel
func GetServiceLevel(ctx *Context, name string, id IDInput, state *ServiceLevelState, opts ...ResourceOption) (*ServiceLevel, error)
public static ServiceLevel Get(string name, Input<string> id, ServiceLevelState? state, CustomResourceOptions? opts = null)
public static ServiceLevel get(String name, Output<String> id, ServiceLevelState 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.
The following state arguments are supported:
Description string

The description of the SLI.

Events Pulumi.NewRelic.Inputs.ServiceLevelEventsArgs

The events that define the NRDB data for the SLI/SLO calculations. See Events below for details.

Guid string

The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.

Name string

A short name for the SLI that will help anyone understand what it is about.

Objective Pulumi.NewRelic.Inputs.ServiceLevelObjectiveArgs

The objective of the SLI, only one can be defined. See Objective below for details.

SliGuid string

The unique entity identifier of the Service Level Indicator in New Relic.

SliId string

The unique entity identifier of the Service Level Indicator.

Description string

The description of the SLI.

Events ServiceLevelEventsArgs

The events that define the NRDB data for the SLI/SLO calculations. See Events below for details.

Guid string

The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.

Name string

A short name for the SLI that will help anyone understand what it is about.

Objective ServiceLevelObjectiveArgs

The objective of the SLI, only one can be defined. See Objective below for details.

SliGuid string

The unique entity identifier of the Service Level Indicator in New Relic.

SliId string

The unique entity identifier of the Service Level Indicator.

description String

The description of the SLI.

events ServiceLevelEventsArgs

The events that define the NRDB data for the SLI/SLO calculations. See Events below for details.

guid String

The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.

name String

A short name for the SLI that will help anyone understand what it is about.

objective ServiceLevelObjectiveArgs

The objective of the SLI, only one can be defined. See Objective below for details.

sliGuid String

The unique entity identifier of the Service Level Indicator in New Relic.

sliId String

The unique entity identifier of the Service Level Indicator.

description string

The description of the SLI.

events ServiceLevelEventsArgs

The events that define the NRDB data for the SLI/SLO calculations. See Events below for details.

guid string

The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.

name string

A short name for the SLI that will help anyone understand what it is about.

objective ServiceLevelObjectiveArgs

The objective of the SLI, only one can be defined. See Objective below for details.

sliGuid string

The unique entity identifier of the Service Level Indicator in New Relic.

sliId string

The unique entity identifier of the Service Level Indicator.

description str

The description of the SLI.

events ServiceLevelEventsArgs

The events that define the NRDB data for the SLI/SLO calculations. See Events below for details.

guid str

The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.

name str

A short name for the SLI that will help anyone understand what it is about.

objective ServiceLevelObjectiveArgs

The objective of the SLI, only one can be defined. See Objective below for details.

sli_guid str

The unique entity identifier of the Service Level Indicator in New Relic.

sli_id str

The unique entity identifier of the Service Level Indicator.

description String

The description of the SLI.

events Property Map

The events that define the NRDB data for the SLI/SLO calculations. See Events below for details.

guid String

The GUID of the entity (e.g, APM Service, Browser application, Workload, etc.) that you want to relate this SLI to. Note that changing the GUID will force a new resource.

name String

A short name for the SLI that will help anyone understand what it is about.

objective Property Map

The objective of the SLI, only one can be defined. See Objective below for details.

sliGuid String

The unique entity identifier of the Service Level Indicator in New Relic.

sliId String

The unique entity identifier of the Service Level Indicator.

Supporting Types

ServiceLevelEvents

AccountId int

The ID of the account where the entity (e.g, APM Service, Browser application, Workload, etc.) belongs to, and that contains the NRDB data for the SLI/SLO calculations. Note that changing the account ID will force a new resource.

ValidEvents Pulumi.NewRelic.Inputs.ServiceLevelEventsValidEvents

The definition of valid requests.

BadEvents Pulumi.NewRelic.Inputs.ServiceLevelEventsBadEvents

The definition of the bad responses. If you define an SLI from valid and bad events, you must leave the good events argument empty.

GoodEvents Pulumi.NewRelic.Inputs.ServiceLevelEventsGoodEvents

The definition of good responses. If you define an SLI from valid and good events, you must leave the bad events argument empty.

AccountId int

The ID of the account where the entity (e.g, APM Service, Browser application, Workload, etc.) belongs to, and that contains the NRDB data for the SLI/SLO calculations. Note that changing the account ID will force a new resource.

ValidEvents ServiceLevelEventsValidEvents

The definition of valid requests.

BadEvents ServiceLevelEventsBadEvents

The definition of the bad responses. If you define an SLI from valid and bad events, you must leave the good events argument empty.

GoodEvents ServiceLevelEventsGoodEvents

The definition of good responses. If you define an SLI from valid and good events, you must leave the bad events argument empty.

accountId Integer

The ID of the account where the entity (e.g, APM Service, Browser application, Workload, etc.) belongs to, and that contains the NRDB data for the SLI/SLO calculations. Note that changing the account ID will force a new resource.

validEvents ServiceLevelEventsValidEvents

The definition of valid requests.

badEvents ServiceLevelEventsBadEvents

The definition of the bad responses. If you define an SLI from valid and bad events, you must leave the good events argument empty.

goodEvents ServiceLevelEventsGoodEvents

The definition of good responses. If you define an SLI from valid and good events, you must leave the bad events argument empty.

accountId number

The ID of the account where the entity (e.g, APM Service, Browser application, Workload, etc.) belongs to, and that contains the NRDB data for the SLI/SLO calculations. Note that changing the account ID will force a new resource.

validEvents ServiceLevelEventsValidEvents

The definition of valid requests.

badEvents ServiceLevelEventsBadEvents

The definition of the bad responses. If you define an SLI from valid and bad events, you must leave the good events argument empty.

goodEvents ServiceLevelEventsGoodEvents

The definition of good responses. If you define an SLI from valid and good events, you must leave the bad events argument empty.

account_id int

The ID of the account where the entity (e.g, APM Service, Browser application, Workload, etc.) belongs to, and that contains the NRDB data for the SLI/SLO calculations. Note that changing the account ID will force a new resource.

valid_events ServiceLevelEventsValidEvents

The definition of valid requests.

bad_events ServiceLevelEventsBadEvents

The definition of the bad responses. If you define an SLI from valid and bad events, you must leave the good events argument empty.

good_events ServiceLevelEventsGoodEvents

The definition of good responses. If you define an SLI from valid and good events, you must leave the bad events argument empty.

accountId Number

The ID of the account where the entity (e.g, APM Service, Browser application, Workload, etc.) belongs to, and that contains the NRDB data for the SLI/SLO calculations. Note that changing the account ID will force a new resource.

validEvents Property Map

The definition of valid requests.

badEvents Property Map

The definition of the bad responses. If you define an SLI from valid and bad events, you must leave the good events argument empty.

goodEvents Property Map

The definition of good responses. If you define an SLI from valid and good events, you must leave the bad events argument empty.

ServiceLevelEventsBadEvents

From string

The event type where NRDB data will be fetched from.

Select Pulumi.NewRelic.Inputs.ServiceLevelEventsBadEventsSelect

The NRQL SELECT clause to aggregate events.

Where string

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

From string

The event type where NRDB data will be fetched from.

Select ServiceLevelEventsBadEventsSelect

The NRQL SELECT clause to aggregate events.

Where string

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

from String

The event type where NRDB data will be fetched from.

select ServiceLevelEventsBadEventsSelect

The NRQL SELECT clause to aggregate events.

where String

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

from string

The event type where NRDB data will be fetched from.

select ServiceLevelEventsBadEventsSelect

The NRQL SELECT clause to aggregate events.

where string

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

from_ str

The event type where NRDB data will be fetched from.

select ServiceLevelEventsBadEventsSelect

The NRQL SELECT clause to aggregate events.

where str

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

from String

The event type where NRDB data will be fetched from.

select Property Map

The NRQL SELECT clause to aggregate events.

where String

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

ServiceLevelEventsBadEventsSelect

Function string

The function to use in the SELECT clause. Valid values are COUNT and SUM.

Attribute string

The event attribute to use in the SELECT clause.

Threshold double
Function string

The function to use in the SELECT clause. Valid values are COUNT and SUM.

Attribute string

The event attribute to use in the SELECT clause.

Threshold float64
function String

The function to use in the SELECT clause. Valid values are COUNT and SUM.

attribute String

The event attribute to use in the SELECT clause.

threshold Double
function string

The function to use in the SELECT clause. Valid values are COUNT and SUM.

attribute string

The event attribute to use in the SELECT clause.

threshold number
function str

The function to use in the SELECT clause. Valid values are COUNT and SUM.

attribute str

The event attribute to use in the SELECT clause.

threshold float
function String

The function to use in the SELECT clause. Valid values are COUNT and SUM.

attribute String

The event attribute to use in the SELECT clause.

threshold Number

ServiceLevelEventsGoodEvents

From string

The event type where NRDB data will be fetched from.

Select Pulumi.NewRelic.Inputs.ServiceLevelEventsGoodEventsSelect

The NRQL SELECT clause to aggregate events.

Where string

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

From string

The event type where NRDB data will be fetched from.

Select ServiceLevelEventsGoodEventsSelect

The NRQL SELECT clause to aggregate events.

Where string

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

from String

The event type where NRDB data will be fetched from.

select ServiceLevelEventsGoodEventsSelect

The NRQL SELECT clause to aggregate events.

where String

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

from string

The event type where NRDB data will be fetched from.

select ServiceLevelEventsGoodEventsSelect

The NRQL SELECT clause to aggregate events.

where string

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

from_ str

The event type where NRDB data will be fetched from.

select ServiceLevelEventsGoodEventsSelect

The NRQL SELECT clause to aggregate events.

where str

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

from String

The event type where NRDB data will be fetched from.

select Property Map

The NRQL SELECT clause to aggregate events.

where String

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

ServiceLevelEventsGoodEventsSelect

Function string

The function to use in the SELECT clause. Valid values are COUNT and SUM.

Attribute string

The event attribute to use in the SELECT clause.

Threshold double
Function string

The function to use in the SELECT clause. Valid values are COUNT and SUM.

Attribute string

The event attribute to use in the SELECT clause.

Threshold float64
function String

The function to use in the SELECT clause. Valid values are COUNT and SUM.

attribute String

The event attribute to use in the SELECT clause.

threshold Double
function string

The function to use in the SELECT clause. Valid values are COUNT and SUM.

attribute string

The event attribute to use in the SELECT clause.

threshold number
function str

The function to use in the SELECT clause. Valid values are COUNT and SUM.

attribute str

The event attribute to use in the SELECT clause.

threshold float
function String

The function to use in the SELECT clause. Valid values are COUNT and SUM.

attribute String

The event attribute to use in the SELECT clause.

threshold Number

ServiceLevelEventsValidEvents

From string

The event type where NRDB data will be fetched from.

Select Pulumi.NewRelic.Inputs.ServiceLevelEventsValidEventsSelect

The NRQL SELECT clause to aggregate events.

Where string

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

From string

The event type where NRDB data will be fetched from.

Select ServiceLevelEventsValidEventsSelect

The NRQL SELECT clause to aggregate events.

Where string

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

from String

The event type where NRDB data will be fetched from.

select ServiceLevelEventsValidEventsSelect

The NRQL SELECT clause to aggregate events.

where String

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

from string

The event type where NRDB data will be fetched from.

select ServiceLevelEventsValidEventsSelect

The NRQL SELECT clause to aggregate events.

where string

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

from_ str

The event type where NRDB data will be fetched from.

select ServiceLevelEventsValidEventsSelect

The NRQL SELECT clause to aggregate events.

where str

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

from String

The event type where NRDB data will be fetched from.

select Property Map

The NRQL SELECT clause to aggregate events.

where String

A filter that specifies all the NRDB events that are considered in this SLI (e.g, those that refer to a particular entity). a particular entity and were successful). a particular entity and returned an error).

ServiceLevelEventsValidEventsSelect

Function string

The function to use in the SELECT clause. Valid values are COUNT and SUM.

Attribute string

The event attribute to use in the SELECT clause.

Threshold double
Function string

The function to use in the SELECT clause. Valid values are COUNT and SUM.

Attribute string

The event attribute to use in the SELECT clause.

Threshold float64
function String

The function to use in the SELECT clause. Valid values are COUNT and SUM.

attribute String

The event attribute to use in the SELECT clause.

threshold Double
function string

The function to use in the SELECT clause. Valid values are COUNT and SUM.

attribute string

The event attribute to use in the SELECT clause.

threshold number
function str

The function to use in the SELECT clause. Valid values are COUNT and SUM.

attribute str

The event attribute to use in the SELECT clause.

threshold float
function String

The function to use in the SELECT clause. Valid values are COUNT and SUM.

attribute String

The event attribute to use in the SELECT clause.

threshold Number

ServiceLevelObjective

Target double

The target of the objective, valid values between 0 and 100. Up to 5 decimals accepted.

TimeWindow Pulumi.NewRelic.Inputs.ServiceLevelObjectiveTimeWindow

Time window is the period of the objective.

Description string

The description of the SLI.

Name string

A short name for the SLI that will help anyone understand what it is about.

Target float64

The target of the objective, valid values between 0 and 100. Up to 5 decimals accepted.

TimeWindow ServiceLevelObjectiveTimeWindow

Time window is the period of the objective.

Description string

The description of the SLI.

Name string

A short name for the SLI that will help anyone understand what it is about.

target Double

The target of the objective, valid values between 0 and 100. Up to 5 decimals accepted.

timeWindow ServiceLevelObjectiveTimeWindow

Time window is the period of the objective.

description String

The description of the SLI.

name String

A short name for the SLI that will help anyone understand what it is about.

target number

The target of the objective, valid values between 0 and 100. Up to 5 decimals accepted.

timeWindow ServiceLevelObjectiveTimeWindow

Time window is the period of the objective.

description string

The description of the SLI.

name string

A short name for the SLI that will help anyone understand what it is about.

target float

The target of the objective, valid values between 0 and 100. Up to 5 decimals accepted.

time_window ServiceLevelObjectiveTimeWindow

Time window is the period of the objective.

description str

The description of the SLI.

name str

A short name for the SLI that will help anyone understand what it is about.

target Number

The target of the objective, valid values between 0 and 100. Up to 5 decimals accepted.

timeWindow Property Map

Time window is the period of the objective.

description String

The description of the SLI.

name String

A short name for the SLI that will help anyone understand what it is about.

ServiceLevelObjectiveTimeWindow

rolling Property Map

Rolling window.

ServiceLevelObjectiveTimeWindowRolling

Count int

Valid values are 1, 7 and 28.

Unit string

The only supported value is DAY.

Count int

Valid values are 1, 7 and 28.

Unit string

The only supported value is DAY.

count Integer

Valid values are 1, 7 and 28.

unit String

The only supported value is DAY.

count number

Valid values are 1, 7 and 28.

unit string

The only supported value is DAY.

count int

Valid values are 1, 7 and 28.

unit str

The only supported value is DAY.

count Number

Valid values are 1, 7 and 28.

unit String

The only supported value is DAY.

Import

New Relic Service Levels can be imported using a concatenated string of the format

<account_id>:<sli_id>:<guid>, where the guid is the entity the SLI relates to. Examplebash

 $ pulumi import newrelic:index/serviceLevel:ServiceLevel foo 12345678:4321:MXxBUE18QVBQTElDQVRJT058MQ

Package Details

Repository
New Relic pulumi/pulumi-newrelic
License
Apache-2.0
Notes

This Pulumi package is based on the newrelic Terraform Provider.