1. Packages
  2. Volcengine
  3. API Docs
  4. vmp
  5. getAlertSamples
Volcengine v0.0.46 published on Friday, Feb 27, 2026 by Volcengine
volcengine logo
Volcengine v0.0.46 published on Friday, Feb 27, 2026 by Volcengine

    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 getAlertSamples

    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 getAlertSamples(args: GetAlertSamplesArgs, opts?: InvokeOptions): Promise<GetAlertSamplesResult>
    function getAlertSamplesOutput(args: GetAlertSamplesOutputArgs, opts?: InvokeOptions): Output<GetAlertSamplesResult>
    def get_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) -> GetAlertSamplesResult
    def get_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[GetAlertSamplesResult]
    func GetAlertSamples(ctx *Context, args *GetAlertSamplesArgs, opts ...InvokeOption) (*GetAlertSamplesResult, error)
    func GetAlertSamplesOutput(ctx *Context, args *GetAlertSamplesOutputArgs, opts ...InvokeOption) GetAlertSamplesResultOutput

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

    public static class GetAlertSamples 
    {
        public static Task<GetAlertSamplesResult> InvokeAsync(GetAlertSamplesArgs args, InvokeOptions? opts = null)
        public static Output<GetAlertSamplesResult> Invoke(GetAlertSamplesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAlertSamplesResult> getAlertSamples(GetAlertSamplesArgs args, InvokeOptions options)
    public static Output<GetAlertSamplesResult> getAlertSamples(GetAlertSamplesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:vmp/getAlertSamples:getAlertSamples
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AlertId string
    Alert ID to filter samples.
    Limit int
    Limit of samples, default 100, max 500.
    SampleSince int
    Filter start timestamp (unix).
    SampleUntil int
    Filter end timestamp (unix).
    AlertId string
    Alert ID to filter samples.
    Limit int
    Limit of samples, default 100, max 500.
    SampleSince int
    Filter start timestamp (unix).
    SampleUntil int
    Filter end timestamp (unix).
    alertId String
    Alert ID to filter samples.
    limit Integer
    Limit of samples, default 100, max 500.
    sampleSince Integer
    Filter start timestamp (unix).
    sampleUntil Integer
    Filter end timestamp (unix).
    alertId string
    Alert ID to filter samples.
    limit number
    Limit of samples, default 100, max 500.
    sampleSince number
    Filter start timestamp (unix).
    sampleUntil 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).
    alertId String
    Alert ID to filter samples.
    limit Number
    Limit of samples, default 100, max 500.
    sampleSince Number
    Filter start timestamp (unix).
    sampleUntil Number
    Filter end timestamp (unix).

    getAlertSamples Result

    The following output properties are available:

    AlertId string
    Alert ID.
    AlertSamples List<GetAlertSamplesAlertSample>
    Alert samples collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    Limit int
    SampleSince int
    SampleUntil int
    AlertId string
    Alert ID.
    AlertSamples []GetAlertSamplesAlertSample
    Alert samples collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    Limit int
    SampleSince int
    SampleUntil int
    alertId String
    Alert ID.
    alertSamples List<GetAlertSamplesAlertSample>
    Alert samples collection.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    limit Integer
    sampleSince Integer
    sampleUntil Integer
    alertId string
    Alert ID.
    alertSamples GetAlertSamplesAlertSample[]
    Alert samples collection.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    limit number
    sampleSince number
    sampleUntil number
    alert_id str
    Alert ID.
    alert_samples Sequence[GetAlertSamplesAlertSample]
    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
    alertId String
    Alert ID.
    alertSamples List<Property Map>
    Alert samples collection.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of query.
    limit Number
    sampleSince Number
    sampleUntil Number

    Supporting Types

    GetAlertSamplesAlertSample

    AlertId string
    Alert ID to filter samples.
    Level string
    Alert sample level.
    Phase string
    Alert sample phase.
    Timestamp int
    Alert sample timestamp(unix).
    Value double
    Alert sample value.
    AlertId string
    Alert ID to filter samples.
    Level string
    Alert sample level.
    Phase string
    Alert sample phase.
    Timestamp int
    Alert sample timestamp(unix).
    Value float64
    Alert sample value.
    alertId String
    Alert ID to filter samples.
    level String
    Alert sample level.
    phase String
    Alert sample phase.
    timestamp Integer
    Alert sample timestamp(unix).
    value Double
    Alert sample value.
    alertId string
    Alert ID to filter samples.
    level string
    Alert sample level.
    phase string
    Alert sample phase.
    timestamp number
    Alert sample timestamp(unix).
    value number
    Alert sample value.
    alert_id str
    Alert ID to filter samples.
    level str
    Alert sample level.
    phase str
    Alert sample phase.
    timestamp int
    Alert sample timestamp(unix).
    value float
    Alert sample value.
    alertId String
    Alert ID to filter samples.
    level String
    Alert sample level.
    phase String
    Alert sample phase.
    timestamp Number
    Alert sample timestamp(unix).
    value Number
    Alert sample value.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.46 published on Friday, Feb 27, 2026 by Volcengine
      Meet Neo: Your AI Platform Teammate