Wavefront v1.4.0, May 19 23
Wavefront v1.4.0, May 19 23
wavefront.getAlerts
Explore with Pulumi AI
Use this data source to get information about all Wavefront alerts.
Example Usage
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 main
import (
"github.com/pulumi/pulumi-wavefront/sdk/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
})
}
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());
}
}
import pulumi
import pulumi_wavefront as wavefront
example = wavefront.get_alerts(limit=10,
offset=0)
import * as pulumi from "@pulumi/pulumi";
import * as wavefront from "@pulumi/wavefront";
const example = wavefront.getAlerts({
limit: 10,
offset: 0,
});
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:
getAlerts Result
The following output properties are available:
- Alerts
List<Get
Alerts Alert> 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
[]Get
Alerts Alert 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<Get
Alerts Alert> 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
Get
Alerts Alert[] 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[Get
Alerts Alert] 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
- Additional
Information string User-supplied additional explanatory information about this alert.
- 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 Alerts 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 Alerts 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.
- 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
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 Alerts 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 Alerts 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.
- 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
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 Alerts 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 Alerts 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.
- 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
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 Alerts 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 Alerts 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.
- 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_
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 Alerts 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 Alerts 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.
- 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
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.
- 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.
GetAlertsAlertFailingHostLabelPair
GetAlertsAlertInMaintenanceHostLabelPair
Package Details
- Repository
- Wavefront pulumi/pulumi-wavefront
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
wavefront
Terraform Provider.