prefect.ResourceSla
The resource ‘resource_sla’ represents a Prefect Resource SLA.
For more information, see documentation on setting up Service Level Agreements on Prefect resources.
This feature is available in the following product plan(s): Hobby, Starter, Team, Pro, Enterprise.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as prefect from "@pulumi/prefect";
const myFlow = new prefect.Flow("myFlow", {});
const myDeployment = new prefect.Deployment("myDeployment", {flowId: myFlow.id});
const slas = new prefect.ResourceSla("slas", {
    resourceId: pulumi.interpolate`prefect.deployment.${myDeployment.id}`,
    slas: [
        {
            name: "my-time-to-completion-sla",
            duration: 60,
        },
        {
            name: "my-frequency-sla",
            severity: "critical",
            staleAfter: 60,
        },
        {
            name: "my-freshness",
            severity: "moderate",
            within: 60,
            resourceMatch: JSON.stringify({
                label: "my-label",
            }),
            expectedEvent: "my-event",
        },
        {
            name: "my-lateness",
            severity: "moderate",
            within: 60,
        },
    ],
});
import pulumi
import json
import pulumi_prefect as prefect
my_flow = prefect.Flow("myFlow")
my_deployment = prefect.Deployment("myDeployment", flow_id=my_flow.id)
slas = prefect.ResourceSla("slas",
    resource_id=my_deployment.id.apply(lambda id: f"prefect.deployment.{id}"),
    slas=[
        {
            "name": "my-time-to-completion-sla",
            "duration": 60,
        },
        {
            "name": "my-frequency-sla",
            "severity": "critical",
            "stale_after": 60,
        },
        {
            "name": "my-freshness",
            "severity": "moderate",
            "within": 60,
            "resource_match": json.dumps({
                "label": "my-label",
            }),
            "expected_event": "my-event",
        },
        {
            "name": "my-lateness",
            "severity": "moderate",
            "within": 60,
        },
    ])
