Wavefront v3.1.6 published on Thursday, Oct 31, 2024 by Pulumi
wavefront.getAlert
Explore with Pulumi AI
Use this data source to get information about a Wavefront alert by its ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as wavefront from "@pulumi/wavefront";
// Get the information about the alert.
const example = wavefront.getAlert({
id: "alert-id",
});
import pulumi
import pulumi_wavefront as wavefront
# Get the information about the alert.
example = wavefront.get_alert(id="alert-id")
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 {
// Get the information about the alert.
_, err := wavefront.LookupAlert(ctx, &wavefront.LookupAlertArgs{
Id: "alert-id",
}, 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(() =>
{
// Get the information about the alert.
var example = Wavefront.GetAlert.Invoke(new()
{
Id = "alert-id",
});
});
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.GetAlertArgs;
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) {
// Get the information about the alert.
final var example = WavefrontFunctions.getAlert(GetAlertArgs.builder()
.id("alert-id")
.build());
}
}
variables:
# Get the information about the alert.
example:
fn::invoke:
Function: wavefront:getAlert
Arguments:
id: alert-id
Using getAlert
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 getAlert(args: GetAlertArgs, opts?: InvokeOptions): Promise<GetAlertResult>
function getAlertOutput(args: GetAlertOutputArgs, opts?: InvokeOptions): Output<GetAlertResult>
def get_alert(id: Optional[str] = None,
targets: Optional[Mapping[str, str]] = None,
opts: Optional[InvokeOptions] = None) -> GetAlertResult
def get_alert_output(id: Optional[pulumi.Input[str]] = None,
targets: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAlertResult]
func LookupAlert(ctx *Context, args *LookupAlertArgs, opts ...InvokeOption) (*LookupAlertResult, error)
func LookupAlertOutput(ctx *Context, args *LookupAlertOutputArgs, opts ...InvokeOption) LookupAlertResultOutput
> Note: This function is named LookupAlert
in the Go SDK.
public static class GetAlert
{
public static Task<GetAlertResult> InvokeAsync(GetAlertArgs args, InvokeOptions? opts = null)
public static Output<GetAlertResult> Invoke(GetAlertInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAlertResult> getAlert(GetAlertArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: wavefront:index/getAlert:getAlert
arguments:
# arguments dictionary
The following arguments are supported:
getAlert Result
The following output properties are available:
- Additional
Information string - User-supplied additional explanatory information about this alert.
- Alert
Triage List<GetDashboards Alert Alert Triage Dashboard> - A set of user-supplied dashboard and parameters to create dashboard links for triaging alerts.
- Alert
Type string - The type of alert in Wavefront.
- Can
Modifies List<string> - A list of users or groups that can modify the alert.
- Can
Views 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.
- Display
Expression string - A second query the results of which are displayed in the alert user interface instead of the condition query.
- Evaluate
Realtime boolData - A Boolean flag to enable real-time evaluation.
- Failing
Host List<GetLabel Pairs Alert Failing Host Label Pair> - A list of failing host label pairs.
- Id string
- The ID of the alert in Wavefront.
- In
Maintenance List<GetHost Label Pairs Alert In Maintenance Host Label Pair> - A list of in maintenance host label pairs.
- Include
Obsolete boolMetrics - 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.
- Notification
Resend intFrequency Minutes - How often to re-trigger a continually failing alert.
- Process
Rate intMinutes - The specified query is executed every
process_rate_minutes
minutes. - Resolve
After intMinutes - 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 List<string> - A list of user-supplied runbook links for this alert.
- Severity string
- The severity of the alert.
- Severity
Lists List<string> - Statuses List<string>
- The status of the alert.
- 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.
- Additional
Information string - User-supplied additional explanatory information about this alert.
- Alert
Triage []GetDashboards Alert Alert Triage Dashboard - A set of user-supplied dashboard and parameters to create dashboard links for triaging alerts.
- Alert
Type string - The type of alert in Wavefront.
- Can
Modifies []string - A list of users or groups that can modify the alert.
- Can
Views []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.
- Display
Expression string - A second query the results of which are displayed in the alert user interface instead of the condition query.
- Evaluate
Realtime boolData - A Boolean flag to enable real-time evaluation.
- Failing
Host []GetLabel Pairs Alert Failing Host Label Pair - A list of failing host label pairs.
- Id string
- The ID of the alert in Wavefront.
- In
Maintenance []GetHost Label Pairs Alert In Maintenance Host Label Pair - A list of in maintenance host label pairs.
- Include
Obsolete boolMetrics - 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.
- Notification
Resend intFrequency Minutes - How often to re-trigger a continually failing alert.
- Process
Rate intMinutes - The specified query is executed every
process_rate_minutes
minutes. - Resolve
After intMinutes - 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 []string - A list of user-supplied runbook links for this alert.
- Severity string
- The severity of the alert.
- Severity
Lists []string - Statuses []string
- The status of the alert.
- []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.
- additional
Information String - User-supplied additional explanatory information about this alert.
- alert
Triage List<GetDashboards Alert Alert Triage Dashboard> - A set of user-supplied dashboard and parameters to create dashboard links for triaging alerts.
- alert
Type String - The type of alert in Wavefront.
- can
Modifies List<String> - A list of users or groups that can modify the alert.
- can
Views 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.
- display
Expression String - A second query the results of which are displayed in the alert user interface instead of the condition query.
- evaluate
Realtime BooleanData - A Boolean flag to enable real-time evaluation.
- failing
Host List<GetLabel Pairs Alert Failing Host Label Pair> - A list of failing host label pairs.
- id String
- The ID of the alert in Wavefront.
- in
Maintenance List<GetHost Label Pairs Alert In Maintenance Host Label Pair> - A list of in maintenance host label pairs.
- include
Obsolete BooleanMetrics - 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.
- notification
Resend IntegerFrequency Minutes - How often to re-trigger a continually failing alert.
- process
Rate IntegerMinutes - The specified query is executed every
process_rate_minutes
minutes. - resolve
After IntegerMinutes - 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 List<String> - A list of user-supplied runbook links for this alert.
- severity String
- The severity of the alert.
- severity
Lists List<String> - statuses List<String>
- The status of the alert.
- 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.
- additional
Information string - User-supplied additional explanatory information about this alert.
- alert
Triage GetDashboards Alert Alert Triage Dashboard[] - A set of user-supplied dashboard and parameters to create dashboard links for triaging alerts.
- alert
Type string - The type of alert in Wavefront.
- can
Modifies string[] - A list of users or groups that can modify the alert.
- can
Views 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.
- display
Expression string - A second query the results of which are displayed in the alert user interface instead of the condition query.
- evaluate
Realtime booleanData - A Boolean flag to enable real-time evaluation.
- failing
Host GetLabel Pairs Alert Failing Host Label Pair[] - A list of failing host label pairs.
- id string
- The ID of the alert in Wavefront.
- in
Maintenance GetHost Label Pairs Alert In Maintenance Host Label Pair[] - A list of in maintenance host label pairs.
- include
Obsolete booleanMetrics - 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.
- notification
Resend numberFrequency Minutes - How often to re-trigger a continually failing alert.
- process
Rate numberMinutes - The specified query is executed every
process_rate_minutes
minutes. - resolve
After numberMinutes - 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 string[] - A list of user-supplied runbook links for this alert.
- severity string
- The severity of the alert.
- severity
Lists string[] - statuses string[]
- The status of the alert.
- 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_ Sequence[Getdashboards Alert Alert Triage Dashboard] - 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_ booldata - A Boolean flag to enable real-time evaluation.
- failing_
host_ Sequence[Getlabel_ pairs Alert Failing Host Label Pair] - A list of failing host label pairs.
- id str
- The ID of the alert in Wavefront.
- in_
maintenance_ Sequence[Gethost_ label_ pairs Alert In Maintenance Host Label Pair] - A list of in maintenance host label pairs.
- include_
obsolete_ boolmetrics - 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_ intfrequency_ minutes - How often to re-trigger a continually failing alert.
- process_
rate_ intminutes - The specified query is executed every
process_rate_minutes
minutes. - resolve_
after_ intminutes - 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.
- 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.
- additional
Information String - User-supplied additional explanatory information about this alert.
- alert
Triage List<Property Map>Dashboards - A set of user-supplied dashboard and parameters to create dashboard links for triaging alerts.
- alert
Type String - The type of alert in Wavefront.
- can
Modifies List<String> - A list of users or groups that can modify the alert.
- can
Views 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.
- display
Expression String - A second query the results of which are displayed in the alert user interface instead of the condition query.
- evaluate
Realtime BooleanData - A Boolean flag to enable real-time evaluation.
- failing
Host List<Property Map>Label Pairs - A list of failing host label pairs.
- id String
- The ID of the alert in Wavefront.
- in
Maintenance List<Property Map>Host Label Pairs - A list of in maintenance host label pairs.
- include
Obsolete BooleanMetrics - 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.
- notification
Resend NumberFrequency Minutes - How often to re-trigger a continually failing alert.
- process
Rate NumberMinutes - The specified query is executed every
process_rate_minutes
minutes. - resolve
After NumberMinutes - 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 List<String> - A list of user-supplied runbook links for this alert.
- severity String
- The severity of the alert.
- severity
Lists List<String> - statuses List<String>
- The status of the alert.
- 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.
Supporting Types
GetAlertAlertTriageDashboard
- Dashboard
Id string - Dashboard ID
- Description string
- Dashboard Description
- Parameters
Get
Alert Alert Triage Dashboard Parameters
- Dashboard
Id string - Dashboard ID
- Description string
- Dashboard Description
- Parameters
Get
Alert Alert Triage Dashboard Parameters
- dashboard
Id String - Dashboard ID
- description String
- Dashboard Description
- parameters
Get
Alert Alert Triage Dashboard Parameters
- dashboard
Id string - Dashboard ID
- description string
- Dashboard Description
- parameters
Get
Alert Alert Triage Dashboard Parameters
- dashboard_
id str - Dashboard ID
- description str
- Dashboard Description
- parameters
Get
Alert Alert Triage Dashboard Parameters
- dashboard
Id String - Dashboard ID
- description String
- Dashboard Description
- parameters Property Map
GetAlertAlertTriageDashboardParameters
- Constants Dictionary<string, string>
- Constants map[string]string
- constants Map<String,String>
- constants {[key: string]: string}
- constants Mapping[str, str]
- constants Map<String>
GetAlertFailingHostLabelPair
GetAlertInMaintenanceHostLabelPair
Package Details
- Repository
- Wavefront pulumi/pulumi-wavefront
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
wavefront
Terraform Provider.