1. Packages
  2. Datadog
  3. API Docs
  4. ServiceLevelObjective
Datadog v4.27.0 published on Thursday, Mar 14, 2024 by Pulumi

datadog.ServiceLevelObjective

Explore with Pulumi AI

datadog logo
Datadog v4.27.0 published on Thursday, Mar 14, 2024 by Pulumi

    Provides a Datadog service level objective resource. This can be used to create and manage Datadog service level objectives.

    Example Usage

    Coming soon!```
    </pulumi-choosable>
    </div>
    <div>
    <pulumi-choosable type="language" values="python">
    

    Coming soon!```

    Coming soon!```
    </pulumi-choosable>
    </div>
    <div>
    <pulumi-choosable type="language" values="csharp">
    

    Coming soon!```

    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.datadog.ServiceLevelObjective;
    import com.pulumi.datadog.ServiceLevelObjectiveArgs;
    import com.pulumi.datadog.inputs.ServiceLevelObjectiveQueryArgs;
    import com.pulumi.datadog.inputs.ServiceLevelObjectiveThresholdArgs;
    import com.pulumi.datadog.inputs.ServiceLevelObjectiveSliSpecificationArgs;
    import com.pulumi.datadog.inputs.ServiceLevelObjectiveSliSpecificationTimeSliceArgs;
    import com.pulumi.datadog.inputs.ServiceLevelObjectiveSliSpecificationTimeSliceQueryArgs;
    import com.pulumi.datadog.inputs.ServiceLevelObjectiveSliSpecificationTimeSliceQueryFormulaArgs;
    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 ServiceLevelObjective("foo", ServiceLevelObjectiveArgs.builder()        
                .description("My custom metric SLO")
                .name("Example Metric SLO")
                .query(ServiceLevelObjectiveQueryArgs.builder()
                    .denominator("sum:my.custom.count.metric{*}.as_count()")
                    .numerator("sum:my.custom.count.metric{type:good_events}.as_count()")
                    .build())
                .tags(            
                    "foo:bar",
                    "baz")
                .targetThreshold(99.9)
                .thresholds(            
                    ServiceLevelObjectiveThresholdArgs.builder()
                        .target(99.9)
                        .timeframe("7d")
                        .warning(99.99)
                        .build(),
                    ServiceLevelObjectiveThresholdArgs.builder()
                        .target(99.9)
                        .timeframe("30d")
                        .warning(99.99)
                        .build())
                .timeframe("30d")
                .type("metric")
                .warningThreshold(99.99)
                .build());
    
            var bar = new ServiceLevelObjective("bar", ServiceLevelObjectiveArgs.builder()        
                .description("My custom monitor SLO")
                .monitorIds(            
                    1,
                    2,
                    3)
                .name("Example Monitor SLO")
                .tags(            
                    "foo:bar",
                    "baz")
                .targetThreshold(99.9)
                .thresholds(            
                    ServiceLevelObjectiveThresholdArgs.builder()
                        .target(99.9)
                        .timeframe("7d")
                        .warning(99.99)
                        .build(),
                    ServiceLevelObjectiveThresholdArgs.builder()
                        .target(99.9)
                        .timeframe("30d")
                        .warning(99.99)
                        .build())
                .timeframe("30d")
                .type("monitor")
                .warningThreshold(99.99)
                .build());
    
            var timeSliceSlo = new ServiceLevelObjective("timeSliceSlo", ServiceLevelObjectiveArgs.builder()        
                .description("My custom time slice SLO")
                .name("Example Time Slice SLO")
                .sliSpecification(ServiceLevelObjectiveSliSpecificationArgs.builder()
                    .timeSlice(ServiceLevelObjectiveSliSpecificationTimeSliceArgs.builder()
                        .comparator(">")
                        .query(ServiceLevelObjectiveSliSpecificationTimeSliceQueryArgs.builder()
                            .formula(ServiceLevelObjectiveSliSpecificationTimeSliceQueryFormulaArgs.builder()
                                .formulaExpression("query1")
                                .build())
                            .query(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                            .build())
                        .threshold(0.9)
                        .build())
                    .build())
                .tags(            
                    "service:myservice",
                    "team:myteam")
                .targetThreshold(99.9)
                .thresholds(ServiceLevelObjectiveThresholdArgs.builder()
                    .target(99.9)
                    .timeframe("7d")
                    .warning(99.99)
                    .build())
                .timeframe("7d")
                .type("time_slice")
                .warningThreshold(99.99)
                .build());
    
        }
    }
    
    resources:
      # Metric-Based SLO
      # // Create a new Datadog service level objective
      foo:
        type: datadog:ServiceLevelObjective
        properties:
          description: My custom metric SLO
          name: Example Metric SLO
          query:
            denominator: sum:my.custom.count.metric{*}.as_count()
            numerator: sum:my.custom.count.metric{type:good_events}.as_count()
          tags:
            - foo:bar
            - baz
          targetThreshold: 99.9
          thresholds:
            - target: 99.9
              timeframe: 7d
              warning: 99.99
            - target: 99.9
              timeframe: 30d
              warning: 99.99
          timeframe: 30d
          type: metric
          warningThreshold: 99.99
      # Monitor-Based SLO
      # // Create a new Datadog service level objective
      bar:
        type: datadog:ServiceLevelObjective
        properties:
          description: My custom monitor SLO
          monitorIds:
            - 1
            - 2
            - 3
          name: Example Monitor SLO
          tags:
            - foo:bar
            - baz
          targetThreshold: 99.9
          thresholds:
            - target: 99.9
              timeframe: 7d
              warning: 99.99
            - target: 99.9
              timeframe: 30d
              warning: 99.99
          timeframe: 30d
          type: monitor
          warningThreshold: 99.99
      timeSliceSlo:
        type: datadog:ServiceLevelObjective
        properties:
          description: My custom time slice SLO
          name: Example Time Slice SLO
          sliSpecification:
            timeSlice:
              comparator: '>'
              query:
                formula:
                  formulaExpression: query1
                query:
                  - metricQuery:
                      name: query1
                      query: avg:my.custom.count.metric{*}.as_count()
              threshold: 0.9
          tags:
            - service:myservice
            - team:myteam
          targetThreshold: 99.9
          thresholds:
            - target: 99.9
              timeframe: 7d
              warning: 99.99
          timeframe: 7d
          type: time_slice
          warningThreshold: 99.99
    

    Create ServiceLevelObjective Resource

    new ServiceLevelObjective(name: string, args: ServiceLevelObjectiveArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceLevelObjective(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              description: Optional[str] = None,
                              force_delete: Optional[bool] = None,
                              groups: Optional[Sequence[str]] = None,
                              monitor_ids: Optional[Sequence[int]] = None,
                              name: Optional[str] = None,
                              query: Optional[ServiceLevelObjectiveQueryArgs] = None,
                              sli_specification: Optional[ServiceLevelObjectiveSliSpecificationArgs] = None,
                              tags: Optional[Sequence[str]] = None,
                              target_threshold: Optional[float] = None,
                              thresholds: Optional[Sequence[ServiceLevelObjectiveThresholdArgs]] = None,
                              timeframe: Optional[str] = None,
                              type: Optional[str] = None,
                              validate: Optional[bool] = None,
                              warning_threshold: Optional[float] = None)
    @overload
    def ServiceLevelObjective(resource_name: str,
                              args: ServiceLevelObjectiveArgs,
                              opts: Optional[ResourceOptions] = None)
    func NewServiceLevelObjective(ctx *Context, name string, args ServiceLevelObjectiveArgs, opts ...ResourceOption) (*ServiceLevelObjective, error)
    public ServiceLevelObjective(string name, ServiceLevelObjectiveArgs args, CustomResourceOptions? opts = null)
    public ServiceLevelObjective(String name, ServiceLevelObjectiveArgs args)
    public ServiceLevelObjective(String name, ServiceLevelObjectiveArgs args, CustomResourceOptions options)
    
    type: datadog:ServiceLevelObjective
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ServiceLevelObjectiveArgs
    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 ServiceLevelObjectiveArgs
    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 ServiceLevelObjectiveArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceLevelObjectiveArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceLevelObjectiveArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    Name string
    The name of the query for use in formulas.
    Thresholds List<ServiceLevelObjectiveThreshold>
    A list of thresholds and targets that define the service level objectives from the provided SLIs.
    Type string
    The type of the service level objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are metric, monitor, time_slice.
    Description string
    A description of this service level objective.
    ForceDelete bool
    A boolean indicating whether this monitor can be deleted even if it's referenced by other resources (for example, dashboards).
    Groups List<string>
    A static set of groups to filter monitor-based SLOs
    MonitorIds List<int>
    A static set of monitor IDs to use as part of the SLO
    Query ServiceLevelObjectiveQuery
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    SliSpecification ServiceLevelObjectiveSliSpecification
    A map of SLI specifications to use as part of the SLO.
    Tags List<string>
    A list of tags to associate with your service level objective. This can help you categorize and filter service level objectives in the service level objectives page of the UI. Note: it's not currently possible to filter by these tags when querying via the API
    TargetThreshold double
    The objective's target in (0,100). This must match the corresponding thresholds of the primary time frame.
    Timeframe string
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    Validate bool
    Whether or not to validate the SLO.
    WarningThreshold double
    The objective's warning value in (0,100). This must be greater than the target value and match the corresponding thresholds of the primary time frame.
    Name string
    The name of the query for use in formulas.
    Thresholds []ServiceLevelObjectiveThresholdArgs
    A list of thresholds and targets that define the service level objectives from the provided SLIs.
    Type string
    The type of the service level objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are metric, monitor, time_slice.
    Description string
    A description of this service level objective.
    ForceDelete bool
    A boolean indicating whether this monitor can be deleted even if it's referenced by other resources (for example, dashboards).
    Groups []string
    A static set of groups to filter monitor-based SLOs
    MonitorIds []int
    A static set of monitor IDs to use as part of the SLO
    Query ServiceLevelObjectiveQueryArgs
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    SliSpecification ServiceLevelObjectiveSliSpecificationArgs
    A map of SLI specifications to use as part of the SLO.
    Tags []string
    A list of tags to associate with your service level objective. This can help you categorize and filter service level objectives in the service level objectives page of the UI. Note: it's not currently possible to filter by these tags when querying via the API
    TargetThreshold float64
    The objective's target in (0,100). This must match the corresponding thresholds of the primary time frame.
    Timeframe string
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    Validate bool
    Whether or not to validate the SLO.
    WarningThreshold float64
    The objective's warning value in (0,100). This must be greater than the target value and match the corresponding thresholds of the primary time frame.
    name String
    The name of the query for use in formulas.
    thresholds List<ServiceLevelObjectiveThreshold>
    A list of thresholds and targets that define the service level objectives from the provided SLIs.
    type String
    The type of the service level objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are metric, monitor, time_slice.
    description String
    A description of this service level objective.
    forceDelete Boolean
    A boolean indicating whether this monitor can be deleted even if it's referenced by other resources (for example, dashboards).
    groups List<String>
    A static set of groups to filter monitor-based SLOs
    monitorIds List<Integer>
    A static set of monitor IDs to use as part of the SLO
    query ServiceLevelObjectiveQuery
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    sliSpecification ServiceLevelObjectiveSliSpecification
    A map of SLI specifications to use as part of the SLO.
    tags List<String>
    A list of tags to associate with your service level objective. This can help you categorize and filter service level objectives in the service level objectives page of the UI. Note: it's not currently possible to filter by these tags when querying via the API
    targetThreshold Double
    The objective's target in (0,100). This must match the corresponding thresholds of the primary time frame.
    timeframe String
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    validate Boolean
    Whether or not to validate the SLO.
    warningThreshold Double
    The objective's warning value in (0,100). This must be greater than the target value and match the corresponding thresholds of the primary time frame.
    name string
    The name of the query for use in formulas.
    thresholds ServiceLevelObjectiveThreshold[]
    A list of thresholds and targets that define the service level objectives from the provided SLIs.
    type string
    The type of the service level objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are metric, monitor, time_slice.
    description string
    A description of this service level objective.
    forceDelete boolean
    A boolean indicating whether this monitor can be deleted even if it's referenced by other resources (for example, dashboards).
    groups string[]
    A static set of groups to filter monitor-based SLOs
    monitorIds number[]
    A static set of monitor IDs to use as part of the SLO
    query ServiceLevelObjectiveQuery
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    sliSpecification ServiceLevelObjectiveSliSpecification
    A map of SLI specifications to use as part of the SLO.
    tags string[]
    A list of tags to associate with your service level objective. This can help you categorize and filter service level objectives in the service level objectives page of the UI. Note: it's not currently possible to filter by these tags when querying via the API
    targetThreshold number
    The objective's target in (0,100). This must match the corresponding thresholds of the primary time frame.
    timeframe string
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    validate boolean
    Whether or not to validate the SLO.
    warningThreshold number
    The objective's warning value in (0,100). This must be greater than the target value and match the corresponding thresholds of the primary time frame.
    name str
    The name of the query for use in formulas.
    thresholds Sequence[ServiceLevelObjectiveThresholdArgs]
    A list of thresholds and targets that define the service level objectives from the provided SLIs.
    type str
    The type of the service level objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are metric, monitor, time_slice.
    description str
    A description of this service level objective.
    force_delete bool
    A boolean indicating whether this monitor can be deleted even if it's referenced by other resources (for example, dashboards).
    groups Sequence[str]
    A static set of groups to filter monitor-based SLOs
    monitor_ids Sequence[int]
    A static set of monitor IDs to use as part of the SLO
    query ServiceLevelObjectiveQueryArgs
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    sli_specification ServiceLevelObjectiveSliSpecificationArgs
    A map of SLI specifications to use as part of the SLO.
    tags Sequence[str]
    A list of tags to associate with your service level objective. This can help you categorize and filter service level objectives in the service level objectives page of the UI. Note: it's not currently possible to filter by these tags when querying via the API
    target_threshold float
    The objective's target in (0,100). This must match the corresponding thresholds of the primary time frame.
    timeframe str
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    validate bool
    Whether or not to validate the SLO.
    warning_threshold float
    The objective's warning value in (0,100). This must be greater than the target value and match the corresponding thresholds of the primary time frame.
    name String
    The name of the query for use in formulas.
    thresholds List<Property Map>
    A list of thresholds and targets that define the service level objectives from the provided SLIs.
    type String
    The type of the service level objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are metric, monitor, time_slice.
    description String
    A description of this service level objective.
    forceDelete Boolean
    A boolean indicating whether this monitor can be deleted even if it's referenced by other resources (for example, dashboards).
    groups List<String>
    A static set of groups to filter monitor-based SLOs
    monitorIds List<Number>
    A static set of monitor IDs to use as part of the SLO
    query Property Map
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    sliSpecification Property Map
    A map of SLI specifications to use as part of the SLO.
    tags List<String>
    A list of tags to associate with your service level objective. This can help you categorize and filter service level objectives in the service level objectives page of the UI. Note: it's not currently possible to filter by these tags when querying via the API
    targetThreshold Number
    The objective's target in (0,100). This must match the corresponding thresholds of the primary time frame.
    timeframe String
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    validate Boolean
    Whether or not to validate the SLO.
    warningThreshold Number
    The objective's warning value in (0,100). This must be greater than the target value and match the corresponding thresholds of the primary time frame.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServiceLevelObjective 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 ServiceLevelObjective Resource

    Get an existing ServiceLevelObjective 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?: ServiceLevelObjectiveState, opts?: CustomResourceOptions): ServiceLevelObjective
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            force_delete: Optional[bool] = None,
            groups: Optional[Sequence[str]] = None,
            monitor_ids: Optional[Sequence[int]] = None,
            name: Optional[str] = None,
            query: Optional[ServiceLevelObjectiveQueryArgs] = None,
            sli_specification: Optional[ServiceLevelObjectiveSliSpecificationArgs] = None,
            tags: Optional[Sequence[str]] = None,
            target_threshold: Optional[float] = None,
            thresholds: Optional[Sequence[ServiceLevelObjectiveThresholdArgs]] = None,
            timeframe: Optional[str] = None,
            type: Optional[str] = None,
            validate: Optional[bool] = None,
            warning_threshold: Optional[float] = None) -> ServiceLevelObjective
    func GetServiceLevelObjective(ctx *Context, name string, id IDInput, state *ServiceLevelObjectiveState, opts ...ResourceOption) (*ServiceLevelObjective, error)
    public static ServiceLevelObjective Get(string name, Input<string> id, ServiceLevelObjectiveState? state, CustomResourceOptions? opts = null)
    public static ServiceLevelObjective get(String name, Output<String> id, ServiceLevelObjectiveState 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
    A description of this service level objective.
    ForceDelete bool
    A boolean indicating whether this monitor can be deleted even if it's referenced by other resources (for example, dashboards).
    Groups List<string>
    A static set of groups to filter monitor-based SLOs
    MonitorIds List<int>
    A static set of monitor IDs to use as part of the SLO
    Name string
    The name of the query for use in formulas.
    Query ServiceLevelObjectiveQuery
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    SliSpecification ServiceLevelObjectiveSliSpecification
    A map of SLI specifications to use as part of the SLO.
    Tags List<string>
    A list of tags to associate with your service level objective. This can help you categorize and filter service level objectives in the service level objectives page of the UI. Note: it's not currently possible to filter by these tags when querying via the API
    TargetThreshold double
    The objective's target in (0,100). This must match the corresponding thresholds of the primary time frame.
    Thresholds List<ServiceLevelObjectiveThreshold>
    A list of thresholds and targets that define the service level objectives from the provided SLIs.
    Timeframe string
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    Type string
    The type of the service level objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are metric, monitor, time_slice.
    Validate bool
    Whether or not to validate the SLO.
    WarningThreshold double
    The objective's warning value in (0,100). This must be greater than the target value and match the corresponding thresholds of the primary time frame.
    Description string
    A description of this service level objective.
    ForceDelete bool
    A boolean indicating whether this monitor can be deleted even if it's referenced by other resources (for example, dashboards).
    Groups []string
    A static set of groups to filter monitor-based SLOs
    MonitorIds []int
    A static set of monitor IDs to use as part of the SLO
    Name string
    The name of the query for use in formulas.
    Query ServiceLevelObjectiveQueryArgs
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    SliSpecification ServiceLevelObjectiveSliSpecificationArgs
    A map of SLI specifications to use as part of the SLO.
    Tags []string
    A list of tags to associate with your service level objective. This can help you categorize and filter service level objectives in the service level objectives page of the UI. Note: it's not currently possible to filter by these tags when querying via the API
    TargetThreshold float64
    The objective's target in (0,100). This must match the corresponding thresholds of the primary time frame.
    Thresholds []ServiceLevelObjectiveThresholdArgs
    A list of thresholds and targets that define the service level objectives from the provided SLIs.
    Timeframe string
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    Type string
    The type of the service level objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are metric, monitor, time_slice.
    Validate bool
    Whether or not to validate the SLO.
    WarningThreshold float64
    The objective's warning value in (0,100). This must be greater than the target value and match the corresponding thresholds of the primary time frame.
    description String
    A description of this service level objective.
    forceDelete Boolean
    A boolean indicating whether this monitor can be deleted even if it's referenced by other resources (for example, dashboards).
    groups List<String>
    A static set of groups to filter monitor-based SLOs
    monitorIds List<Integer>
    A static set of monitor IDs to use as part of the SLO
    name String
    The name of the query for use in formulas.
    query ServiceLevelObjectiveQuery
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    sliSpecification ServiceLevelObjectiveSliSpecification
    A map of SLI specifications to use as part of the SLO.
    tags List<String>
    A list of tags to associate with your service level objective. This can help you categorize and filter service level objectives in the service level objectives page of the UI. Note: it's not currently possible to filter by these tags when querying via the API
    targetThreshold Double
    The objective's target in (0,100). This must match the corresponding thresholds of the primary time frame.
    thresholds List<ServiceLevelObjectiveThreshold>
    A list of thresholds and targets that define the service level objectives from the provided SLIs.
    timeframe String
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    type String
    The type of the service level objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are metric, monitor, time_slice.
    validate Boolean
    Whether or not to validate the SLO.
    warningThreshold Double
    The objective's warning value in (0,100). This must be greater than the target value and match the corresponding thresholds of the primary time frame.
    description string
    A description of this service level objective.
    forceDelete boolean
    A boolean indicating whether this monitor can be deleted even if it's referenced by other resources (for example, dashboards).
    groups string[]
    A static set of groups to filter monitor-based SLOs
    monitorIds number[]
    A static set of monitor IDs to use as part of the SLO
    name string
    The name of the query for use in formulas.
    query ServiceLevelObjectiveQuery
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    sliSpecification ServiceLevelObjectiveSliSpecification
    A map of SLI specifications to use as part of the SLO.
    tags string[]
    A list of tags to associate with your service level objective. This can help you categorize and filter service level objectives in the service level objectives page of the UI. Note: it's not currently possible to filter by these tags when querying via the API
    targetThreshold number
    The objective's target in (0,100). This must match the corresponding thresholds of the primary time frame.
    thresholds ServiceLevelObjectiveThreshold[]
    A list of thresholds and targets that define the service level objectives from the provided SLIs.
    timeframe string
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    type string
    The type of the service level objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are metric, monitor, time_slice.
    validate boolean
    Whether or not to validate the SLO.
    warningThreshold number
    The objective's warning value in (0,100). This must be greater than the target value and match the corresponding thresholds of the primary time frame.
    description str
    A description of this service level objective.
    force_delete bool
    A boolean indicating whether this monitor can be deleted even if it's referenced by other resources (for example, dashboards).
    groups Sequence[str]
    A static set of groups to filter monitor-based SLOs
    monitor_ids Sequence[int]
    A static set of monitor IDs to use as part of the SLO
    name str
    The name of the query for use in formulas.
    query ServiceLevelObjectiveQueryArgs
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    sli_specification ServiceLevelObjectiveSliSpecificationArgs
    A map of SLI specifications to use as part of the SLO.
    tags Sequence[str]
    A list of tags to associate with your service level objective. This can help you categorize and filter service level objectives in the service level objectives page of the UI. Note: it's not currently possible to filter by these tags when querying via the API
    target_threshold float
    The objective's target in (0,100). This must match the corresponding thresholds of the primary time frame.
    thresholds Sequence[ServiceLevelObjectiveThresholdArgs]
    A list of thresholds and targets that define the service level objectives from the provided SLIs.
    timeframe str
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    type str
    The type of the service level objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are metric, monitor, time_slice.
    validate bool
    Whether or not to validate the SLO.
    warning_threshold float
    The objective's warning value in (0,100). This must be greater than the target value and match the corresponding thresholds of the primary time frame.
    description String
    A description of this service level objective.
    forceDelete Boolean
    A boolean indicating whether this monitor can be deleted even if it's referenced by other resources (for example, dashboards).
    groups List<String>
    A static set of groups to filter monitor-based SLOs
    monitorIds List<Number>
    A static set of monitor IDs to use as part of the SLO
    name String
    The name of the query for use in formulas.
    query Property Map
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    sliSpecification Property Map
    A map of SLI specifications to use as part of the SLO.
    tags List<String>
    A list of tags to associate with your service level objective. This can help you categorize and filter service level objectives in the service level objectives page of the UI. Note: it's not currently possible to filter by these tags when querying via the API
    targetThreshold Number
    The objective's target in (0,100). This must match the corresponding thresholds of the primary time frame.
    thresholds List<Property Map>
    A list of thresholds and targets that define the service level objectives from the provided SLIs.
    timeframe String
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    type String
    The type of the service level objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are metric, monitor, time_slice.
    validate Boolean
    Whether or not to validate the SLO.
    warningThreshold Number
    The objective's warning value in (0,100). This must be greater than the target value and match the corresponding thresholds of the primary time frame.

    Supporting Types

    ServiceLevelObjectiveQuery, ServiceLevelObjectiveQueryArgs

    Denominator string
    The sum of the total events.
    Numerator string
    The sum of all the good events.
    Denominator string
    The sum of the total events.
    Numerator string
    The sum of all the good events.
    denominator String
    The sum of the total events.
    numerator String
    The sum of all the good events.
    denominator string
    The sum of the total events.
    numerator string
    The sum of all the good events.
    denominator str
    The sum of the total events.
    numerator str
    The sum of all the good events.
    denominator String
    The sum of the total events.
    numerator String
    The sum of all the good events.

    ServiceLevelObjectiveSliSpecification, ServiceLevelObjectiveSliSpecificationArgs

    TimeSlice ServiceLevelObjectiveSliSpecificationTimeSlice
    The time slice condition, composed of 3 parts: 1. The timeseries query, 2. The comparator, and 3. The threshold.
    TimeSlice ServiceLevelObjectiveSliSpecificationTimeSlice
    The time slice condition, composed of 3 parts: 1. The timeseries query, 2. The comparator, and 3. The threshold.
    timeSlice ServiceLevelObjectiveSliSpecificationTimeSlice
    The time slice condition, composed of 3 parts: 1. The timeseries query, 2. The comparator, and 3. The threshold.
    timeSlice ServiceLevelObjectiveSliSpecificationTimeSlice
    The time slice condition, composed of 3 parts: 1. The timeseries query, 2. The comparator, and 3. The threshold.
    time_slice ServiceLevelObjectiveSliSpecificationTimeSlice
    The time slice condition, composed of 3 parts: 1. The timeseries query, 2. The comparator, and 3. The threshold.
    timeSlice Property Map
    The time slice condition, composed of 3 parts: 1. The timeseries query, 2. The comparator, and 3. The threshold.

    ServiceLevelObjectiveSliSpecificationTimeSlice, ServiceLevelObjectiveSliSpecificationTimeSliceArgs

    Comparator string
    The comparator used to compare the SLI value to the threshold. Valid values are >, >=, <, <=.
    Query ServiceLevelObjectiveSliSpecificationTimeSliceQuery
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    Threshold double
    The threshold value to which each SLI value will be compared.
    Comparator string
    The comparator used to compare the SLI value to the threshold. Valid values are >, >=, <, <=.
    Query ServiceLevelObjectiveSliSpecificationTimeSliceQuery
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    Threshold float64
    The threshold value to which each SLI value will be compared.
    comparator String
    The comparator used to compare the SLI value to the threshold. Valid values are >, >=, <, <=.
    query ServiceLevelObjectiveSliSpecificationTimeSliceQuery
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    threshold Double
    The threshold value to which each SLI value will be compared.
    comparator string
    The comparator used to compare the SLI value to the threshold. Valid values are >, >=, <, <=.
    query ServiceLevelObjectiveSliSpecificationTimeSliceQuery
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    threshold number
    The threshold value to which each SLI value will be compared.
    comparator str
    The comparator used to compare the SLI value to the threshold. Valid values are >, >=, <, <=.
    query ServiceLevelObjectiveSliSpecificationTimeSliceQuery
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    threshold float
    The threshold value to which each SLI value will be compared.
    comparator String
    The comparator used to compare the SLI value to the threshold. Valid values are >, >=, <, <=.
    query Property Map
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    threshold Number
    The threshold value to which each SLI value will be compared.

    ServiceLevelObjectiveSliSpecificationTimeSliceQuery, ServiceLevelObjectiveSliSpecificationTimeSliceQueryArgs

    Formula ServiceLevelObjectiveSliSpecificationTimeSliceQueryFormula
    A list that contains exactly one formula, as only a single formula may be used to define a timeseries query for a time-slice SLO.
    Queries List<ServiceLevelObjectiveSliSpecificationTimeSliceQueryQuery>
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    Formula ServiceLevelObjectiveSliSpecificationTimeSliceQueryFormula
    A list that contains exactly one formula, as only a single formula may be used to define a timeseries query for a time-slice SLO.
    Queries []ServiceLevelObjectiveSliSpecificationTimeSliceQueryQuery
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    formula ServiceLevelObjectiveSliSpecificationTimeSliceQueryFormula
    A list that contains exactly one formula, as only a single formula may be used to define a timeseries query for a time-slice SLO.
    queries List<ServiceLevelObjectiveSliSpecificationTimeSliceQueryQuery>
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    formula ServiceLevelObjectiveSliSpecificationTimeSliceQueryFormula
    A list that contains exactly one formula, as only a single formula may be used to define a timeseries query for a time-slice SLO.
    queries ServiceLevelObjectiveSliSpecificationTimeSliceQueryQuery[]
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    formula ServiceLevelObjectiveSliSpecificationTimeSliceQueryFormula
    A list that contains exactly one formula, as only a single formula may be used to define a timeseries query for a time-slice SLO.
    queries Sequence[ServiceLevelObjectiveSliSpecificationTimeSliceQueryQuery]
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    formula Property Map
    A list that contains exactly one formula, as only a single formula may be used to define a timeseries query for a time-slice SLO.
    queries List<Property Map>
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.

    ServiceLevelObjectiveSliSpecificationTimeSliceQueryFormula, ServiceLevelObjectiveSliSpecificationTimeSliceQueryFormulaArgs

    FormulaExpression string
    The formula string, which is an expression involving named queries.
    FormulaExpression string
    The formula string, which is an expression involving named queries.
    formulaExpression String
    The formula string, which is an expression involving named queries.
    formulaExpression string
    The formula string, which is an expression involving named queries.
    formula_expression str
    The formula string, which is an expression involving named queries.
    formulaExpression String
    The formula string, which is an expression involving named queries.

    ServiceLevelObjectiveSliSpecificationTimeSliceQueryQuery, ServiceLevelObjectiveSliSpecificationTimeSliceQueryQueryArgs

    metricQuery Property Map
    A timeseries formula and functions metrics query.

    ServiceLevelObjectiveSliSpecificationTimeSliceQueryQueryMetricQuery, ServiceLevelObjectiveSliSpecificationTimeSliceQueryQueryMetricQueryArgs

    Name string
    The name of the query for use in formulas.
    Query string
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    DataSource string
    The data source for metrics queries. Defaults to "metrics".
    Name string
    The name of the query for use in formulas.
    Query string
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    DataSource string
    The data source for metrics queries. Defaults to "metrics".
    name String
    The name of the query for use in formulas.
    query String
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    dataSource String
    The data source for metrics queries. Defaults to "metrics".
    name string
    The name of the query for use in formulas.
    query string
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    dataSource string
    The data source for metrics queries. Defaults to "metrics".
    name str
    The name of the query for use in formulas.
    query str
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    data_source str
    The data source for metrics queries. Defaults to "metrics".
    name String
    The name of the query for use in formulas.
    query String
    A timeseries query, containing named data-source-specific queries and a formula involving the named queries.
    dataSource String
    The data source for metrics queries. Defaults to "metrics".

    ServiceLevelObjectiveThreshold, ServiceLevelObjectiveThresholdArgs

    Target double
    The objective's target in (0,100).
    Timeframe string
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    TargetDisplay string
    A string representation of the target that indicates its precision. It uses trailing zeros to show significant decimal places (e.g. 98.00).
    Warning double
    The objective's warning value in (0,100). This must be greater than the target value.
    WarningDisplay string
    A string representation of the warning target (see the description of the target_display field for details).
    Target float64
    The objective's target in (0,100).
    Timeframe string
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    TargetDisplay string
    A string representation of the target that indicates its precision. It uses trailing zeros to show significant decimal places (e.g. 98.00).
    Warning float64
    The objective's warning value in (0,100). This must be greater than the target value.
    WarningDisplay string
    A string representation of the warning target (see the description of the target_display field for details).
    target Double
    The objective's target in (0,100).
    timeframe String
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    targetDisplay String
    A string representation of the target that indicates its precision. It uses trailing zeros to show significant decimal places (e.g. 98.00).
    warning Double
    The objective's warning value in (0,100). This must be greater than the target value.
    warningDisplay String
    A string representation of the warning target (see the description of the target_display field for details).
    target number
    The objective's target in (0,100).
    timeframe string
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    targetDisplay string
    A string representation of the target that indicates its precision. It uses trailing zeros to show significant decimal places (e.g. 98.00).
    warning number
    The objective's warning value in (0,100). This must be greater than the target value.
    warningDisplay string
    A string representation of the warning target (see the description of the target_display field for details).
    target float
    The objective's target in (0,100).
    timeframe str
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    target_display str
    A string representation of the target that indicates its precision. It uses trailing zeros to show significant decimal places (e.g. 98.00).
    warning float
    The objective's warning value in (0,100). This must be greater than the target value.
    warning_display str
    A string representation of the warning target (see the description of the target_display field for details).
    target Number
    The objective's target in (0,100).
    timeframe String
    The time frame for the objective. The mapping from these types to the types found in the Datadog Web UI can be found in the Datadog API documentation page. Valid values are 7d, 30d, 90d, custom.
    targetDisplay String
    A string representation of the target that indicates its precision. It uses trailing zeros to show significant decimal places (e.g. 98.00).
    warning Number
    The objective's warning value in (0,100). This must be greater than the target value.
    warningDisplay String
    A string representation of the warning target (see the description of the target_display field for details).

    Import

    Service Level Objectives can be imported using their string ID, e.g.

    $ pulumi import datadog:index/serviceLevelObjective:ServiceLevelObjective baz 12345678901234567890123456789012
    

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Datadog v4.27.0 published on Thursday, Mar 14, 2024 by Pulumi