package main
import (
	"encoding/json"
	"fmt"
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/prefect/v2/prefect"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		myFlow, err := prefect.NewFlow(ctx, "myFlow", nil)
		if err != nil {
			return err
		}
		myDeployment, err := prefect.NewDeployment(ctx, "myDeployment", &prefect.DeploymentArgs{
			FlowId: myFlow.ID(),
		})
		if err != nil {
			return err
		}
		tmpJSON0, err := json.Marshal(map[string]interface{}{
			"label": "my-label",
		})
		if err != nil {
			return err
		}
		json0 := string(tmpJSON0)
		_, err = prefect.NewResourceSla(ctx, "slas", &prefect.ResourceSlaArgs{
			ResourceId: myDeployment.ID().ApplyT(func(id string) (string, error) {
				return fmt.Sprintf("prefect.deployment.%v", id), nil
			}).(pulumi.StringOutput),
			Slas: prefect.ResourceSlaSlaArray{
				&prefect.ResourceSlaSlaArgs{
					Name:     pulumi.String("my-time-to-completion-sla"),
					Duration: pulumi.Float64(60),
				},
				&prefect.ResourceSlaSlaArgs{
					Name:       pulumi.String("my-frequency-sla"),
					Severity:   pulumi.String("critical"),
					StaleAfter: pulumi.Float64(60),
				},
				&prefect.ResourceSlaSlaArgs{
					Name:          pulumi.String("my-freshness"),
					Severity:      pulumi.String("moderate"),
					Within:        pulumi.Float64(60),
					ResourceMatch: pulumi.String(json0),
					ExpectedEvent: pulumi.String("my-event"),
				},
				&prefect.ResourceSlaSlaArgs{
					Name:     pulumi.String("my-lateness"),
					Severity: pulumi.String("moderate"),
					Within:   pulumi.Float64(60),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Prefect = Pulumi.Prefect;
return await Deployment.RunAsync(() => 
{
    var myFlow = new Prefect.Flow("myFlow");
    var myDeployment = new Prefect.Deployment("myDeployment", new()
    {
        FlowId = myFlow.Id,
    });
    var slas = new Prefect.ResourceSla("slas", new()
    {
        ResourceId = myDeployment.Id.Apply(id => $"prefect.deployment.{id}"),
        Slas = new[]
        {
            new Prefect.Inputs.ResourceSlaSlaArgs
            {
                Name = "my-time-to-completion-sla",
                Duration = 60,
            },
            new Prefect.Inputs.ResourceSlaSlaArgs
            {
                Name = "my-frequency-sla",
                Severity = "critical",
                StaleAfter = 60,
            },
            new Prefect.Inputs.ResourceSlaSlaArgs
            {
                Name = "my-freshness",
                Severity = "moderate",
                Within = 60,
                ResourceMatch = JsonSerializer.Serialize(new Dictionary<string, object?>
                {
                    ["label"] = "my-label",
                }),
                ExpectedEvent = "my-event",
            },
            new Prefect.Inputs.ResourceSlaSlaArgs
            {
                Name = "my-lateness",
                Severity = "moderate",
                Within = 60,
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prefect.Flow;
import com.pulumi.prefect.Deployment;
import com.pulumi.prefect.DeploymentArgs;
import com.pulumi.prefect.ResourceSla;
import com.pulumi.prefect.ResourceSlaArgs;
import com.pulumi.prefect.inputs.ResourceSlaSlaArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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 myFlow = new Flow("myFlow");
        var myDeployment = new Deployment("myDeployment", DeploymentArgs.builder()
            .flowId(myFlow.id())
            .build());
        var slas = new ResourceSla("slas", ResourceSlaArgs.builder()
            .resourceId(myDeployment.id().applyValue(id -> String.format("prefect.deployment.%s", id)))
            .slas(            
                ResourceSlaSlaArgs.builder()
                    .name("my-time-to-completion-sla")
                    .duration(60)
                    .build(),
                ResourceSlaSlaArgs.builder()
                    .name("my-frequency-sla")
                    .severity("critical")
                    .staleAfter(60)
                    .build(),
                ResourceSlaSlaArgs.builder()
                    .name("my-freshness")
                    .severity("moderate")
                    .within(60)
                    .resourceMatch(serializeJson(
                        jsonObject(
                            jsonProperty("label", "my-label")
                        )))
                    .expectedEvent("my-event")
                    .build(),
                ResourceSlaSlaArgs.builder()
                    .name("my-lateness")
                    .severity("moderate")
                    .within(60)
                    .build())
            .build());
    }
}
resources:
  myFlow:
    type: prefect:Flow
  myDeployment:
    type: prefect:Deployment
    properties:
      flowId: ${myFlow.id}
  slas:
    type: prefect:ResourceSla
    properties:
      resourceId: prefect.deployment.${myDeployment.id}
      slas:
        - name: my-time-to-completion-sla
          duration: 60
        - name: my-frequency-sla
          severity: critical
          staleAfter: 60
        - name: my-freshness
          severity: moderate
          within: 60
          resourceMatch:
            fn::toJSON:
              label: my-label
          expectedEvent: my-event
        - name: my-lateness
          severity: moderate
          within: 60
Create ResourceSla Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ResourceSla(name: string, args: ResourceSlaArgs, opts?: CustomResourceOptions);@overload
def ResourceSla(resource_name: str,
                args: ResourceSlaArgs,
                opts: Optional[ResourceOptions] = None)
@overload
def ResourceSla(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                resource_id: Optional[str] = None,
                slas: Optional[Sequence[ResourceSlaSlaArgs]] = None,
                account_id: Optional[str] = None,
                workspace_id: Optional[str] = None)func NewResourceSla(ctx *Context, name string, args ResourceSlaArgs, opts ...ResourceOption) (*ResourceSla, error)public ResourceSla(string name, ResourceSlaArgs args, CustomResourceOptions? opts = null)
public ResourceSla(String name, ResourceSlaArgs args)
public ResourceSla(String name, ResourceSlaArgs args, CustomResourceOptions options)
type: prefect:ResourceSla
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ResourceSlaArgs
- 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 ResourceSlaArgs
- 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 ResourceSlaArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResourceSlaArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ResourceSlaArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var resourceSlaResource = new Prefect.ResourceSla("resourceSlaResource", new()
{
    ResourceId = "string",
    Slas = new[]
    {
        new Prefect.Inputs.ResourceSlaSlaArgs
        {
            Name = "string",
            Duration = 0,
            Enabled = false,
            ExpectedEvent = "string",
            OwnerResource = "string",
            ResourceMatch = "string",
            Severity = "string",
            StaleAfter = 0,
            Within = 0,
        },
    },
    AccountId = "string",
    WorkspaceId = "string",
});
example, err := prefect.NewResourceSla(ctx, "resourceSlaResource", &prefect.ResourceSlaArgs{
	ResourceId: pulumi.String("string"),
	Slas: prefect.ResourceSlaSlaArray{
		&prefect.ResourceSlaSlaArgs{
			Name:          pulumi.String("string"),
			Duration:      pulumi.Float64(0),
			Enabled:       pulumi.Bool(false),
			ExpectedEvent: pulumi.String("string"),
			OwnerResource: pulumi.String("string"),
			ResourceMatch: pulumi.String("string"),
			Severity:      pulumi.String("string"),
			StaleAfter:    pulumi.Float64(0),
			Within:        pulumi.Float64(0),
		},
	},
	AccountId:   pulumi.String("string"),
	WorkspaceId: pulumi.String("string"),
})
var resourceSlaResource = new ResourceSla("resourceSlaResource", ResourceSlaArgs.builder()
    .resourceId("string")
    .slas(ResourceSlaSlaArgs.builder()
        .name("string")
        .duration(0.0)
        .enabled(false)
        .expectedEvent("string")
        .ownerResource("string")
        .resourceMatch("string")
        .severity("string")
        .staleAfter(0.0)
        .within(0.0)
        .build())
    .accountId("string")
    .workspaceId("string")
    .build());
resource_sla_resource = prefect.ResourceSla("resourceSlaResource",
    resource_id="string",
    slas=[{
        "name": "string",
        "duration": 0,
        "enabled": False,
        "expected_event": "string",
        "owner_resource": "string",
        "resource_match": "string",
        "severity": "string",
        "stale_after": 0,
        "within": 0,
    }],
    account_id="string",
    workspace_id="string")
const resourceSlaResource = new prefect.ResourceSla("resourceSlaResource", {
    resourceId: "string",
    slas: [{
        name: "string",
        duration: 0,
        enabled: false,
        expectedEvent: "string",
        ownerResource: "string",
        resourceMatch: "string",
        severity: "string",
        staleAfter: 0,
        within: 0,
    }],
    accountId: "string",
    workspaceId: "string",
});
type: prefect:ResourceSla
properties:
    accountId: string
    resourceId: string
    slas:
        - duration: 0
          enabled: false
          expectedEvent: string
          name: string
          ownerResource: string
          resourceMatch: string
          severity: string
          staleAfter: 0
          within: 0
    workspaceId: string
ResourceSla Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ResourceSla resource accepts the following input properties:
- ResourceId string
- The ID of the Prefect resource to set the SLA for, in the format of prefect.<resource_type>.<resource_id>.
- Slas
List<ResourceSla Sla> 
- List of SLAs to set for the resource. Note that this is a declarative list, and any SLAs that are not defined in this list will be removed from the resource (if they existed previously). Existing SLAs will be updated to match the definitions in this list. See documentation on Defining SLAs for more information, as well as the API specification for the SLA payload structure.
- AccountId string
- Account ID (UUID), defaults to the account set in the provider
- WorkspaceId string
- Workspace ID (UUID), defaults to the workspace set in the provider
- ResourceId string
- The ID of the Prefect resource to set the SLA for, in the format of prefect.<resource_type>.<resource_id>.
- Slas
[]ResourceSla Sla Args 
- List of SLAs to set for the resource. Note that this is a declarative list, and any SLAs that are not defined in this list will be removed from the resource (if they existed previously). Existing SLAs will be updated to match the definitions in this list. See documentation on Defining SLAs for more information, as well as the API specification for the SLA payload structure.
- AccountId string
- Account ID (UUID), defaults to the account set in the provider
- WorkspaceId string
- Workspace ID (UUID), defaults to the workspace set in the provider
- resourceId String
- The ID of the Prefect resource to set the SLA for, in the format of prefect.<resource_type>.<resource_id>.
- slas
List<ResourceSla Sla> 
- List of SLAs to set for the resource. Note that this is a declarative list, and any SLAs that are not defined in this list will be removed from the resource (if they existed previously). Existing SLAs will be updated to match the definitions in this list. See documentation on Defining SLAs for more information, as well as the API specification for the SLA payload structure.
- accountId String
- Account ID (UUID), defaults to the account set in the provider
- workspaceId String
- Workspace ID (UUID), defaults to the workspace set in the provider
- resourceId string
- The ID of the Prefect resource to set the SLA for, in the format of prefect.<resource_type>.<resource_id>.
- slas
ResourceSla Sla[] 
- List of SLAs to set for the resource. Note that this is a declarative list, and any SLAs that are not defined in this list will be removed from the resource (if they existed previously). Existing SLAs will be updated to match the definitions in this list. See documentation on Defining SLAs for more information, as well as the API specification for the SLA payload structure.
- accountId string
- Account ID (UUID), defaults to the account set in the provider
- workspaceId string
- Workspace ID (UUID), defaults to the workspace set in the provider
- resource_id str
- The ID of the Prefect resource to set the SLA for, in the format of prefect.<resource_type>.<resource_id>.
- slas
Sequence[ResourceSla Sla Args] 
- List of SLAs to set for the resource. Note that this is a declarative list, and any SLAs that are not defined in this list will be removed from the resource (if they existed previously). Existing SLAs will be updated to match the definitions in this list. See documentation on Defining SLAs for more information, as well as the API specification for the SLA payload structure.
- account_id str
- Account ID (UUID), defaults to the account set in the provider
- workspace_id str
- Workspace ID (UUID), defaults to the workspace set in the provider
- resourceId String
- The ID of the Prefect resource to set the SLA for, in the format of prefect.<resource_type>.<resource_id>.
- slas List<Property Map>
- List of SLAs to set for the resource. Note that this is a declarative list, and any SLAs that are not defined in this list will be removed from the resource (if they existed previously). Existing SLAs will be updated to match the definitions in this list. See documentation on Defining SLAs for more information, as well as the API specification for the SLA payload structure.
- accountId String
- Account ID (UUID), defaults to the account set in the provider
- workspaceId String
- Workspace ID (UUID), defaults to the workspace set in the provider
Outputs
All input properties are implicitly available as output properties. Additionally, the ResourceSla 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 ResourceSla Resource
Get an existing ResourceSla 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?: ResourceSlaState, opts?: CustomResourceOptions): ResourceSla@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        resource_id: Optional[str] = None,
        slas: Optional[Sequence[ResourceSlaSlaArgs]] = None,
        workspace_id: Optional[str] = None) -> ResourceSlafunc GetResourceSla(ctx *Context, name string, id IDInput, state *ResourceSlaState, opts ...ResourceOption) (*ResourceSla, error)public static ResourceSla Get(string name, Input<string> id, ResourceSlaState? state, CustomResourceOptions? opts = null)public static ResourceSla get(String name, Output<String> id, ResourceSlaState state, CustomResourceOptions options)resources:  _:    type: prefect:ResourceSla    get:      id: ${id}- 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.
- AccountId string
- Account ID (UUID), defaults to the account set in the provider
- ResourceId string
- The ID of the Prefect resource to set the SLA for, in the format of prefect.<resource_type>.<resource_id>.
- Slas
List<ResourceSla Sla> 
- List of SLAs to set for the resource. Note that this is a declarative list, and any SLAs that are not defined in this list will be removed from the resource (if they existed previously). Existing SLAs will be updated to match the definitions in this list. See documentation on Defining SLAs for more information, as well as the API specification for the SLA payload structure.
- WorkspaceId string
- Workspace ID (UUID), defaults to the workspace set in the provider
- AccountId string
- Account ID (UUID), defaults to the account set in the provider
- ResourceId string
- The ID of the Prefect resource to set the SLA for, in the format of prefect.<resource_type>.<resource_id>.
- Slas
[]ResourceSla Sla Args 
- List of SLAs to set for the resource. Note that this is a declarative list, and any SLAs that are not defined in this list will be removed from the resource (if they existed previously). Existing SLAs will be updated to match the definitions in this list. See documentation on Defining SLAs for more information, as well as the API specification for the SLA payload structure.
- WorkspaceId string
- Workspace ID (UUID), defaults to the workspace set in the provider
- accountId String
- Account ID (UUID), defaults to the account set in the provider
- resourceId String
- The ID of the Prefect resource to set the SLA for, in the format of prefect.<resource_type>.<resource_id>.
- slas
List<ResourceSla Sla> 
- List of SLAs to set for the resource. Note that this is a declarative list, and any SLAs that are not defined in this list will be removed from the resource (if they existed previously). Existing SLAs will be updated to match the definitions in this list. See documentation on Defining SLAs for more information, as well as the API specification for the SLA payload structure.
- workspaceId String
- Workspace ID (UUID), defaults to the workspace set in the provider
- accountId string
- Account ID (UUID), defaults to the account set in the provider
- resourceId string
- The ID of the Prefect resource to set the SLA for, in the format of prefect.<resource_type>.<resource_id>.
- slas
ResourceSla Sla[] 
- List of SLAs to set for the resource. Note that this is a declarative list, and any SLAs that are not defined in this list will be removed from the resource (if they existed previously). Existing SLAs will be updated to match the definitions in this list. See documentation on Defining SLAs for more information, as well as the API specification for the SLA payload structure.
- workspaceId string
- Workspace ID (UUID), defaults to the workspace set in the provider
- account_id str
- Account ID (UUID), defaults to the account set in the provider
- resource_id str
- The ID of the Prefect resource to set the SLA for, in the format of prefect.<resource_type>.<resource_id>.
- slas
Sequence[ResourceSla Sla Args] 
- List of SLAs to set for the resource. Note that this is a declarative list, and any SLAs that are not defined in this list will be removed from the resource (if they existed previously). Existing SLAs will be updated to match the definitions in this list. See documentation on Defining SLAs for more information, as well as the API specification for the SLA payload structure.
- workspace_id str
- Workspace ID (UUID), defaults to the workspace set in the provider
- accountId String
- Account ID (UUID), defaults to the account set in the provider
- resourceId String
- The ID of the Prefect resource to set the SLA for, in the format of prefect.<resource_type>.<resource_id>.
- slas List<Property Map>
- List of SLAs to set for the resource. Note that this is a declarative list, and any SLAs that are not defined in this list will be removed from the resource (if they existed previously). Existing SLAs will be updated to match the definitions in this list. See documentation on Defining SLAs for more information, as well as the API specification for the SLA payload structure.
- workspaceId String
- Workspace ID (UUID), defaults to the workspace set in the provider
Supporting Types
ResourceSlaSla, ResourceSlaSlaArgs      
- Name string
- Name of the SLA
- Duration double
- (TimeToCompletion SLA) The maximum flow run duration in seconds allowed before the SLA is violated.
- Enabled bool
- Whether the SLA is enabled
- ExpectedEvent string
- (Freshness SLA) The event to expect for this SLA.
- OwnerResource string
- Resource that owns this SLA
- ResourceMatch string
- (Freshness SLA) The resource to match for this SLA. Use jsonencode()
- Severity string
- Severity level of the SLA. Can be one of minor,low,moderate,high, orcritical. Defaults tohigh.
- StaleAfter double
- (Frequency SLA) The amount of time after a flow run is considered stale.
- Within double
- (Freshness SLA or Lateness SLA) The amount of time after a flow run is considered stale or late.
- Name string
- Name of the SLA
- Duration float64
- (TimeToCompletion SLA) The maximum flow run duration in seconds allowed before the SLA is violated.
- Enabled bool
- Whether the SLA is enabled
- ExpectedEvent string
- (Freshness SLA) The event to expect for this SLA.
- OwnerResource string
- Resource that owns this SLA
- ResourceMatch string
- (Freshness SLA) The resource to match for this SLA. Use jsonencode()
- Severity string
- Severity level of the SLA. Can be one of minor,low,moderate,high, orcritical. Defaults tohigh.
- StaleAfter float64
- (Frequency SLA) The amount of time after a flow run is considered stale.
- Within float64
- (Freshness SLA or Lateness SLA) The amount of time after a flow run is considered stale or late.
- name String
- Name of the SLA
- duration Double
- (TimeToCompletion SLA) The maximum flow run duration in seconds allowed before the SLA is violated.
- enabled Boolean
- Whether the SLA is enabled
- expectedEvent String
- (Freshness SLA) The event to expect for this SLA.
- ownerResource String
- Resource that owns this SLA
- resourceMatch String
- (Freshness SLA) The resource to match for this SLA. Use jsonencode()
- severity String
- Severity level of the SLA. Can be one of minor,low,moderate,high, orcritical. Defaults tohigh.
- staleAfter Double
- (Frequency SLA) The amount of time after a flow run is considered stale.
- within Double
- (Freshness SLA or Lateness SLA) The amount of time after a flow run is considered stale or late.
- name string
- Name of the SLA
- duration number
- (TimeToCompletion SLA) The maximum flow run duration in seconds allowed before the SLA is violated.
- enabled boolean
- Whether the SLA is enabled
- expectedEvent string
- (Freshness SLA) The event to expect for this SLA.
- ownerResource string
- Resource that owns this SLA
- resourceMatch string
- (Freshness SLA) The resource to match for this SLA. Use jsonencode()
- severity string
- Severity level of the SLA. Can be one of minor,low,moderate,high, orcritical. Defaults tohigh.
- staleAfter number
- (Frequency SLA) The amount of time after a flow run is considered stale.
- within number
- (Freshness SLA or Lateness SLA) The amount of time after a flow run is considered stale or late.
- name str
- Name of the SLA
- duration float
- (TimeToCompletion SLA) The maximum flow run duration in seconds allowed before the SLA is violated.
- enabled bool
- Whether the SLA is enabled
- expected_event str
- (Freshness SLA) The event to expect for this SLA.
- owner_resource str
- Resource that owns this SLA
- resource_match str
- (Freshness SLA) The resource to match for this SLA. Use jsonencode()
- severity str
- Severity level of the SLA. Can be one of minor,low,moderate,high, orcritical. Defaults tohigh.
- stale_after float
- (Frequency SLA) The amount of time after a flow run is considered stale.
- within float
- (Freshness SLA or Lateness SLA) The amount of time after a flow run is considered stale or late.
- name String
- Name of the SLA
- duration Number
- (TimeToCompletion SLA) The maximum flow run duration in seconds allowed before the SLA is violated.
- enabled Boolean
- Whether the SLA is enabled
- expectedEvent String
- (Freshness SLA) The event to expect for this SLA.
- ownerResource String
- Resource that owns this SLA
- resourceMatch String
- (Freshness SLA) The resource to match for this SLA. Use jsonencode()
- severity String
- Severity level of the SLA. Can be one of minor,low,moderate,high, orcritical. Defaults tohigh.
- staleAfter Number
- (Frequency SLA) The amount of time after a flow run is considered stale.
- within Number
- (Freshness SLA or Lateness SLA) The amount of time after a flow run is considered stale or late.
Package Details
- Repository
- prefect prefecthq/terraform-provider-prefect
- License
- Notes
- This Pulumi package is based on the prefectTerraform Provider.
