1. Packages
  2. Wavefront
  3. API Docs
  4. getAlerts
Wavefront v3.1.1 published on Monday, Mar 11, 2024 by Pulumi

wavefront.getAlerts

Explore with Pulumi AI

wavefront logo
Wavefront v3.1.1 published on Monday, Mar 11, 2024 by Pulumi

    Use this data source to get information about all Wavefront alerts.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as wavefront from "@pulumi/wavefront";
    
    const example = wavefront.getAlerts({
        limit: 10,
        offset: 0,
    });
    
    import pulumi
    import pulumi_wavefront as wavefront
    
    example = wavefront.get_alerts(limit=10,
        offset=0)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-wavefront/sdk/v3/go/wavefront"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := wavefront.GetAlerts(ctx, &wavefront.GetAlertsArgs{
    			Limit:  pulumi.IntRef(10),
    			Offset: pulumi.IntRef(0),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Wavefront = Pulumi.Wavefront;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Wavefront.GetAlerts.Invoke(new()
        {
            Limit = 10,
            Offset = 0,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.wavefront.WavefrontFunctions;
    import com.pulumi.wavefront.inputs.GetAlertsArgs;
    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 example = WavefrontFunctions.getAlerts(GetAlertsArgs.builder()
                .limit(10)
                .offset(0)
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: wavefront:getAlerts
          Arguments:
            limit: 10
            offset: 0
    

    Using getAlerts

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getAlerts(args: GetAlertsArgs, opts?: InvokeOptions): Promise<GetAlertsResult>
    function getAlertsOutput(args: GetAlertsOutputArgs, opts?: InvokeOptions): Output<GetAlertsResult>
    def get_alerts(limit: Optional[int] = None,
                   offset: Optional[int] = None,
                   opts: Optional[InvokeOptions] = None) -> GetAlertsResult
    def get_alerts_output(limit: Optional[pulumi.Input[int]] = None,
                   offset: Optional[pulumi.Input[int]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetAlertsResult]
    func GetAlerts(ctx *Context, args *GetAlertsArgs, opts ...InvokeOption) (*GetAlertsResult, error)
    func GetAlertsOutput(ctx *Context, args *GetAlertsOutputArgs, opts ...InvokeOption) GetAlertsResultOutput

    > Note: This function is named GetAlerts in the Go SDK.

    public static class GetAlerts 
    {
        public static Task<GetAlertsResult> InvokeAsync(GetAlertsArgs args, InvokeOptions? opts = null)
        public static Output<GetAlertsResult> Invoke(GetAlertsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAlertsResult> getAlerts(GetAlertsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: wavefront:index/getAlerts:getAlerts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Limit int
    Limit is the maximum number of results to be returned. Defaults to 100.
    Offset int
    Offset is the offset from the first result to be returned. Defaults to 0.
    Limit int
    Limit is the maximum number of results to be returned. Defaults to 100.
    Offset int
    Offset is the offset from the first result to be returned. Defaults to 0.
    limit Integer
    Limit is the maximum number of results to be returned. Defaults to 100.
    offset Integer
    Offset is the offset from the first result to be returned. Defaults to 0.
    limit number
    Limit is the maximum number of results to be returned. Defaults to 100.
    offset number
    Offset is the offset from the first result to be returned. Defaults to 0.
    limit int
    Limit is the maximum number of results to be returned. Defaults to 100.
    offset int
    Offset is the offset from the first result to be returned. Defaults to 0.
    limit Number
    Limit is the maximum number of results to be returned. Defaults to 100.
    offset Number
    Offset is the offset from the first result to be returned. Defaults to 0.

    getAlerts Result

    The following output properties are available:

    Alerts List<GetAlertsAlert>
    List of all alerts in Wavefront. For each alert you will see a list of attributes.
    Id string
    The provider-assigned unique ID for this managed resource.
    Limit int
    Offset int
    Alerts []GetAlertsAlert
    List of all alerts in Wavefront. For each alert you will see a list of attributes.
    Id string
    The provider-assigned unique ID for this managed resource.
    Limit int
    Offset int
    alerts List<GetAlertsAlert>
    List of all alerts in Wavefront. For each alert you will see a list of attributes.
    id String
    The provider-assigned unique ID for this managed resource.
    limit Integer
    offset Integer
    alerts GetAlertsAlert[]
    List of all alerts in Wavefront. For each alert you will see a list of attributes.
    id string
    The provider-assigned unique ID for this managed resource.
    limit number
    offset number
    alerts Sequence[GetAlertsAlert]
    List of all alerts in Wavefront. For each alert you will see a list of attributes.
    id str
    The provider-assigned unique ID for this managed resource.
    limit int
    offset int
    alerts List<Property Map>
    List of all alerts in Wavefront. For each alert you will see a list of attributes.
    id String
    The provider-assigned unique ID for this managed resource.
    limit Number
    offset Number

    Supporting Types

    GetAlertsAlert

    AdditionalInformation string
    User-supplied additional explanatory information about this alert.
    AlertTriageDashboards List<GetAlertsAlertAlertTriageDashboard>
    A set of user-supplied dashboard and parameters to create dashboard links for triaging alerts.
    AlertType string
    The type of alert in Wavefront.
    CanModifies List<string>
    A list of users or groups that can modify the alert.
    CanViews List<string>
    A list of users or groups that can view the alert.
    Condition string
    A Wavefront query that is evaluated at regular intervals (default is 1 minute). The alert fires and notifications are triggered when a data series matching this query evaluates to a non-zero value for a set number of consecutive minutes.
    Conditions Dictionary<string, string>
    A map of severity to condition for which this alert will trigger.
    DisplayExpression string
    A second query the results of which are displayed in the alert user interface instead of the condition query.
    EvaluateRealtimeData bool
    A Boolean flag to enable real-time evaluation.
    FailingHostLabelPairs List<GetAlertsAlertFailingHostLabelPair>
    A list of failing host label pairs.
    Id string
    The ID of the alert in Wavefront.
    InMaintenanceHostLabelPairs List<GetAlertsAlertInMaintenanceHostLabelPair>
    A list of in maintenance host label pairs.
    IncludeObsoleteMetrics bool
    A Boolean flag indicating whether to include obsolete metrics or not.
    Minutes int
    The number of consecutive minutes that a series matching the condition query must evaluate to "true" (non-zero value) before the alert fires.
    Name string
    The name of the alert as it is displayed in Wavefront.
    NotificationResendFrequencyMinutes int
    How often to re-trigger a continually failing alert.
    ProcessRateMinutes int
    The specified query is executed every process_rate_minutes minutes.
    ResolveAfterMinutes int
    The number of consecutive minutes that a firing series matching the condition query must evaluate to "false" (zero value) before the alert resolves.
    RunbookLinks List<string>
    A list of user-supplied runbook links for this alert.
    Severity string
    The severity of the alert.
    SeverityLists List<string>
    Statuses List<string>
    The status of the alert.
    Tags List<string>
    A set of tags assigned to the alert.
    Target string
    An email address or integration endpoint (such as PagerDuty or webhook) to notify when the alert status changes.
    Targets Dictionary<string, string>
    A comma-separated list of the email addresses or integration endpoints (such as PagerDuty or webhook) to notify when the alert status changes. Multiple target types can be in the list.
    AdditionalInformation string
    User-supplied additional explanatory information about this alert.
    AlertTriageDashboards []GetAlertsAlertAlertTriageDashboard
    A set of user-supplied dashboard and parameters to create dashboard links for triaging alerts.
    AlertType string
    The type of alert in Wavefront.
    CanModifies []string
    A list of users or groups that can modify the alert.
    CanViews []string
    A list of users or groups that can view the alert.
    Condition string
    A Wavefront query that is evaluated at regular intervals (default is 1 minute). The alert fires and notifications are triggered when a data series matching this query evaluates to a non-zero value for a set number of consecutive minutes.
    Conditions map[string]string
    A map of severity to condition for which this alert will trigger.
    DisplayExpression string
    A second query the results of which are displayed in the alert user interface instead of the condition query.
    EvaluateRealtimeData bool
    A Boolean flag to enable real-time evaluation.
    FailingHostLabelPairs []GetAlertsAlertFailingHostLabelPair
    A list of failing host label pairs.
    Id string
    The ID of the alert in Wavefront.
    InMaintenanceHostLabelPairs []GetAlertsAlertInMaintenanceHostLabelPair
    A list of in maintenance host label pairs.
    IncludeObsoleteMetrics bool
    A Boolean flag indicating whether to include obsolete metrics or not.
    Minutes int
    The number of consecutive minutes that a series matching the condition query must evaluate to "true" (non-zero value) before the alert fires.
    Name string
    The name of the alert as it is displayed in Wavefront.
    NotificationResendFrequencyMinutes int
    How often to re-trigger a continually failing alert.
    ProcessRateMinutes int
    The specified query is executed every process_rate_minutes minutes.
    ResolveAfterMinutes int
    The number of consecutive minutes that a firing series matching the condition query must evaluate to "false" (zero value) before the alert resolves.
    RunbookLinks []string
    A list of user-supplied runbook links for this alert.
    Severity string
    The severity of the alert.
    SeverityLists []string
    Statuses []string
    The status of the alert.
    Tags []string
    A set of tags assigned to the alert.
    Target string
    An email address or integration endpoint (such as PagerDuty or webhook) to notify when the alert status changes.
    Targets map[string]string
    A comma-separated list of the email addresses or integration endpoints (such as PagerDuty or webhook) to notify when the alert status changes. Multiple target types can be in the list.
    additionalInformation String
    User-supplied additional explanatory information about this alert.
    alertTriageDashboards List<GetAlertsAlertAlertTriageDashboard>
    A set of user-supplied dashboard and parameters to create dashboard links for triaging alerts.
    alertType String
    The type of alert in Wavefront.
    canModifies List<String>
    A list of users or groups that can modify the alert.
    canViews List<String>
    A list of users or groups that can view the alert.
    condition String
    A Wavefront query that is evaluated at regular intervals (default is 1 minute). The alert fires and notifications are triggered when a data series matching this query evaluates to a non-zero value for a set number of consecutive minutes.
    conditions Map<String,String>
    A map of severity to condition for which this alert will trigger.
    displayExpression String
    A second query the results of which are displayed in the alert user interface instead of the condition query.
    evaluateRealtimeData Boolean
    A Boolean flag to enable real-time evaluation.
    failingHostLabelPairs List<GetAlertsAlertFailingHostLabelPair>
    A list of failing host label pairs.
    id String
    The ID of the alert in Wavefront.
    inMaintenanceHostLabelPairs List<GetAlertsAlertInMaintenanceHostLabelPair>
    A list of in maintenance host label pairs.
    includeObsoleteMetrics Boolean
    A Boolean flag indicating whether to include obsolete metrics or not.
    minutes Integer
    The number of consecutive minutes that a series matching the condition query must evaluate to "true" (non-zero value) before the alert fires.
    name String
    The name of the alert as it is displayed in Wavefront.
    notificationResendFrequencyMinutes Integer
    How often to re-trigger a continually failing alert.
    processRateMinutes Integer
    The specified query is executed every process_rate_minutes minutes.
    resolveAfterMinutes Integer
    The number of consecutive minutes that a firing series matching the condition query must evaluate to "false" (zero value) before the alert resolves.
    runbookLinks List<String>
    A list of user-supplied runbook links for this alert.
    severity String
    The severity of the alert.
    severityLists List<String>
    statuses List<String>
    The status of the alert.
    tags List<String>
    A set of tags assigned to the alert.
    target String
    An email address or integration endpoint (such as PagerDuty or webhook) to notify when the alert status changes.
    targets Map<String,String>
    A comma-separated list of the email addresses or integration endpoints (such as PagerDuty or webhook) to notify when the alert status changes. Multiple target types can be in the list.
    additionalInformation string
    User-supplied additional explanatory information about this alert.
    alertTriageDashboards GetAlertsAlertAlertTriageDashboard[]
    A set of user-supplied dashboard and parameters to create dashboard links for triaging alerts.
    alertType string
    The type of alert in Wavefront.
    canModifies string[]
    A list of users or groups that can modify the alert.
    canViews string[]
    A list of users or groups that can view the alert.
    condition string
    A Wavefront query that is evaluated at regular intervals (default is 1 minute). The alert fires and notifications are triggered when a data series matching this query evaluates to a non-zero value for a set number of consecutive minutes.
    conditions {[key: string]: string}
    A map of severity to condition for which this alert will trigger.
    displayExpression string
    A second query the results of which are displayed in the alert user interface instead of the condition query.
    evaluateRealtimeData boolean
    A Boolean flag to enable real-time evaluation.
    failingHostLabelPairs GetAlertsAlertFailingHostLabelPair[]
    A list of failing host label pairs.
    id string
    The ID of the alert in Wavefront.
    inMaintenanceHostLabelPairs GetAlertsAlertInMaintenanceHostLabelPair[]
    A list of in maintenance host label pairs.
    includeObsoleteMetrics boolean
    A Boolean flag indicating whether to include obsolete metrics or not.
    minutes number
    The number of consecutive minutes that a series matching the condition query must evaluate to "true" (non-zero value) before the alert fires.
    name string
    The name of the alert as it is displayed in Wavefront.
    notificationResendFrequencyMinutes number
    How often to re-trigger a continually failing alert.
    processRateMinutes number
    The specified query is executed every process_rate_minutes minutes.
    resolveAfterMinutes number
    The number of consecutive minutes that a firing series matching the condition query must evaluate to "false" (zero value) before the alert resolves.
    runbookLinks string[]
    A list of user-supplied runbook links for this alert.
    severity string
    The severity of the alert.
    severityLists string[]
    statuses string[]
    The status of the alert.
    tags string[]
    A set of tags assigned to the alert.
    target string
    An email address or integration endpoint (such as PagerDuty or webhook) to notify when the alert status changes.
    targets {[key: string]: string}
    A comma-separated list of the email addresses or integration endpoints (such as PagerDuty or webhook) to notify when the alert status changes. Multiple target types can be in the list.
    additional_information str
    User-supplied additional explanatory information about this alert.
    alert_triage_dashboards Sequence[GetAlertsAlertAlertTriageDashboard]
    A set of user-supplied dashboard and parameters to create dashboard links for triaging alerts.
    alert_type str
    The type of alert in Wavefront.
    can_modifies Sequence[str]
    A list of users or groups that can modify the alert.
    can_views Sequence[str]
    A list of users or groups that can view the alert.
    condition str
    A Wavefront query that is evaluated at regular intervals (default is 1 minute). The alert fires and notifications are triggered when a data series matching this query evaluates to a non-zero value for a set number of consecutive minutes.
    conditions Mapping[str, str]
    A map of severity to condition for which this alert will trigger.
    display_expression str
    A second query the results of which are displayed in the alert user interface instead of the condition query.
    evaluate_realtime_data bool
    A Boolean flag to enable real-time evaluation.
    failing_host_label_pairs Sequence[GetAlertsAlertFailingHostLabelPair]
    A list of failing host label pairs.
    id str
    The ID of the alert in Wavefront.
    in_maintenance_host_label_pairs Sequence[GetAlertsAlertInMaintenanceHostLabelPair]
    A list of in maintenance host label pairs.
    include_obsolete_metrics bool
    A Boolean flag indicating whether to include obsolete metrics or not.
    minutes int
    The number of consecutive minutes that a series matching the condition query must evaluate to "true" (non-zero value) before the alert fires.
    name str
    The name of the alert as it is displayed in Wavefront.
    notification_resend_frequency_minutes int
    How often to re-trigger a continually failing alert.
    process_rate_minutes int
    The specified query is executed every process_rate_minutes minutes.
    resolve_after_minutes int
    The number of consecutive minutes that a firing series matching the condition query must evaluate to "false" (zero value) before the alert resolves.
    runbook_links Sequence[str]
    A list of user-supplied runbook links for this alert.
    severity str
    The severity of the alert.
    severity_lists Sequence[str]
    statuses Sequence[str]
    The status of the alert.
    tags Sequence[str]
    A set of tags assigned to the alert.
    target str
    An email address or integration endpoint (such as PagerDuty or webhook) to notify when the alert status changes.
    targets Mapping[str, str]
    A comma-separated list of the email addresses or integration endpoints (such as PagerDuty or webhook) to notify when the alert status changes. Multiple target types can be in the list.
    additionalInformation String
    User-supplied additional explanatory information about this alert.
    alertTriageDashboards List<Property Map>
    A set of user-supplied dashboard and parameters to create dashboard links for triaging alerts.
    alertType String
    The type of alert in Wavefront.
    canModifies List<String>
    A list of users or groups that can modify the alert.
    canViews List<String>
    A list of users or groups that can view the alert.
    condition String
    A Wavefront query that is evaluated at regular intervals (default is 1 minute). The alert fires and notifications are triggered when a data series matching this query evaluates to a non-zero value for a set number of consecutive minutes.
    conditions Map<String>
    A map of severity to condition for which this alert will trigger.
    displayExpression String
    A second query the results of which are displayed in the alert user interface instead of the condition query.
    evaluateRealtimeData Boolean
    A Boolean flag to enable real-time evaluation.
    failingHostLabelPairs List<Property Map>
    A list of failing host label pairs.
    id String
    The ID of the alert in Wavefront.
    inMaintenanceHostLabelPairs List<Property Map>
    A list of in maintenance host label pairs.
    includeObsoleteMetrics Boolean
    A Boolean flag indicating whether to include obsolete metrics or not.
    minutes Number
    The number of consecutive minutes that a series matching the condition query must evaluate to "true" (non-zero value) before the alert fires.
    name String
    The name of the alert as it is displayed in Wavefront.
    notificationResendFrequencyMinutes Number
    How often to re-trigger a continually failing alert.
    processRateMinutes Number
    The specified query is executed every process_rate_minutes minutes.
    resolveAfterMinutes Number
    The number of consecutive minutes that a firing series matching the condition query must evaluate to "false" (zero value) before the alert resolves.
    runbookLinks List<String>
    A list of user-supplied runbook links for this alert.
    severity String
    The severity of the alert.
    severityLists List<String>
    statuses List<String>
    The status of the alert.
    tags List<String>
    A set of tags assigned to the alert.
    target String
    An email address or integration endpoint (such as PagerDuty or webhook) to notify when the alert status changes.
    targets Map<String>
    A comma-separated list of the email addresses or integration endpoints (such as PagerDuty or webhook) to notify when the alert status changes. Multiple target types can be in the list.

    GetAlertsAlertAlertTriageDashboard

    dashboardId String
    Dashboard ID
    description String
    Dashboard Description
    parameters Property Map

    GetAlertsAlertAlertTriageDashboardParameters

    Constants Dictionary<string, object>
    Constants map[string]interface{}
    constants Map<String,Object>
    constants {[key: string]: any}
    constants Mapping[str, Any]
    constants Map<Any>

    GetAlertsAlertFailingHostLabelPair

    Firing int
    Host string
    Firing int
    Host string
    firing Integer
    host String
    firing number
    host string
    firing int
    host str
    firing Number
    host String

    GetAlertsAlertInMaintenanceHostLabelPair

    Firing int
    Host string
    Firing int
    Host string
    firing Integer
    host String
    firing number
    host string
    firing int
    host str
    firing Number
    host String

    Package Details

    Repository
    Wavefront pulumi/pulumi-wavefront
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the wavefront Terraform Provider.
    wavefront logo
    Wavefront v3.1.1 published on Monday, Mar 11, 2024 by Pulumi