Volcengine v0.0.34 published on Wednesday, Jul 2, 2025 by Volcengine
volcengine.vmp.getAlerts
Explore with Pulumi AI
Use this data source to query detailed information of vmp alerts
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.vmp.getAlerts({
ids: ["9a4f84-0868efcb795c2ac4-73cefd4b3263****"],
});
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.vmp.get_alerts(ids=["9a4f84-0868efcb795c2ac4-73cefd4b3263****"])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vmp"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vmp.GetAlerts(ctx, &vmp.GetAlertsArgs{
Ids: []string{
"9a4f84-0868efcb795c2ac4-73cefd4b3263****",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Vmp.GetAlerts.Invoke(new()
{
Ids = new[]
{
"9a4f84-0868efcb795c2ac4-73cefd4b3263****",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vmp.VmpFunctions;
import com.pulumi.volcengine.vmp.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 default = VmpFunctions.getAlerts(GetAlertsArgs.builder()
.ids("9a4f84-0868efcb795c2ac4-73cefd4b3263****")
.build());
}
}
variables:
default:
fn::invoke:
Function: volcengine:vmp:getAlerts
Arguments:
ids:
- 9a4f84-0868efcb795c2ac4-73cefd4b3263****
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(alerting_rule_ids: Optional[Sequence[str]] = None,
current_phase: Optional[str] = None,
desc: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
level: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAlertsResult
def get_alerts_output(alerting_rule_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
current_phase: Optional[pulumi.Input[str]] = None,
desc: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
level: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = 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)
public static Output<GetAlertsResult> getAlerts(GetAlertsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:vmp/getAlerts:getAlerts
arguments:
# arguments dictionary
The following arguments are supported:
- Alerting
Rule List<string>Ids - A list of alerting rule IDs.
- Current
Phase string - The status of vmp alert. Valid values:
Pending
,Active
,Resolved
,Disabled
. - Desc bool
- Whether to use descending sorting.
- Ids List<string>
- A list of vmp alert IDs.
- Level string
- The level of vmp alert. Valid values:
P0
,P1
,P2
. - Output
File string - File name where to save data source results.
- Alerting
Rule []stringIds - A list of alerting rule IDs.
- Current
Phase string - The status of vmp alert. Valid values:
Pending
,Active
,Resolved
,Disabled
. - Desc bool
- Whether to use descending sorting.
- Ids []string
- A list of vmp alert IDs.
- Level string
- The level of vmp alert. Valid values:
P0
,P1
,P2
. - Output
File string - File name where to save data source results.
- alerting
Rule List<String>Ids - A list of alerting rule IDs.
- current
Phase String - The status of vmp alert. Valid values:
Pending
,Active
,Resolved
,Disabled
. - desc Boolean
- Whether to use descending sorting.
- ids List<String>
- A list of vmp alert IDs.
- level String
- The level of vmp alert. Valid values:
P0
,P1
,P2
. - output
File String - File name where to save data source results.
- alerting
Rule string[]Ids - A list of alerting rule IDs.
- current
Phase string - The status of vmp alert. Valid values:
Pending
,Active
,Resolved
,Disabled
. - desc boolean
- Whether to use descending sorting.
- ids string[]
- A list of vmp alert IDs.
- level string
- The level of vmp alert. Valid values:
P0
,P1
,P2
. - output
File string - File name where to save data source results.
- alerting_
rule_ Sequence[str]ids - A list of alerting rule IDs.
- current_
phase str - The status of vmp alert. Valid values:
Pending
,Active
,Resolved
,Disabled
. - desc bool
- Whether to use descending sorting.
- ids Sequence[str]
- A list of vmp alert IDs.
- level str
- The level of vmp alert. Valid values:
P0
,P1
,P2
. - output_
file str - File name where to save data source results.
- alerting
Rule List<String>Ids - A list of alerting rule IDs.
- current
Phase String - The status of vmp alert. Valid values:
Pending
,Active
,Resolved
,Disabled
. - desc Boolean
- Whether to use descending sorting.
- ids List<String>
- A list of vmp alert IDs.
- level String
- The level of vmp alert. Valid values:
P0
,P1
,P2
. - output
File String - File name where to save data source results.
getAlerts Result
The following output properties are available:
- Alerts
List<Get
Alerts Alert> - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Alerting
Rule List<string>Ids - Current
Phase string - The status of the vmp alert.
- Desc bool
- Ids List<string>
- Level string
- The level of the vmp alerting rule.
- Output
File string
- Alerts
[]Get
Alerts Alert - The collection of query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Alerting
Rule []stringIds - Current
Phase string - The status of the vmp alert.
- Desc bool
- Ids []string
- Level string
- The level of the vmp alerting rule.
- Output
File string
- alerts
List<Get
Alerts Alert> - The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- alerting
Rule List<String>Ids - current
Phase String - The status of the vmp alert.
- desc Boolean
- ids List<String>
- level String
- The level of the vmp alerting rule.
- output
File String
- alerts
Get
Alerts Alert[] - The collection of query.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- alerting
Rule string[]Ids - current
Phase string - The status of the vmp alert.
- desc boolean
- ids string[]
- level string
- The level of the vmp alerting rule.
- output
File string
- alerts
Sequence[Get
Alerts Alert] - The collection of query.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- alerting_
rule_ Sequence[str]ids - current_
phase str - The status of the vmp alert.
- desc bool
- ids Sequence[str]
- level str
- The level of the vmp alerting rule.
- output_
file str
- alerts List<Property Map>
- The collection of query.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- alerting
Rule List<String>Ids - current
Phase String - The status of the vmp alert.
- desc Boolean
- ids List<String>
- level String
- The level of the vmp alerting rule.
- output
File String
Supporting Types
GetAlertsAlert
- Alerting
Rule stringId - The id of the vmp alerting rule.
- Alerting
Rule List<GetQueries Alerts Alert Alerting Rule Query> - The alerting query of the vmp alerting rule.
- Alerting
Rule stringType - The type of the vmp alerting rule.
- Current
Level string - The current level of the vmp alert.
- Current
Phase string - The status of vmp alert. Valid values:
Pending
,Active
,Resolved
,Disabled
. - Id string
- The id of the vmp alert.
- Initial
Alert stringTimestamp - The start time of the vmp alert. Format: RFC3339.
- Last
Alert stringTimestamp - The last time of the vmp alert. Format: RFC3339.
- Levels
List<Get
Alerts Alert Level> - The alerting levels of the vmp alert.
- Resolve
Alert stringTimestamp - The end time of the vmp alert. Format: RFC3339.
- Resources
List<Get
Alerts Alert Resource> - The alerting resource of the vmp alert.
- Alerting
Rule stringId - The id of the vmp alerting rule.
- Alerting
Rule []GetQueries Alerts Alert Alerting Rule Query - The alerting query of the vmp alerting rule.
- Alerting
Rule stringType - The type of the vmp alerting rule.
- Current
Level string - The current level of the vmp alert.
- Current
Phase string - The status of vmp alert. Valid values:
Pending
,Active
,Resolved
,Disabled
. - Id string
- The id of the vmp alert.
- Initial
Alert stringTimestamp - The start time of the vmp alert. Format: RFC3339.
- Last
Alert stringTimestamp - The last time of the vmp alert. Format: RFC3339.
- Levels
[]Get
Alerts Alert Level - The alerting levels of the vmp alert.
- Resolve
Alert stringTimestamp - The end time of the vmp alert. Format: RFC3339.
- Resources
[]Get
Alerts Alert Resource - The alerting resource of the vmp alert.
- alerting
Rule StringId - The id of the vmp alerting rule.
- alerting
Rule List<GetQueries Alerts Alert Alerting Rule Query> - The alerting query of the vmp alerting rule.
- alerting
Rule StringType - The type of the vmp alerting rule.
- current
Level String - The current level of the vmp alert.
- current
Phase String - The status of vmp alert. Valid values:
Pending
,Active
,Resolved
,Disabled
. - id String
- The id of the vmp alert.
- initial
Alert StringTimestamp - The start time of the vmp alert. Format: RFC3339.
- last
Alert StringTimestamp - The last time of the vmp alert. Format: RFC3339.
- levels
List<Get
Alerts Alert Level> - The alerting levels of the vmp alert.
- resolve
Alert StringTimestamp - The end time of the vmp alert. Format: RFC3339.
- resources
List<Get
Alerts Alert Resource> - The alerting resource of the vmp alert.
- alerting
Rule stringId - The id of the vmp alerting rule.
- alerting
Rule GetQueries Alerts Alert Alerting Rule Query[] - The alerting query of the vmp alerting rule.
- alerting
Rule stringType - The type of the vmp alerting rule.
- current
Level string - The current level of the vmp alert.
- current
Phase string - The status of vmp alert. Valid values:
Pending
,Active
,Resolved
,Disabled
. - id string
- The id of the vmp alert.
- initial
Alert stringTimestamp - The start time of the vmp alert. Format: RFC3339.
- last
Alert stringTimestamp - The last time of the vmp alert. Format: RFC3339.
- levels
Get
Alerts Alert Level[] - The alerting levels of the vmp alert.
- resolve
Alert stringTimestamp - The end time of the vmp alert. Format: RFC3339.
- resources
Get
Alerts Alert Resource[] - The alerting resource of the vmp alert.
- alerting_
rule_ strid - The id of the vmp alerting rule.
- alerting_
rule_ Sequence[Getqueries Alerts Alert Alerting Rule Query] - The alerting query of the vmp alerting rule.
- alerting_
rule_ strtype - The type of the vmp alerting rule.
- current_
level str - The current level of the vmp alert.
- current_
phase str - The status of vmp alert. Valid values:
Pending
,Active
,Resolved
,Disabled
. - id str
- The id of the vmp alert.
- initial_
alert_ strtimestamp - The start time of the vmp alert. Format: RFC3339.
- last_
alert_ strtimestamp - The last time of the vmp alert. Format: RFC3339.
- levels
Sequence[Get
Alerts Alert Level] - The alerting levels of the vmp alert.
- resolve_
alert_ strtimestamp - The end time of the vmp alert. Format: RFC3339.
- resources
Sequence[Get
Alerts Alert Resource] - The alerting resource of the vmp alert.
- alerting
Rule StringId - The id of the vmp alerting rule.
- alerting
Rule List<Property Map>Queries - The alerting query of the vmp alerting rule.
- alerting
Rule StringType - The type of the vmp alerting rule.
- current
Level String - The current level of the vmp alert.
- current
Phase String - The status of vmp alert. Valid values:
Pending
,Active
,Resolved
,Disabled
. - id String
- The id of the vmp alert.
- initial
Alert StringTimestamp - The start time of the vmp alert. Format: RFC3339.
- last
Alert StringTimestamp - The last time of the vmp alert. Format: RFC3339.
- levels List<Property Map>
- The alerting levels of the vmp alert.
- resolve
Alert StringTimestamp - The end time of the vmp alert. Format: RFC3339.
- resources List<Property Map>
- The alerting resource of the vmp alert.
GetAlertsAlertAlertingRuleQuery
- Prom
Ql string - The prom ql of query.
- Workspace
Id string - The id of the workspace.
- Prom
Ql string - The prom ql of query.
- Workspace
Id string - The id of the workspace.
- prom
Ql String - The prom ql of query.
- workspace
Id String - The id of the workspace.
- prom
Ql string - The prom ql of query.
- workspace
Id string - The id of the workspace.
- prom_
ql str - The prom ql of query.
- workspace_
id str - The id of the workspace.
- prom
Ql String - The prom ql of query.
- workspace
Id String - The id of the workspace.
GetAlertsAlertLevel
- Comparator string
- The comparator of the vmp alerting rule.
- For string
- The duration of the alerting rule.
- Level string
- The level of vmp alert. Valid values:
P0
,P1
,P2
. - Threshold double
- The threshold of the vmp alerting rule.
- Comparator string
- The comparator of the vmp alerting rule.
- For string
- The duration of the alerting rule.
- Level string
- The level of vmp alert. Valid values:
P0
,P1
,P2
. - Threshold float64
- The threshold of the vmp alerting rule.
- comparator String
- The comparator of the vmp alerting rule.
- for_ String
- The duration of the alerting rule.
- level String
- The level of vmp alert. Valid values:
P0
,P1
,P2
. - threshold Double
- The threshold of the vmp alerting rule.
- comparator string
- The comparator of the vmp alerting rule.
- for string
- The duration of the alerting rule.
- level string
- The level of vmp alert. Valid values:
P0
,P1
,P2
. - threshold number
- The threshold of the vmp alerting rule.
- comparator str
- The comparator of the vmp alerting rule.
- for_ str
- The duration of the alerting rule.
- level str
- The level of vmp alert. Valid values:
P0
,P1
,P2
. - threshold float
- The threshold of the vmp alerting rule.
- comparator String
- The comparator of the vmp alerting rule.
- for String
- The duration of the alerting rule.
- level String
- The level of vmp alert. Valid values:
P0
,P1
,P2
. - threshold Number
- The threshold of the vmp alerting rule.
GetAlertsAlertResource
- Labels
List<Get
Alerts Alert Resource Label> - The labels of alerting resource.
- Labels
[]Get
Alerts Alert Resource Label - The labels of alerting resource.
- labels
List<Get
Alerts Alert Resource Label> - The labels of alerting resource.
- labels
Get
Alerts Alert Resource Label[] - The labels of alerting resource.
- labels
Sequence[Get
Alerts Alert Resource Label] - The labels of alerting resource.
- labels List<Property Map>
- The labels of alerting resource.
GetAlertsAlertResourceLabel
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.