Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
Deprecated: volcengine.vmp.AlertSamples has been deprecated in favor of volcengine.vmp.getAlertSamples
Use this data source to query detailed information of vmp alert samples
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const example = volcengine.vmp.getAlertSamples({
alertId: "695257b0d00908b4e7511fe4",
limit: 100,
sampleSince: 1766851200,
sampleUntil: 1767006860,
});
import pulumi
import pulumi_volcengine as volcengine
example = volcengine.vmp.get_alert_samples(alert_id="695257b0d00908b4e7511fe4",
limit=100,
sample_since=1766851200,
sample_until=1767006860)
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.GetAlertSamples(ctx, &vmp.GetAlertSamplesArgs{
AlertId: "695257b0d00908b4e7511fe4",
Limit: pulumi.IntRef(100),
SampleSince: pulumi.IntRef(1766851200),
SampleUntil: pulumi.IntRef(1767006860),
}, 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 example = Volcengine.Vmp.GetAlertSamples.Invoke(new()
{
AlertId = "695257b0d00908b4e7511fe4",
Limit = 100,
SampleSince = 1766851200,
SampleUntil = 1767006860,
});
});
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.GetAlertSamplesArgs;
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 = VmpFunctions.getAlertSamples(GetAlertSamplesArgs.builder()
.alertId("695257b0d00908b4e7511fe4")
.limit(100)
.sampleSince(1766851200)
.sampleUntil(1767006860)
.build());
}
}
variables:
example:
fn::invoke:
Function: volcengine:vmp:getAlertSamples
Arguments:
alertId: 695257b0d00908b4e7511fe4
limit: 100
sampleSince: 1.7668512e+09
sampleUntil: 1.76700686e+09
Using AlertSamples
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 alertSamples(args: AlertSamplesArgs, opts?: InvokeOptions): Promise<AlertSamplesResult>
function alertSamplesOutput(args: AlertSamplesOutputArgs, opts?: InvokeOptions): Output<AlertSamplesResult>def alert_samples(alert_id: Optional[str] = None,
limit: Optional[int] = None,
sample_since: Optional[int] = None,
sample_until: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> AlertSamplesResult
def alert_samples_output(alert_id: Optional[pulumi.Input[str]] = None,
limit: Optional[pulumi.Input[int]] = None,
sample_since: Optional[pulumi.Input[int]] = None,
sample_until: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[AlertSamplesResult]func AlertSamples(ctx *Context, args *AlertSamplesArgs, opts ...InvokeOption) (*AlertSamplesResult, error)
func AlertSamplesOutput(ctx *Context, args *AlertSamplesOutputArgs, opts ...InvokeOption) AlertSamplesResultOutputpublic static class AlertSamples
{
public static Task<AlertSamplesResult> InvokeAsync(AlertSamplesArgs args, InvokeOptions? opts = null)
public static Output<AlertSamplesResult> Invoke(AlertSamplesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<AlertSamplesResult> alertSamples(AlertSamplesArgs args, InvokeOptions options)
public static Output<AlertSamplesResult> alertSamples(AlertSamplesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:vmp:AlertSamples
arguments:
# arguments dictionaryThe following arguments are supported:
- Alert
Id string - Alert ID to filter samples.
- Limit int
- Limit of samples, default 100, max 500.
- Sample
Since int - Filter start timestamp (unix).
- Sample
Until int - Filter end timestamp (unix).
- Alert
Id string - Alert ID to filter samples.
- Limit int
- Limit of samples, default 100, max 500.
- Sample
Since int - Filter start timestamp (unix).
- Sample
Until int - Filter end timestamp (unix).
- alert
Id String - Alert ID to filter samples.
- limit Integer
- Limit of samples, default 100, max 500.
- sample
Since Integer - Filter start timestamp (unix).
- sample
Until Integer - Filter end timestamp (unix).
- alert
Id string - Alert ID to filter samples.
- limit number
- Limit of samples, default 100, max 500.
- sample
Since number - Filter start timestamp (unix).
- sample
Until number - Filter end timestamp (unix).
- alert_
id str - Alert ID to filter samples.
- limit int
- Limit of samples, default 100, max 500.
- sample_
since int - Filter start timestamp (unix).
- sample_
until int - Filter end timestamp (unix).
- alert
Id String - Alert ID to filter samples.
- limit Number
- Limit of samples, default 100, max 500.
- sample
Since Number - Filter start timestamp (unix).
- sample
Until Number - Filter end timestamp (unix).
AlertSamples Result
The following output properties are available:
- Alert
Id string - Alert ID.
- Alert
Samples List<AlertSamples Alert Sample> - Alert samples collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Limit int
- Sample
Since int - Sample
Until int
- Alert
Id string - Alert ID.
- Alert
Samples []AlertSamples Alert Sample - Alert samples collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of query.
- Limit int
- Sample
Since int - Sample
Until int
- alert
Id String - Alert ID.
- alert
Samples List<AlertSamples Alert Sample> - Alert samples collection.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of query.
- limit Integer
- sample
Since Integer - sample
Until Integer
- alert
Id string - Alert ID.
- alert
Samples AlertSamples Alert Sample[] - Alert samples collection.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of query.
- limit number
- sample
Since number - sample
Until number
- alert_
id str - Alert ID.
- alert_
samples Sequence[AlertSamples Alert Sample] - Alert samples collection.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of query.
- limit int
- sample_
since int - sample_
until int
- alert
Id String - Alert ID.
- alert
Samples List<Property Map> - Alert samples collection.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of query.
- limit Number
- sample
Since Number - sample
Until Number
Supporting Types
AlertSamplesAlertSample
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
published on Friday, Mar 13, 2026 by Volcengine
