1. Registry
  2. Packages
  3. Vercel Provider
  4. API Docs
  5. CustomMonitor
Viewing docs for Vercel v5.27.0
published on Sunday, Nov 15, 2026 by Pulumiverse
vercel logo vercel logo
Viewing docs for Vercel v5.27.0
published on Sunday, Nov 15, 2026 by Pulumiverse

    Creates a project-scoped custom Vercel monitor (formerly custom alert rule) using the monitors API. Supports threshold and anomaly conditions on a metric or same-event ratio. Custom monitors must be enabled for the team. Manage Slack and webhook links with vercel.MonitorSlackNotification and vercel.MonitorWebhookNotification.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vercel from "@pulumiverse/vercel";
    
    const checkout = vercel.getProject({
        name: "checkout",
    });
    const checkoutErrors = new vercel.CustomMonitor("checkout_errors", {
        name: "Checkout server errors",
        projectId: checkout.then(checkout => checkout.id),
        severity: "high",
        tags: [
            "checkout",
            "payments",
        ],
        evaluation: {
            window: "5m",
            query: {
                metrics: {
                    errors: {
                        metric: "vercel.request.count",
                        aggregation: "count",
                        filter: "httpStatus >= 500",
                    },
                },
                outputs: ["errors"],
            },
        },
        trigger: {
            type: "threshold",
            output: "errors",
            operator: "gt",
            threshold: 20,
        },
        notificationSettings: {
            enableTeamOwnerNotifications: true,
        },
    });
    const checkoutErrorsMonitorSlackNotification = new vercel.MonitorSlackNotification("checkout_errors", {
        monitorId: checkoutErrors.id,
        slackChannelId: "C0123456789",
    });
    // Page on-call only when the agent investigation classifies the alert as Critical.
    const checkoutErrorsOncall = new vercel.MonitorSlackNotification("checkout_errors_oncall", {
        monitorId: checkoutErrors.id,
        slackChannelId: "C0ONCALL00",
        minimumSeverityLevel: "critical",
    });
    const alerts = new vercel.Webhook("alerts", {
        endpoint: "https://example.com/vercel-alerts",
        events: ["alerts.triggered"],
    });
    const checkoutErrorsMonitorWebhookNotification = new vercel.MonitorWebhookNotification("checkout_errors", {
        monitorId: checkoutErrors.id,
        webhookId: alerts.id,
    });
    
    import pulumi
    import pulumi_vercel as vercel
    import pulumiverse_vercel as vercel
    
    checkout = vercel.get_project(name="checkout")
    checkout_errors = vercel.CustomMonitor("checkout_errors",
        name="Checkout server errors",
        project_id=checkout.id,
        severity="high",
        tags=[
            "checkout",
            "payments",
        ],
        evaluation={
            "window": "5m",
            "query": {
                "metrics": {
                    "errors": {
                        "metric": "vercel.request.count",
                        "aggregation": "count",
                        "filter": "httpStatus >= 500",
                    },
                },
                "outputs": ["errors"],
            },
        },
        trigger={
            "type": "threshold",
            "output": "errors",
            "operator": "gt",
            "threshold": 20,
        },
        notification_settings={
            "enable_team_owner_notifications": True,
        })
    checkout_errors_monitor_slack_notification = vercel.MonitorSlackNotification("checkout_errors",
        monitor_id=checkout_errors.id,
        slack_channel_id="C0123456789")
    # Page on-call only when the agent investigation classifies the alert as Critical.
    checkout_errors_oncall = vercel.MonitorSlackNotification("checkout_errors_oncall",
        monitor_id=checkout_errors.id,
        slack_channel_id="C0ONCALL00",
        minimum_severity_level="critical")
    alerts = vercel.Webhook("alerts",
        endpoint="https://example.com/vercel-alerts",
        events=["alerts.triggered"])
    checkout_errors_monitor_webhook_notification = vercel.MonitorWebhookNotification("checkout_errors",
        monitor_id=checkout_errors.id,
        webhook_id=alerts.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-vercel/sdk/v5/go/vercel"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		checkout, err := vercel.LookupProject(ctx, &vercel.LookupProjectArgs{
    			Name: pulumi.StringRef("checkout"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		checkoutErrors, err := vercel.NewCustomMonitor(ctx, "checkout_errors", &vercel.CustomMonitorArgs{
    			Name:      pulumi.String("Checkout server errors"),
    			ProjectId: pulumi.String(checkout.Id),
    			Severity:  pulumi.String("high"),
    			Tags: pulumi.StringArray{
    				pulumi.String("checkout"),
    				pulumi.String("payments"),
    			},
    			Evaluation: &vercel.CustomMonitorEvaluationArgs{
    				Window: pulumi.String("5m"),
    				Query: &vercel.CustomMonitorEvaluationQueryArgs{
    					Metrics: vercel.CustomMonitorEvaluationQueryMetricsMap{
    						"errors": &vercel.CustomMonitorEvaluationQueryMetricsArgs{
    							Metric:      pulumi.String("vercel.request.count"),
    							Aggregation: pulumi.String("count"),
    							Filter:      pulumi.String("httpStatus >= 500"),
    						},
    					},
    					Outputs: pulumi.StringArray{
    						pulumi.String("errors"),
    					},
    				},
    			},
    			Trigger: &vercel.CustomMonitorTriggerArgs{
    				Type:      pulumi.String("threshold"),
    				Output:    pulumi.String("errors"),
    				Operator:  pulumi.String("gt"),
    				Threshold: pulumi.Float64(20),
    			},
    			NotificationSettings: &vercel.CustomMonitorNotificationSettingsArgs{
    				EnableTeamOwnerNotifications: pulumi.Bool(true),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vercel.NewMonitorSlackNotification(ctx, "checkout_errors", &vercel.MonitorSlackNotificationArgs{
    			MonitorId:      checkoutErrors.ID(),
    			SlackChannelId: pulumi.String("C0123456789"),
    		})
    		if err != nil {
    			return err
    		}
    		// Page on-call only when the agent investigation classifies the alert as Critical.
    		_, err = vercel.NewMonitorSlackNotification(ctx, "checkout_errors_oncall", &vercel.MonitorSlackNotificationArgs{
    			MonitorId:            checkoutErrors.ID(),
    			SlackChannelId:       pulumi.String("C0ONCALL00"),
    			MinimumSeverityLevel: pulumi.String("critical"),
    		})
    		if err != nil {
    			return err
    		}
    		alerts, err := vercel.NewWebhook(ctx, "alerts", &vercel.WebhookArgs{
    			Endpoint: pulumi.String("https://example.com/vercel-alerts"),
    			Events: pulumi.StringArray{
    				pulumi.String("alerts.triggered"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = vercel.NewMonitorWebhookNotification(ctx, "checkout_errors", &vercel.MonitorWebhookNotificationArgs{
    			MonitorId: checkoutErrors.ID(),
    			WebhookId: alerts.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vercel = Pulumiverse.Vercel;
    
    return await Deployment.RunAsync(() => 
    {
        var checkout = Vercel.GetProject.Invoke(new()
        {
            Name = "checkout",
        });
    
        var checkoutErrors = new Vercel.CustomMonitor("checkout_errors", new()
        {
            Name = "Checkout server errors",
            ProjectId = checkout.Apply(getProjectResult => getProjectResult.Id),
            Severity = "high",
            Tags = new[]
            {
                "checkout",
                "payments",
            },
            Evaluation = new Vercel.Inputs.CustomMonitorEvaluationArgs
            {
                Window = "5m",
                Query = new Vercel.Inputs.CustomMonitorEvaluationQueryArgs
                {
                    Metrics = 
                    {
                        { "errors", new Vercel.Inputs.CustomMonitorEvaluationQueryMetricsArgs
                        {
                            Metric = "vercel.request.count",
                            Aggregation = "count",
                            Filter = "httpStatus >= 500",
                        } },
                    },
                    Outputs = new[]
                    {
                        "errors",
                    },
                },
            },
            Trigger = new Vercel.Inputs.CustomMonitorTriggerArgs
            {
                Type = "threshold",
                Output = "errors",
                Operator = "gt",
                Threshold = 20,
            },
            NotificationSettings = new Vercel.Inputs.CustomMonitorNotificationSettingsArgs
            {
                EnableTeamOwnerNotifications = true,
            },
        });
    
        var checkoutErrorsMonitorSlackNotification = new Vercel.MonitorSlackNotification("checkout_errors", new()
        {
            MonitorId = checkoutErrors.Id,
            SlackChannelId = "C0123456789",
        });
    
        // Page on-call only when the agent investigation classifies the alert as Critical.
        var checkoutErrorsOncall = new Vercel.MonitorSlackNotification("checkout_errors_oncall", new()
        {
            MonitorId = checkoutErrors.Id,
            SlackChannelId = "C0ONCALL00",
            MinimumSeverityLevel = "critical",
        });
    
        var alerts = new Vercel.Webhook("alerts", new()
        {
            Endpoint = "https://example.com/vercel-alerts",
            Events = new[]
            {
                "alerts.triggered",
            },
        });
    
        var checkoutErrorsMonitorWebhookNotification = new Vercel.MonitorWebhookNotification("checkout_errors", new()
        {
            MonitorId = checkoutErrors.Id,
            WebhookId = alerts.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vercel.VercelFunctions;
    import com.pulumi.vercel.inputs.GetProjectArgs;
    import com.pulumiverse.vercel.CustomMonitor;
    import com.pulumiverse.vercel.CustomMonitorArgs;
    import com.pulumi.vercel.inputs.CustomMonitorEvaluationArgs;
    import com.pulumi.vercel.inputs.CustomMonitorEvaluationQueryArgs;
    import com.pulumi.vercel.inputs.CustomMonitorTriggerArgs;
    import com.pulumi.vercel.inputs.CustomMonitorNotificationSettingsArgs;
    import com.pulumiverse.vercel.MonitorSlackNotification;
    import com.pulumiverse.vercel.MonitorSlackNotificationArgs;
    import com.pulumiverse.vercel.Webhook;
    import com.pulumiverse.vercel.WebhookArgs;
    import com.pulumiverse.vercel.MonitorWebhookNotification;
    import com.pulumiverse.vercel.MonitorWebhookNotificationArgs;
    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) {
            final var checkout = VercelFunctions.getProject(GetProjectArgs.builder()
                .name("checkout")
                .build());
    
            var checkoutErrors = new CustomMonitor("checkoutErrors", CustomMonitorArgs.builder()
                .name("Checkout server errors")
                .projectId(checkout.id())
                .severity("high")
                .tags(            
                    "checkout",
                    "payments")
                .evaluation(CustomMonitorEvaluationArgs.builder()
                    .window("5m")
                    .query(CustomMonitorEvaluationQueryArgs.builder()
                        .metrics(Map.of("errors", CustomMonitorEvaluationQueryMetricsArgs.builder()
                            .metric("vercel.request.count")
                            .aggregation("count")
                            .filter("httpStatus >= 500")
                            .build()))
                        .outputs("errors")
                        .build())
                    .build())
                .trigger(CustomMonitorTriggerArgs.builder()
                    .type("threshold")
                    .output("errors")
                    .operator("gt")
                    .threshold(20.0)
                    .build())
                .notificationSettings(CustomMonitorNotificationSettingsArgs.builder()
                    .enableTeamOwnerNotifications(true)
                    .build())
                .build());
    
            var checkoutErrorsMonitorSlackNotification = new MonitorSlackNotification("checkoutErrorsMonitorSlackNotification", MonitorSlackNotificationArgs.builder()
                .monitorId(checkoutErrors.id())
                .slackChannelId("C0123456789")
                .build());
    
            // Page on-call only when the agent investigation classifies the alert as Critical.
            var checkoutErrorsOncall = new MonitorSlackNotification("checkoutErrorsOncall", MonitorSlackNotificationArgs.builder()
                .monitorId(checkoutErrors.id())
                .slackChannelId("C0ONCALL00")
                .minimumSeverityLevel("critical")
                .build());
    
            var alerts = new Webhook("alerts", WebhookArgs.builder()
                .endpoint("https://example.com/vercel-alerts")
                .events("alerts.triggered")
                .build());
    
            var checkoutErrorsMonitorWebhookNotification = new MonitorWebhookNotification("checkoutErrorsMonitorWebhookNotification", MonitorWebhookNotificationArgs.builder()
                .monitorId(checkoutErrors.id())
                .webhookId(alerts.id())
                .build());
    
        }
    }
    
    resources:
      checkoutErrors:
        type: vercel:CustomMonitor
        name: checkout_errors
        properties:
          name: Checkout server errors
          projectId: ${checkout.id}
          severity: high
          tags:
            - checkout
            - payments
          evaluation:
            window: 5m
            query:
              metrics:
                errors:
                  metric: vercel.request.count
                  aggregation: count
                  filter: httpStatus >= 500
              outputs:
                - errors
          trigger:
            type: threshold
            output: errors
            operator: gt
            threshold: 20
          notificationSettings:
            enableTeamOwnerNotifications: true
      checkoutErrorsMonitorSlackNotification:
        type: vercel:MonitorSlackNotification
        name: checkout_errors
        properties:
          monitorId: ${checkoutErrors.id}
          slackChannelId: C0123456789
      # Page on-call only when the agent investigation classifies the alert as Critical.
      checkoutErrorsOncall:
        type: vercel:MonitorSlackNotification
        name: checkout_errors_oncall
        properties:
          monitorId: ${checkoutErrors.id}
          slackChannelId: C0ONCALL00
          minimumSeverityLevel: critical
      checkoutErrorsMonitorWebhookNotification:
        type: vercel:MonitorWebhookNotification
        name: checkout_errors
        properties:
          monitorId: ${checkoutErrors.id}
          webhookId: ${alerts.id}
      alerts:
        type: vercel:Webhook
        properties:
          endpoint: https://example.com/vercel-alerts
          events:
            - alerts.triggered
    variables:
      checkout:
        fn::invoke:
          function: vercel:getProject
          arguments:
            name: checkout
    
    Example coming soon!
    

    Create CustomMonitor Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CustomMonitor(name: string, args: CustomMonitorArgs, opts?: CustomResourceOptions);
    @overload
    def CustomMonitor(resource_name: str,
                      args: CustomMonitorArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def CustomMonitor(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      evaluation: Optional[CustomMonitorEvaluationArgs] = None,
                      project_id: Optional[str] = None,
                      severity: Optional[str] = None,
                      trigger: Optional[CustomMonitorTriggerArgs] = None,
                      investigation_prompt: Optional[str] = None,
                      name: Optional[str] = None,
                      notification_settings: Optional[CustomMonitorNotificationSettingsArgs] = None,
                      tags: Optional[Sequence[str]] = None,
                      team_id: Optional[str] = None)
    func NewCustomMonitor(ctx *Context, name string, args CustomMonitorArgs, opts ...ResourceOption) (*CustomMonitor, error)
    public CustomMonitor(string name, CustomMonitorArgs args, CustomResourceOptions? opts = null)
    public CustomMonitor(String name, CustomMonitorArgs args)
    public CustomMonitor(String name, CustomMonitorArgs args, CustomResourceOptions options)
    
    type: vercel:CustomMonitor
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "vercel_custom_monitor" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args CustomMonitorArgs
    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 CustomMonitorArgs
    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 CustomMonitorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CustomMonitorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CustomMonitorArgs
    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 customMonitorResource = new Vercel.CustomMonitor("customMonitorResource", new()
    {
        Evaluation = new Vercel.Inputs.CustomMonitorEvaluationArgs
        {
            Query = new Vercel.Inputs.CustomMonitorEvaluationQueryArgs
            {
                Metrics = 
                {
                    { "string", new Vercel.Inputs.CustomMonitorEvaluationQueryMetricsArgs
                    {
                        Aggregation = "string",
                        Metric = "string",
                        Dimensions = new[]
                        {
                            "string",
                        },
                        Filter = "string",
                        Normalize = "string",
                        Per = "string",
                    } },
                },
                Outputs = new[]
                {
                    "string",
                },
                Filter = "string",
                Formulas = 
                {
                    { "string", "string" },
                },
                GroupBies = new[]
                {
                    "string",
                },
            },
            Window = "string",
        },
        ProjectId = "string",
        Severity = "string",
        Trigger = new Vercel.Inputs.CustomMonitorTriggerArgs
        {
            Output = "string",
            Type = "string",
            Minimum = new Vercel.Inputs.CustomMonitorTriggerMinimumArgs
            {
                Output = "string",
                Threshold = 0.0,
            },
            Operator = "string",
            StandardDeviations = 0.0,
            Threshold = 0.0,
        },
        InvestigationPrompt = "string",
        Name = "string",
        NotificationSettings = new Vercel.Inputs.CustomMonitorNotificationSettingsArgs
        {
            EnableTeamOwnerNotifications = false,
            IncidentIoRoutingKey = "string",
            VercelNotificationsMinimumSeverityLevel = "string",
        },
        Tags = new[]
        {
            "string",
        },
        TeamId = "string",
    });
    
    example, err := vercel.NewCustomMonitor(ctx, "customMonitorResource", &vercel.CustomMonitorArgs{
    	Evaluation: &vercel.CustomMonitorEvaluationArgs{
    		Query: &vercel.CustomMonitorEvaluationQueryArgs{
    			Metrics: vercel.CustomMonitorEvaluationQueryMetricsMap{
    				"string": &vercel.CustomMonitorEvaluationQueryMetricsArgs{
    					Aggregation: pulumi.String("string"),
    					Metric:      pulumi.String("string"),
    					Dimensions: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    					Filter:    pulumi.String("string"),
    					Normalize: pulumi.String("string"),
    					Per:       pulumi.String("string"),
    				},
    			},
    			Outputs: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Filter: pulumi.String("string"),
    			Formulas: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    			GroupBies: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    		Window: pulumi.String("string"),
    	},
    	ProjectId: pulumi.String("string"),
    	Severity:  pulumi.String("string"),
    	Trigger: &vercel.CustomMonitorTriggerArgs{
    		Output: pulumi.String("string"),
    		Type:   pulumi.String("string"),
    		Minimum: &vercel.CustomMonitorTriggerMinimumArgs{
    			Output:    pulumi.String("string"),
    			Threshold: pulumi.Float64(0),
    		},
    		Operator:           pulumi.String("string"),
    		StandardDeviations: pulumi.Float64(0),
    		Threshold:          pulumi.Float64(0),
    	},
    	InvestigationPrompt: pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	NotificationSettings: &vercel.CustomMonitorNotificationSettingsArgs{
    		EnableTeamOwnerNotifications:            pulumi.Bool(false),
    		IncidentIoRoutingKey:                    pulumi.String("string"),
    		VercelNotificationsMinimumSeverityLevel: pulumi.String("string"),
    	},
    	Tags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TeamId: pulumi.String("string"),
    })
    
    resource "vercel_custom_monitor" "customMonitorResource" {
      lifecycle {
        create_before_destroy = true
      }
      evaluation = {
        query = {
          metrics = {
            "string" = {
              aggregation = "string"
              metric      = "string"
              dimensions  = ["string"]
              filter      = "string"
              normalize   = "string"
              per         = "string"
            }
          }
          outputs = ["string"]
          filter  = "string"
          formulas = {
            "string" = "string"
          }
          group_bies = ["string"]
        }
        window = "string"
      }
      project_id = "string"
      severity   = "string"
      trigger = {
        output = "string"
        type   = "string"
        minimum = {
          output    = "string"
          threshold = 0
        }
        operator            = "string"
        standard_deviations = 0
        threshold           = 0
      }
      investigation_prompt = "string"
      name                 = "string"
      notification_settings = {
        enable_team_owner_notifications             = false
        incident_io_routing_key                     = "string"
        vercel_notifications_minimum_severity_level = "string"
      }
      tags    = ["string"]
      team_id = "string"
    }
    
    var customMonitorResource = new CustomMonitor("customMonitorResource", CustomMonitorArgs.builder()
        .evaluation(CustomMonitorEvaluationArgs.builder()
            .query(CustomMonitorEvaluationQueryArgs.builder()
                .metrics(Map.of("string", CustomMonitorEvaluationQueryMetricsArgs.builder()
                    .aggregation("string")
                    .metric("string")
                    .dimensions("string")
                    .filter("string")
                    .normalize("string")
                    .per("string")
                    .build()))
                .outputs("string")
                .filter("string")
                .formulas(Map.of("string", "string"))
                .groupBies("string")
                .build())
            .window("string")
            .build())
        .projectId("string")
        .severity("string")
        .trigger(CustomMonitorTriggerArgs.builder()
            .output("string")
            .type("string")
            .minimum(CustomMonitorTriggerMinimumArgs.builder()
                .output("string")
                .threshold(0.0)
                .build())
            .operator("string")
            .standardDeviations(0.0)
            .threshold(0.0)
            .build())
        .investigationPrompt("string")
        .name("string")
        .notificationSettings(CustomMonitorNotificationSettingsArgs.builder()
            .enableTeamOwnerNotifications(false)
            .incidentIoRoutingKey("string")
            .vercelNotificationsMinimumSeverityLevel("string")
            .build())
        .tags("string")
        .teamId("string")
        .build());
    
    custom_monitor_resource = vercel.CustomMonitor("customMonitorResource",
        evaluation={
            "query": {
                "metrics": {
                    "string": {
                        "aggregation": "string",
                        "metric": "string",
                        "dimensions": ["string"],
                        "filter": "string",
                        "normalize": "string",
                        "per": "string",
                    },
                },
                "outputs": ["string"],
                "filter": "string",
                "formulas": {
                    "string": "string",
                },
                "group_bies": ["string"],
            },
            "window": "string",
        },
        project_id="string",
        severity="string",
        trigger={
            "output": "string",
            "type": "string",
            "minimum": {
                "output": "string",
                "threshold": float(0),
            },
            "operator": "string",
            "standard_deviations": float(0),
            "threshold": float(0),
        },
        investigation_prompt="string",
        name="string",
        notification_settings={
            "enable_team_owner_notifications": False,
            "incident_io_routing_key": "string",
            "vercel_notifications_minimum_severity_level": "string",
        },
        tags=["string"],
        team_id="string")
    
    const customMonitorResource = new vercel.CustomMonitor("customMonitorResource", {
        evaluation: {
            query: {
                metrics: {
                    string: {
                        aggregation: "string",
                        metric: "string",
                        dimensions: ["string"],
                        filter: "string",
                        normalize: "string",
                        per: "string",
                    },
                },
                outputs: ["string"],
                filter: "string",
                formulas: {
                    string: "string",
                },
                groupBies: ["string"],
            },
            window: "string",
        },
        projectId: "string",
        severity: "string",
        trigger: {
            output: "string",
            type: "string",
            minimum: {
                output: "string",
                threshold: 0,
            },
            operator: "string",
            standardDeviations: 0,
            threshold: 0,
        },
        investigationPrompt: "string",
        name: "string",
        notificationSettings: {
            enableTeamOwnerNotifications: false,
            incidentIoRoutingKey: "string",
            vercelNotificationsMinimumSeverityLevel: "string",
        },
        tags: ["string"],
        teamId: "string",
    });
    
    type: vercel:CustomMonitor
    properties:
        evaluation:
            query:
                filter: string
                formulas:
                    string: string
                groupBies:
                    - string
                metrics:
                    string:
                        aggregation: string
                        dimensions:
                            - string
                        filter: string
                        metric: string
                        normalize: string
                        per: string
                outputs:
                    - string
            window: string
        investigationPrompt: string
        name: string
        notificationSettings:
            enableTeamOwnerNotifications: false
            incidentIoRoutingKey: string
            vercelNotificationsMinimumSeverityLevel: string
        projectId: string
        severity: string
        tags:
            - string
        teamId: string
        trigger:
            minimum:
                output: string
                threshold: 0
            operator: string
            output: string
            standardDeviations: 0
            threshold: 0
            type: string
    

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

    Evaluation Pulumiverse.Vercel.Inputs.CustomMonitorEvaluation
    The metric query and evaluation window.
    ProjectId string
    The project evaluated by this custom monitor. Creating a monitor or changing its query requires Observability Plus on this project.
    Severity string
    Severity assigned when the monitor triggers: low, medium, or high. Critical severity is assigned only by a completed agent investigation.
    Trigger Pulumiverse.Vercel.Inputs.CustomMonitorTrigger
    A fixed threshold or anomaly condition on the query output.
    InvestigationPrompt string
    Optional guidance stored for agent investigations. The API currently stores this prompt without passing it to the investigation workflow. Removing it clears the stored prompt.
    Name string
    A human-readable name for the monitor.
    NotificationSettings Pulumiverse.Vercel.Inputs.CustomMonitorNotificationSettings
    Notification delivery settings stored on the monitor. Notification destination links are managed with the vercel.MonitorSlackNotification and vercel.MonitorWebhookNotification resources.
    Tags List<string>
    Up to 10 unique tags used to organize the monitor. The provider adds terraform-provider-vercel when fewer than 10 user tags are configured. The provider-owned tag is hidden from Terraform state unless configured explicitly. Removing all user tags leaves only the provider-owned tag on the monitor.
    TeamId string
    The ID of the team that owns the monitor. Required if a default team is not configured in the provider.
    Evaluation CustomMonitorEvaluationArgs
    The metric query and evaluation window.
    ProjectId string
    The project evaluated by this custom monitor. Creating a monitor or changing its query requires Observability Plus on this project.
    Severity string
    Severity assigned when the monitor triggers: low, medium, or high. Critical severity is assigned only by a completed agent investigation.
    Trigger CustomMonitorTriggerArgs
    A fixed threshold or anomaly condition on the query output.
    InvestigationPrompt string
    Optional guidance stored for agent investigations. The API currently stores this prompt without passing it to the investigation workflow. Removing it clears the stored prompt.
    Name string
    A human-readable name for the monitor.
    NotificationSettings CustomMonitorNotificationSettingsArgs
    Notification delivery settings stored on the monitor. Notification destination links are managed with the vercel.MonitorSlackNotification and vercel.MonitorWebhookNotification resources.
    Tags []string
    Up to 10 unique tags used to organize the monitor. The provider adds terraform-provider-vercel when fewer than 10 user tags are configured. The provider-owned tag is hidden from Terraform state unless configured explicitly. Removing all user tags leaves only the provider-owned tag on the monitor.
    TeamId string
    The ID of the team that owns the monitor. Required if a default team is not configured in the provider.
    evaluation object
    The metric query and evaluation window.
    project_id string
    The project evaluated by this custom monitor. Creating a monitor or changing its query requires Observability Plus on this project.
    severity string
    Severity assigned when the monitor triggers: low, medium, or high. Critical severity is assigned only by a completed agent investigation.
    trigger object
    A fixed threshold or anomaly condition on the query output.
    investigation_prompt string
    Optional guidance stored for agent investigations. The API currently stores this prompt without passing it to the investigation workflow. Removing it clears the stored prompt.
    name string
    A human-readable name for the monitor.
    notification_settings object
    Notification delivery settings stored on the monitor. Notification destination links are managed with the vercel.MonitorSlackNotification and vercel.MonitorWebhookNotification resources.
    tags list(string)
    Up to 10 unique tags used to organize the monitor. The provider adds terraform-provider-vercel when fewer than 10 user tags are configured. The provider-owned tag is hidden from Terraform state unless configured explicitly. Removing all user tags leaves only the provider-owned tag on the monitor.
    team_id string
    The ID of the team that owns the monitor. Required if a default team is not configured in the provider.
    evaluation CustomMonitorEvaluation
    The metric query and evaluation window.
    projectId String
    The project evaluated by this custom monitor. Creating a monitor or changing its query requires Observability Plus on this project.
    severity String
    Severity assigned when the monitor triggers: low, medium, or high. Critical severity is assigned only by a completed agent investigation.
    trigger CustomMonitorTrigger
    A fixed threshold or anomaly condition on the query output.
    investigationPrompt String
    Optional guidance stored for agent investigations. The API currently stores this prompt without passing it to the investigation workflow. Removing it clears the stored prompt.
    name String
    A human-readable name for the monitor.
    notificationSettings CustomMonitorNotificationSettings
    Notification delivery settings stored on the monitor. Notification destination links are managed with the vercel.MonitorSlackNotification and vercel.MonitorWebhookNotification resources.
    tags List<String>
    Up to 10 unique tags used to organize the monitor. The provider adds terraform-provider-vercel when fewer than 10 user tags are configured. The provider-owned tag is hidden from Terraform state unless configured explicitly. Removing all user tags leaves only the provider-owned tag on the monitor.
    teamId String
    The ID of the team that owns the monitor. Required if a default team is not configured in the provider.
    evaluation CustomMonitorEvaluation
    The metric query and evaluation window.
    projectId string
    The project evaluated by this custom monitor. Creating a monitor or changing its query requires Observability Plus on this project.
    severity string
    Severity assigned when the monitor triggers: low, medium, or high. Critical severity is assigned only by a completed agent investigation.
    trigger CustomMonitorTrigger
    A fixed threshold or anomaly condition on the query output.
    investigationPrompt string
    Optional guidance stored for agent investigations. The API currently stores this prompt without passing it to the investigation workflow. Removing it clears the stored prompt.
    name string
    A human-readable name for the monitor.
    notificationSettings CustomMonitorNotificationSettings
    Notification delivery settings stored on the monitor. Notification destination links are managed with the vercel.MonitorSlackNotification and vercel.MonitorWebhookNotification resources.
    tags string[]
    Up to 10 unique tags used to organize the monitor. The provider adds terraform-provider-vercel when fewer than 10 user tags are configured. The provider-owned tag is hidden from Terraform state unless configured explicitly. Removing all user tags leaves only the provider-owned tag on the monitor.
    teamId string
    The ID of the team that owns the monitor. Required if a default team is not configured in the provider.
    evaluation CustomMonitorEvaluationArgs
    The metric query and evaluation window.
    project_id str
    The project evaluated by this custom monitor. Creating a monitor or changing its query requires Observability Plus on this project.
    severity str
    Severity assigned when the monitor triggers: low, medium, or high. Critical severity is assigned only by a completed agent investigation.
    trigger CustomMonitorTriggerArgs
    A fixed threshold or anomaly condition on the query output.
    investigation_prompt str
    Optional guidance stored for agent investigations. The API currently stores this prompt without passing it to the investigation workflow. Removing it clears the stored prompt.
    name str
    A human-readable name for the monitor.
    notification_settings CustomMonitorNotificationSettingsArgs
    Notification delivery settings stored on the monitor. Notification destination links are managed with the vercel.MonitorSlackNotification and vercel.MonitorWebhookNotification resources.
    tags Sequence[str]
    Up to 10 unique tags used to organize the monitor. The provider adds terraform-provider-vercel when fewer than 10 user tags are configured. The provider-owned tag is hidden from Terraform state unless configured explicitly. Removing all user tags leaves only the provider-owned tag on the monitor.
    team_id str
    The ID of the team that owns the monitor. Required if a default team is not configured in the provider.
    evaluation Property Map
    The metric query and evaluation window.
    projectId String
    The project evaluated by this custom monitor. Creating a monitor or changing its query requires Observability Plus on this project.
    severity String
    Severity assigned when the monitor triggers: low, medium, or high. Critical severity is assigned only by a completed agent investigation.
    trigger Property Map
    A fixed threshold or anomaly condition on the query output.
    investigationPrompt String
    Optional guidance stored for agent investigations. The API currently stores this prompt without passing it to the investigation workflow. Removing it clears the stored prompt.
    name String
    A human-readable name for the monitor.
    notificationSettings Property Map
    Notification delivery settings stored on the monitor. Notification destination links are managed with the vercel.MonitorSlackNotification and vercel.MonitorWebhookNotification resources.
    tags List<String>
    Up to 10 unique tags used to organize the monitor. The provider adds terraform-provider-vercel when fewer than 10 user tags are configured. The provider-owned tag is hidden from Terraform state unless configured explicitly. Removing all user tags leaves only the provider-owned tag on the monitor.
    teamId String
    The ID of the team that owns the monitor. Required if a default team is not configured in the provider.

    Outputs

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

    CreatedAt int
    Creation time as a Unix epoch timestamp in milliseconds.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt int
    Last update time as a Unix epoch timestamp in milliseconds.
    CreatedAt int
    Creation time as a Unix epoch timestamp in milliseconds.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt int
    Last update time as a Unix epoch timestamp in milliseconds.
    created_at number
    Creation time as a Unix epoch timestamp in milliseconds.
    id string
    The provider-assigned unique ID for this managed resource.
    updated_at number
    Last update time as a Unix epoch timestamp in milliseconds.
    createdAt Integer
    Creation time as a Unix epoch timestamp in milliseconds.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt Integer
    Last update time as a Unix epoch timestamp in milliseconds.
    createdAt number
    Creation time as a Unix epoch timestamp in milliseconds.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt number
    Last update time as a Unix epoch timestamp in milliseconds.
    created_at int
    Creation time as a Unix epoch timestamp in milliseconds.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at int
    Last update time as a Unix epoch timestamp in milliseconds.
    createdAt Number
    Creation time as a Unix epoch timestamp in milliseconds.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt Number
    Last update time as a Unix epoch timestamp in milliseconds.

    Look up Existing CustomMonitor Resource

    Get an existing CustomMonitor 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?: CustomMonitorState, opts?: CustomResourceOptions): CustomMonitor
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            created_at: Optional[int] = None,
            evaluation: Optional[CustomMonitorEvaluationArgs] = None,
            investigation_prompt: Optional[str] = None,
            name: Optional[str] = None,
            notification_settings: Optional[CustomMonitorNotificationSettingsArgs] = None,
            project_id: Optional[str] = None,
            severity: Optional[str] = None,
            tags: Optional[Sequence[str]] = None,
            team_id: Optional[str] = None,
            trigger: Optional[CustomMonitorTriggerArgs] = None,
            updated_at: Optional[int] = None) -> CustomMonitor
    func GetCustomMonitor(ctx *Context, name string, id IDInput, state *CustomMonitorState, opts ...ResourceOption) (*CustomMonitor, error)
    public static CustomMonitor Get(string name, Input<string> id, CustomMonitorState? state, CustomResourceOptions? opts = null)
    public static CustomMonitor get(String name, Output<String> id, CustomMonitorState state, CustomResourceOptions options)
    resources:  existingCustomMonitor:    type: vercel:CustomMonitor    get:      id: ${id}
    import {
      to = vercel_custom_monitor.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state CustomMonitorState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state CustomMonitorState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state CustomMonitorState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state CustomMonitorState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    CreatedAt int
    Creation time as a Unix epoch timestamp in milliseconds.
    Evaluation Pulumiverse.Vercel.Inputs.CustomMonitorEvaluation
    The metric query and evaluation window.
    InvestigationPrompt string
    Optional guidance stored for agent investigations. The API currently stores this prompt without passing it to the investigation workflow. Removing it clears the stored prompt.
    Name string
    A human-readable name for the monitor.
    NotificationSettings Pulumiverse.Vercel.Inputs.CustomMonitorNotificationSettings
    Notification delivery settings stored on the monitor. Notification destination links are managed with the vercel.MonitorSlackNotification and vercel.MonitorWebhookNotification resources.
    ProjectId string
    The project evaluated by this custom monitor. Creating a monitor or changing its query requires Observability Plus on this project.
    Severity string
    Severity assigned when the monitor triggers: low, medium, or high. Critical severity is assigned only by a completed agent investigation.
    Tags List<string>
    Up to 10 unique tags used to organize the monitor. The provider adds terraform-provider-vercel when fewer than 10 user tags are configured. The provider-owned tag is hidden from Terraform state unless configured explicitly. Removing all user tags leaves only the provider-owned tag on the monitor.
    TeamId string
    The ID of the team that owns the monitor. Required if a default team is not configured in the provider.
    Trigger Pulumiverse.Vercel.Inputs.CustomMonitorTrigger
    A fixed threshold or anomaly condition on the query output.
    UpdatedAt int
    Last update time as a Unix epoch timestamp in milliseconds.
    CreatedAt int
    Creation time as a Unix epoch timestamp in milliseconds.
    Evaluation CustomMonitorEvaluationArgs
    The metric query and evaluation window.
    InvestigationPrompt string
    Optional guidance stored for agent investigations. The API currently stores this prompt without passing it to the investigation workflow. Removing it clears the stored prompt.
    Name string
    A human-readable name for the monitor.
    NotificationSettings CustomMonitorNotificationSettingsArgs
    Notification delivery settings stored on the monitor. Notification destination links are managed with the vercel.MonitorSlackNotification and vercel.MonitorWebhookNotification resources.
    ProjectId string
    The project evaluated by this custom monitor. Creating a monitor or changing its query requires Observability Plus on this project.
    Severity string
    Severity assigned when the monitor triggers: low, medium, or high. Critical severity is assigned only by a completed agent investigation.
    Tags []string
    Up to 10 unique tags used to organize the monitor. The provider adds terraform-provider-vercel when fewer than 10 user tags are configured. The provider-owned tag is hidden from Terraform state unless configured explicitly. Removing all user tags leaves only the provider-owned tag on the monitor.
    TeamId string
    The ID of the team that owns the monitor. Required if a default team is not configured in the provider.
    Trigger CustomMonitorTriggerArgs
    A fixed threshold or anomaly condition on the query output.
    UpdatedAt int
    Last update time as a Unix epoch timestamp in milliseconds.
    created_at number
    Creation time as a Unix epoch timestamp in milliseconds.
    evaluation object
    The metric query and evaluation window.
    investigation_prompt string
    Optional guidance stored for agent investigations. The API currently stores this prompt without passing it to the investigation workflow. Removing it clears the stored prompt.
    name string
    A human-readable name for the monitor.
    notification_settings object
    Notification delivery settings stored on the monitor. Notification destination links are managed with the vercel.MonitorSlackNotification and vercel.MonitorWebhookNotification resources.
    project_id string
    The project evaluated by this custom monitor. Creating a monitor or changing its query requires Observability Plus on this project.
    severity string
    Severity assigned when the monitor triggers: low, medium, or high. Critical severity is assigned only by a completed agent investigation.
    tags list(string)
    Up to 10 unique tags used to organize the monitor. The provider adds terraform-provider-vercel when fewer than 10 user tags are configured. The provider-owned tag is hidden from Terraform state unless configured explicitly. Removing all user tags leaves only the provider-owned tag on the monitor.
    team_id string
    The ID of the team that owns the monitor. Required if a default team is not configured in the provider.
    trigger object
    A fixed threshold or anomaly condition on the query output.
    updated_at number
    Last update time as a Unix epoch timestamp in milliseconds.
    createdAt Integer
    Creation time as a Unix epoch timestamp in milliseconds.
    evaluation CustomMonitorEvaluation
    The metric query and evaluation window.
    investigationPrompt String
    Optional guidance stored for agent investigations. The API currently stores this prompt without passing it to the investigation workflow. Removing it clears the stored prompt.
    name String
    A human-readable name for the monitor.
    notificationSettings CustomMonitorNotificationSettings
    Notification delivery settings stored on the monitor. Notification destination links are managed with the vercel.MonitorSlackNotification and vercel.MonitorWebhookNotification resources.
    projectId String
    The project evaluated by this custom monitor. Creating a monitor or changing its query requires Observability Plus on this project.
    severity String
    Severity assigned when the monitor triggers: low, medium, or high. Critical severity is assigned only by a completed agent investigation.
    tags List<String>
    Up to 10 unique tags used to organize the monitor. The provider adds terraform-provider-vercel when fewer than 10 user tags are configured. The provider-owned tag is hidden from Terraform state unless configured explicitly. Removing all user tags leaves only the provider-owned tag on the monitor.
    teamId String
    The ID of the team that owns the monitor. Required if a default team is not configured in the provider.
    trigger CustomMonitorTrigger
    A fixed threshold or anomaly condition on the query output.
    updatedAt Integer
    Last update time as a Unix epoch timestamp in milliseconds.
    createdAt number
    Creation time as a Unix epoch timestamp in milliseconds.
    evaluation CustomMonitorEvaluation
    The metric query and evaluation window.
    investigationPrompt string
    Optional guidance stored for agent investigations. The API currently stores this prompt without passing it to the investigation workflow. Removing it clears the stored prompt.
    name string
    A human-readable name for the monitor.
    notificationSettings CustomMonitorNotificationSettings
    Notification delivery settings stored on the monitor. Notification destination links are managed with the vercel.MonitorSlackNotification and vercel.MonitorWebhookNotification resources.
    projectId string
    The project evaluated by this custom monitor. Creating a monitor or changing its query requires Observability Plus on this project.
    severity string
    Severity assigned when the monitor triggers: low, medium, or high. Critical severity is assigned only by a completed agent investigation.
    tags string[]
    Up to 10 unique tags used to organize the monitor. The provider adds terraform-provider-vercel when fewer than 10 user tags are configured. The provider-owned tag is hidden from Terraform state unless configured explicitly. Removing all user tags leaves only the provider-owned tag on the monitor.
    teamId string
    The ID of the team that owns the monitor. Required if a default team is not configured in the provider.
    trigger CustomMonitorTrigger
    A fixed threshold or anomaly condition on the query output.
    updatedAt number
    Last update time as a Unix epoch timestamp in milliseconds.
    created_at int
    Creation time as a Unix epoch timestamp in milliseconds.
    evaluation CustomMonitorEvaluationArgs
    The metric query and evaluation window.
    investigation_prompt str
    Optional guidance stored for agent investigations. The API currently stores this prompt without passing it to the investigation workflow. Removing it clears the stored prompt.
    name str
    A human-readable name for the monitor.
    notification_settings CustomMonitorNotificationSettingsArgs
    Notification delivery settings stored on the monitor. Notification destination links are managed with the vercel.MonitorSlackNotification and vercel.MonitorWebhookNotification resources.
    project_id str
    The project evaluated by this custom monitor. Creating a monitor or changing its query requires Observability Plus on this project.
    severity str
    Severity assigned when the monitor triggers: low, medium, or high. Critical severity is assigned only by a completed agent investigation.
    tags Sequence[str]
    Up to 10 unique tags used to organize the monitor. The provider adds terraform-provider-vercel when fewer than 10 user tags are configured. The provider-owned tag is hidden from Terraform state unless configured explicitly. Removing all user tags leaves only the provider-owned tag on the monitor.
    team_id str
    The ID of the team that owns the monitor. Required if a default team is not configured in the provider.
    trigger CustomMonitorTriggerArgs
    A fixed threshold or anomaly condition on the query output.
    updated_at int
    Last update time as a Unix epoch timestamp in milliseconds.
    createdAt Number
    Creation time as a Unix epoch timestamp in milliseconds.
    evaluation Property Map
    The metric query and evaluation window.
    investigationPrompt String
    Optional guidance stored for agent investigations. The API currently stores this prompt without passing it to the investigation workflow. Removing it clears the stored prompt.
    name String
    A human-readable name for the monitor.
    notificationSettings Property Map
    Notification delivery settings stored on the monitor. Notification destination links are managed with the vercel.MonitorSlackNotification and vercel.MonitorWebhookNotification resources.
    projectId String
    The project evaluated by this custom monitor. Creating a monitor or changing its query requires Observability Plus on this project.
    severity String
    Severity assigned when the monitor triggers: low, medium, or high. Critical severity is assigned only by a completed agent investigation.
    tags List<String>
    Up to 10 unique tags used to organize the monitor. The provider adds terraform-provider-vercel when fewer than 10 user tags are configured. The provider-owned tag is hidden from Terraform state unless configured explicitly. Removing all user tags leaves only the provider-owned tag on the monitor.
    teamId String
    The ID of the team that owns the monitor. Required if a default team is not configured in the provider.
    trigger Property Map
    A fixed threshold or anomaly condition on the query output.
    updatedAt Number
    Last update time as a Unix epoch timestamp in milliseconds.

    Supporting Types

    CustomMonitorEvaluation, CustomMonitorEvaluationArgs

    Query Pulumiverse.Vercel.Inputs.CustomMonitorEvaluationQuery
    The structured Alerts v3 query. Use one metric without formulas, or two metrics with a division formula named formula. Discover supported metrics with vc metrics schema <metric-or-prefix>.
    Window string
    Aggregation granularity and detection cadence: 5m, 15m, 1h, or 1d.
    Query CustomMonitorEvaluationQuery
    The structured Alerts v3 query. Use one metric without formulas, or two metrics with a division formula named formula. Discover supported metrics with vc metrics schema <metric-or-prefix>.
    Window string
    Aggregation granularity and detection cadence: 5m, 15m, 1h, or 1d.
    query object
    The structured Alerts v3 query. Use one metric without formulas, or two metrics with a division formula named formula. Discover supported metrics with vc metrics schema <metric-or-prefix>.
    window string
    Aggregation granularity and detection cadence: 5m, 15m, 1h, or 1d.
    query CustomMonitorEvaluationQuery
    The structured Alerts v3 query. Use one metric without formulas, or two metrics with a division formula named formula. Discover supported metrics with vc metrics schema <metric-or-prefix>.
    window String
    Aggregation granularity and detection cadence: 5m, 15m, 1h, or 1d.
    query CustomMonitorEvaluationQuery
    The structured Alerts v3 query. Use one metric without formulas, or two metrics with a division formula named formula. Discover supported metrics with vc metrics schema <metric-or-prefix>.
    window string
    Aggregation granularity and detection cadence: 5m, 15m, 1h, or 1d.
    query CustomMonitorEvaluationQuery
    The structured Alerts v3 query. Use one metric without formulas, or two metrics with a division formula named formula. Discover supported metrics with vc metrics schema <metric-or-prefix>.
    window str
    Aggregation granularity and detection cadence: 5m, 15m, 1h, or 1d.
    query Property Map
    The structured Alerts v3 query. Use one metric without formulas, or two metrics with a division formula named formula. Discover supported metrics with vc metrics schema <metric-or-prefix>.
    window String
    Aggregation granularity and detection cadence: 5m, 15m, 1h, or 1d.

    CustomMonitorEvaluationQuery, CustomMonitorEvaluationQueryArgs

    Metrics Dictionary<string, Pulumiverse.Vercel.Inputs.CustomMonitorEvaluationQueryMetrics>
    One or two metric selections keyed by caller-chosen aliases. The alias formula is reserved.
    Outputs List<string>
    Exactly one output: the sole metric alias, or formula for a ratio.
    Filter string
    KQL filter. Syntax and metric dimensions are validated by the API.
    Formulas Dictionary<string, string>
    Optional division formula, keyed by formula, referencing the two metric aliases, for example errors / requests.
    GroupBies List<string>
    Optional grouping dimension. Exactly one dimension is supported.
    Metrics map[string]CustomMonitorEvaluationQueryMetrics
    One or two metric selections keyed by caller-chosen aliases. The alias formula is reserved.
    Outputs []string
    Exactly one output: the sole metric alias, or formula for a ratio.
    Filter string
    KQL filter. Syntax and metric dimensions are validated by the API.
    Formulas map[string]string
    Optional division formula, keyed by formula, referencing the two metric aliases, for example errors / requests.
    GroupBies []string
    Optional grouping dimension. Exactly one dimension is supported.
    metrics map(object)
    One or two metric selections keyed by caller-chosen aliases. The alias formula is reserved.
    outputs list(string)
    Exactly one output: the sole metric alias, or formula for a ratio.
    filter string
    KQL filter. Syntax and metric dimensions are validated by the API.
    formulas map(string)
    Optional division formula, keyed by formula, referencing the two metric aliases, for example errors / requests.
    group_bies list(string)
    Optional grouping dimension. Exactly one dimension is supported.
    metrics Map<String,CustomMonitorEvaluationQueryMetrics>
    One or two metric selections keyed by caller-chosen aliases. The alias formula is reserved.
    outputs List<String>
    Exactly one output: the sole metric alias, or formula for a ratio.
    filter String
    KQL filter. Syntax and metric dimensions are validated by the API.
    formulas Map<String,String>
    Optional division formula, keyed by formula, referencing the two metric aliases, for example errors / requests.
    groupBies List<String>
    Optional grouping dimension. Exactly one dimension is supported.
    metrics {[key: string]: CustomMonitorEvaluationQueryMetrics}
    One or two metric selections keyed by caller-chosen aliases. The alias formula is reserved.
    outputs string[]
    Exactly one output: the sole metric alias, or formula for a ratio.
    filter string
    KQL filter. Syntax and metric dimensions are validated by the API.
    formulas {[key: string]: string}
    Optional division formula, keyed by formula, referencing the two metric aliases, for example errors / requests.
    groupBies string[]
    Optional grouping dimension. Exactly one dimension is supported.
    metrics Mapping[str, CustomMonitorEvaluationQueryMetrics]
    One or two metric selections keyed by caller-chosen aliases. The alias formula is reserved.
    outputs Sequence[str]
    Exactly one output: the sole metric alias, or formula for a ratio.
    filter str
    KQL filter. Syntax and metric dimensions are validated by the API.
    formulas Mapping[str, str]
    Optional division formula, keyed by formula, referencing the two metric aliases, for example errors / requests.
    group_bies Sequence[str]
    Optional grouping dimension. Exactly one dimension is supported.
    metrics Map<Property Map>
    One or two metric selections keyed by caller-chosen aliases. The alias formula is reserved.
    outputs List<String>
    Exactly one output: the sole metric alias, or formula for a ratio.
    filter String
    KQL filter. Syntax and metric dimensions are validated by the API.
    formulas Map<String>
    Optional division formula, keyed by formula, referencing the two metric aliases, for example errors / requests.
    groupBies List<String>
    Optional grouping dimension. Exactly one dimension is supported.

    CustomMonitorEvaluationQueryMetrics, CustomMonitorEvaluationQueryMetricsArgs

    Aggregation string
    Metric aggregation. Supported combinations depend on the metric.
    Metric string
    Semantic metric ID or custom metric name. Availability is validated by the API.
    Dimensions List<string>
    Dimensions required by the unique aggregation.
    Filter string
    KQL filter. Syntax and metric dimensions are validated by the API.
    Normalize string
    Set to percent for percentage normalization. Only supported for count or sum; cannot be combined with per.
    Per string
    Set to second for a per-second rate. Only supported for count or sum; cannot be combined with normalize.
    Aggregation string
    Metric aggregation. Supported combinations depend on the metric.
    Metric string
    Semantic metric ID or custom metric name. Availability is validated by the API.
    Dimensions []string
    Dimensions required by the unique aggregation.
    Filter string
    KQL filter. Syntax and metric dimensions are validated by the API.
    Normalize string
    Set to percent for percentage normalization. Only supported for count or sum; cannot be combined with per.
    Per string
    Set to second for a per-second rate. Only supported for count or sum; cannot be combined with normalize.
    aggregation string
    Metric aggregation. Supported combinations depend on the metric.
    metric string
    Semantic metric ID or custom metric name. Availability is validated by the API.
    dimensions list(string)
    Dimensions required by the unique aggregation.
    filter string
    KQL filter. Syntax and metric dimensions are validated by the API.
    normalize string
    Set to percent for percentage normalization. Only supported for count or sum; cannot be combined with per.
    per string
    Set to second for a per-second rate. Only supported for count or sum; cannot be combined with normalize.
    aggregation String
    Metric aggregation. Supported combinations depend on the metric.
    metric String
    Semantic metric ID or custom metric name. Availability is validated by the API.
    dimensions List<String>
    Dimensions required by the unique aggregation.
    filter String
    KQL filter. Syntax and metric dimensions are validated by the API.
    normalize String
    Set to percent for percentage normalization. Only supported for count or sum; cannot be combined with per.
    per String
    Set to second for a per-second rate. Only supported for count or sum; cannot be combined with normalize.
    aggregation string
    Metric aggregation. Supported combinations depend on the metric.
    metric string
    Semantic metric ID or custom metric name. Availability is validated by the API.
    dimensions string[]
    Dimensions required by the unique aggregation.
    filter string
    KQL filter. Syntax and metric dimensions are validated by the API.
    normalize string
    Set to percent for percentage normalization. Only supported for count or sum; cannot be combined with per.
    per string
    Set to second for a per-second rate. Only supported for count or sum; cannot be combined with normalize.
    aggregation str
    Metric aggregation. Supported combinations depend on the metric.
    metric str
    Semantic metric ID or custom metric name. Availability is validated by the API.
    dimensions Sequence[str]
    Dimensions required by the unique aggregation.
    filter str
    KQL filter. Syntax and metric dimensions are validated by the API.
    normalize str
    Set to percent for percentage normalization. Only supported for count or sum; cannot be combined with per.
    per str
    Set to second for a per-second rate. Only supported for count or sum; cannot be combined with normalize.
    aggregation String
    Metric aggregation. Supported combinations depend on the metric.
    metric String
    Semantic metric ID or custom metric name. Availability is validated by the API.
    dimensions List<String>
    Dimensions required by the unique aggregation.
    filter String
    KQL filter. Syntax and metric dimensions are validated by the API.
    normalize String
    Set to percent for percentage normalization. Only supported for count or sum; cannot be combined with per.
    per String
    Set to second for a per-second rate. Only supported for count or sum; cannot be combined with normalize.

    CustomMonitorNotificationSettings, CustomMonitorNotificationSettingsArgs

    EnableTeamOwnerNotifications bool
    IncidentIoRoutingKey string
    VercelNotificationsMinimumSeverityLevel string
    Set to critical to send Vercel notifications only for alerts classified as Critical. Omit to send Vercel notifications for every severity.
    EnableTeamOwnerNotifications bool
    IncidentIoRoutingKey string
    VercelNotificationsMinimumSeverityLevel string
    Set to critical to send Vercel notifications only for alerts classified as Critical. Omit to send Vercel notifications for every severity.
    enable_team_owner_notifications bool
    incident_io_routing_key string
    vercel_notifications_minimum_severity_level string
    Set to critical to send Vercel notifications only for alerts classified as Critical. Omit to send Vercel notifications for every severity.
    enableTeamOwnerNotifications Boolean
    incidentIoRoutingKey String
    vercelNotificationsMinimumSeverityLevel String
    Set to critical to send Vercel notifications only for alerts classified as Critical. Omit to send Vercel notifications for every severity.
    enableTeamOwnerNotifications boolean
    incidentIoRoutingKey string
    vercelNotificationsMinimumSeverityLevel string
    Set to critical to send Vercel notifications only for alerts classified as Critical. Omit to send Vercel notifications for every severity.
    enable_team_owner_notifications bool
    incident_io_routing_key str
    vercel_notifications_minimum_severity_level str
    Set to critical to send Vercel notifications only for alerts classified as Critical. Omit to send Vercel notifications for every severity.
    enableTeamOwnerNotifications Boolean
    incidentIoRoutingKey String
    vercelNotificationsMinimumSeverityLevel String
    Set to critical to send Vercel notifications only for alerts classified as Critical. Omit to send Vercel notifications for every severity.

    CustomMonitorTrigger, CustomMonitorTriggerArgs

    Output string
    The query's single output alias.
    Type string
    The condition type: threshold or anomaly.
    Minimum Pulumiverse.Vercel.Inputs.CustomMonitorTriggerMinimum
    Optional evaluation floor. Allowed for anomalies or ratio thresholds using gt or gte.
    Operator string
    Required for threshold triggers; omitted for anomaly triggers.
    StandardDeviations double
    Required anomaly threshold in standard deviations, at least 0.1.
    Threshold double
    Required numeric threshold for threshold triggers. Zero is supported.
    Output string
    The query's single output alias.
    Type string
    The condition type: threshold or anomaly.
    Minimum CustomMonitorTriggerMinimum
    Optional evaluation floor. Allowed for anomalies or ratio thresholds using gt or gte.
    Operator string
    Required for threshold triggers; omitted for anomaly triggers.
    StandardDeviations float64
    Required anomaly threshold in standard deviations, at least 0.1.
    Threshold float64
    Required numeric threshold for threshold triggers. Zero is supported.
    output string
    The query's single output alias.
    type string
    The condition type: threshold or anomaly.
    minimum object
    Optional evaluation floor. Allowed for anomalies or ratio thresholds using gt or gte.
    operator string
    Required for threshold triggers; omitted for anomaly triggers.
    standard_deviations number
    Required anomaly threshold in standard deviations, at least 0.1.
    threshold number
    Required numeric threshold for threshold triggers. Zero is supported.
    output String
    The query's single output alias.
    type String
    The condition type: threshold or anomaly.
    minimum CustomMonitorTriggerMinimum
    Optional evaluation floor. Allowed for anomalies or ratio thresholds using gt or gte.
    operator String
    Required for threshold triggers; omitted for anomaly triggers.
    standardDeviations Double
    Required anomaly threshold in standard deviations, at least 0.1.
    threshold Double
    Required numeric threshold for threshold triggers. Zero is supported.
    output string
    The query's single output alias.
    type string
    The condition type: threshold or anomaly.
    minimum CustomMonitorTriggerMinimum
    Optional evaluation floor. Allowed for anomalies or ratio thresholds using gt or gte.
    operator string
    Required for threshold triggers; omitted for anomaly triggers.
    standardDeviations number
    Required anomaly threshold in standard deviations, at least 0.1.
    threshold number
    Required numeric threshold for threshold triggers. Zero is supported.
    output str
    The query's single output alias.
    type str
    The condition type: threshold or anomaly.
    minimum CustomMonitorTriggerMinimum
    Optional evaluation floor. Allowed for anomalies or ratio thresholds using gt or gte.
    operator str
    Required for threshold triggers; omitted for anomaly triggers.
    standard_deviations float
    Required anomaly threshold in standard deviations, at least 0.1.
    threshold float
    Required numeric threshold for threshold triggers. Zero is supported.
    output String
    The query's single output alias.
    type String
    The condition type: threshold or anomaly.
    minimum Property Map
    Optional evaluation floor. Allowed for anomalies or ratio thresholds using gt or gte.
    operator String
    Required for threshold triggers; omitted for anomaly triggers.
    standardDeviations Number
    Required anomaly threshold in standard deviations, at least 0.1.
    threshold Number
    Required numeric threshold for threshold triggers. Zero is supported.

    CustomMonitorTriggerMinimum, CustomMonitorTriggerMinimumArgs

    Output string
    The primitive metric alias, or ratio numerator alias.
    Threshold double
    Non-negative floor below which the rule is not evaluated.
    Output string
    The primitive metric alias, or ratio numerator alias.
    Threshold float64
    Non-negative floor below which the rule is not evaluated.
    output string
    The primitive metric alias, or ratio numerator alias.
    threshold number
    Non-negative floor below which the rule is not evaluated.
    output String
    The primitive metric alias, or ratio numerator alias.
    threshold Double
    Non-negative floor below which the rule is not evaluated.
    output string
    The primitive metric alias, or ratio numerator alias.
    threshold number
    Non-negative floor below which the rule is not evaluated.
    output str
    The primitive metric alias, or ratio numerator alias.
    threshold float
    Non-negative floor below which the rule is not evaluated.
    output String
    The primitive metric alias, or ratio numerator alias.
    threshold Number
    Non-negative floor below which the rule is not evaluated.

    Import

    Include the team ID, or omit it when the provider has a default team.

    $ pulumi import vercel:index/customMonitor:CustomMonitor checkout_errors team_123/ar_123
    $ pulumi import vercel:index/customMonitor:CustomMonitor checkout_errors ar_123
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    vercel pulumiverse/pulumi-vercel
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vercel Terraform Provider.
    vercel logo vercel logo
    Viewing docs for Vercel v5.27.0
    published on Sunday, Nov 15, 2026 by Pulumiverse

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial