1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getCesMultipleMetricDataV1
opentelekomcloud 1.36.44 published on Thursday, Jul 31, 2025 by opentelekomcloud

opentelekomcloud.getCesMultipleMetricDataV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.44 published on Thursday, Jul 31, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for CES multiple metric data v1 you can get at documentation portal

    Get details about CES metric data in a batch within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const metricData1 = opentelekomcloud.getCesMultipleMetricDataV1({
        filter: "average",
        from: 1257892000000,
        metrics: [{
            dimensions: [{
                name: "instance_id",
                value: "72d1377e-09e4-47bd-8ea4-71a815d4815d",
            }],
            metricName: "cpu_util",
            namespace: "TEST.TF_ACC",
        }],
        period: "1",
        to: 1257895000000,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    metric_data1 = opentelekomcloud.get_ces_multiple_metric_data_v1(filter="average",
        from_=1257892000000,
        metrics=[{
            "dimensions": [{
                "name": "instance_id",
                "value": "72d1377e-09e4-47bd-8ea4-71a815d4815d",
            }],
            "metric_name": "cpu_util",
            "namespace": "TEST.TF_ACC",
        }],
        period="1",
        to=1257895000000)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.GetCesMultipleMetricDataV1(ctx, &opentelekomcloud.GetCesMultipleMetricDataV1Args{
    			Filter: "average",
    			From:   1257892000000,
    			Metrics: []opentelekomcloud.GetCesMultipleMetricDataV1Metric{
    				{
    					Dimensions: []opentelekomcloud.GetCesMultipleMetricDataV1MetricDimension{
    						{
    							Name:  "instance_id",
    							Value: "72d1377e-09e4-47bd-8ea4-71a815d4815d",
    						},
    					},
    					MetricName: "cpu_util",
    					Namespace:  "TEST.TF_ACC",
    				},
    			},
    			Period: "1",
    			To:     1257895000000,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var metricData1 = Opentelekomcloud.GetCesMultipleMetricDataV1.Invoke(new()
        {
            Filter = "average",
            From = 1257892000000,
            Metrics = new[]
            {
                new Opentelekomcloud.Inputs.GetCesMultipleMetricDataV1MetricInputArgs
                {
                    Dimensions = new[]
                    {
                        new Opentelekomcloud.Inputs.GetCesMultipleMetricDataV1MetricDimensionInputArgs
                        {
                            Name = "instance_id",
                            Value = "72d1377e-09e4-47bd-8ea4-71a815d4815d",
                        },
                    },
                    MetricName = "cpu_util",
                    Namespace = "TEST.TF_ACC",
                },
            },
            Period = "1",
            To = 1257895000000,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.OpentelekomcloudFunctions;
    import com.pulumi.opentelekomcloud.inputs.GetCesMultipleMetricDataV1Args;
    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 metricData1 = OpentelekomcloudFunctions.getCesMultipleMetricDataV1(GetCesMultipleMetricDataV1Args.builder()
                .filter("average")
                .from(1257892000000)
                .metrics(GetCesMultipleMetricDataV1MetricArgs.builder()
                    .dimensions(GetCesMultipleMetricDataV1MetricDimensionArgs.builder()
                        .name("instance_id")
                        .value("72d1377e-09e4-47bd-8ea4-71a815d4815d")
                        .build())
                    .metricName("cpu_util")
                    .namespace("TEST.TF_ACC")
                    .build())
                .period("1")
                .to(1257895000000)
                .build());
    
        }
    }
    
    variables:
      metricData1:
        fn::invoke:
          function: opentelekomcloud:getCesMultipleMetricDataV1
          arguments:
            filter: average
            from: 1.257892e+12
            metrics:
              - dimensions:
                  - name: instance_id
                    value: 72d1377e-09e4-47bd-8ea4-71a815d4815d
                metricName: cpu_util
                namespace: TEST.TF_ACC
            period: '1'
            to: 1.257895e+12
    

    Using getCesMultipleMetricDataV1

    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 getCesMultipleMetricDataV1(args: GetCesMultipleMetricDataV1Args, opts?: InvokeOptions): Promise<GetCesMultipleMetricDataV1Result>
    function getCesMultipleMetricDataV1Output(args: GetCesMultipleMetricDataV1OutputArgs, opts?: InvokeOptions): Output<GetCesMultipleMetricDataV1Result>
    def get_ces_multiple_metric_data_v1(filter: Optional[str] = None,
                                        from_: Optional[float] = None,
                                        id: Optional[str] = None,
                                        metrics: Optional[Sequence[GetCesMultipleMetricDataV1Metric]] = None,
                                        period: Optional[str] = None,
                                        to: Optional[float] = None,
                                        opts: Optional[InvokeOptions] = None) -> GetCesMultipleMetricDataV1Result
    def get_ces_multiple_metric_data_v1_output(filter: Optional[pulumi.Input[str]] = None,
                                        from_: Optional[pulumi.Input[float]] = None,
                                        id: Optional[pulumi.Input[str]] = None,
                                        metrics: Optional[pulumi.Input[Sequence[pulumi.Input[GetCesMultipleMetricDataV1MetricArgs]]]] = None,
                                        period: Optional[pulumi.Input[str]] = None,
                                        to: Optional[pulumi.Input[float]] = None,
                                        opts: Optional[InvokeOptions] = None) -> Output[GetCesMultipleMetricDataV1Result]
    func GetCesMultipleMetricDataV1(ctx *Context, args *GetCesMultipleMetricDataV1Args, opts ...InvokeOption) (*GetCesMultipleMetricDataV1Result, error)
    func GetCesMultipleMetricDataV1Output(ctx *Context, args *GetCesMultipleMetricDataV1OutputArgs, opts ...InvokeOption) GetCesMultipleMetricDataV1ResultOutput

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

    public static class GetCesMultipleMetricDataV1 
    {
        public static Task<GetCesMultipleMetricDataV1Result> InvokeAsync(GetCesMultipleMetricDataV1Args args, InvokeOptions? opts = null)
        public static Output<GetCesMultipleMetricDataV1Result> Invoke(GetCesMultipleMetricDataV1InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCesMultipleMetricDataV1Result> getCesMultipleMetricDataV1(GetCesMultipleMetricDataV1Args args, InvokeOptions options)
    public static Output<GetCesMultipleMetricDataV1Result> getCesMultipleMetricDataV1(GetCesMultipleMetricDataV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getCesMultipleMetricDataV1:getCesMultipleMetricDataV1
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Filter string
    Specifies the data rollup method. Possible values are:
    From double
    Specifies the start time of the query. The time is a UNIX timestamp and the unit is ms. Rollup aggregates the raw data generated within a period to the start time of the period. If from and to are within a period, the query result will be empty due to the rollup failure. Set from to at least one period earlier than the current time. Take the 5-minute period as an example. If it is 10:35 now, the raw data generated between 10:30 and 10:35 will be aggregated to 10:30. In this example, if period is 5 minutes, from should be 10:30.
    Metrics List<GetCesMultipleMetricDataV1Metric>
    Specifies the metric data. The maximum length of the array is 10. The structure is documented below.
    Period string
    Specifies how often Cloud Eye aggregates data. Possible values are:
    To double
    Specifies the end time of the query. The time is a UNIX timestamp and the unit is ms. from must be earlier than to.
    Id string
    Filter string
    Specifies the data rollup method. Possible values are:
    From float64
    Specifies the start time of the query. The time is a UNIX timestamp and the unit is ms. Rollup aggregates the raw data generated within a period to the start time of the period. If from and to are within a period, the query result will be empty due to the rollup failure. Set from to at least one period earlier than the current time. Take the 5-minute period as an example. If it is 10:35 now, the raw data generated between 10:30 and 10:35 will be aggregated to 10:30. In this example, if period is 5 minutes, from should be 10:30.
    Metrics []GetCesMultipleMetricDataV1Metric
    Specifies the metric data. The maximum length of the array is 10. The structure is documented below.
    Period string
    Specifies how often Cloud Eye aggregates data. Possible values are:
    To float64
    Specifies the end time of the query. The time is a UNIX timestamp and the unit is ms. from must be earlier than to.
    Id string
    filter String
    Specifies the data rollup method. Possible values are:
    from Double
    Specifies the start time of the query. The time is a UNIX timestamp and the unit is ms. Rollup aggregates the raw data generated within a period to the start time of the period. If from and to are within a period, the query result will be empty due to the rollup failure. Set from to at least one period earlier than the current time. Take the 5-minute period as an example. If it is 10:35 now, the raw data generated between 10:30 and 10:35 will be aggregated to 10:30. In this example, if period is 5 minutes, from should be 10:30.
    metrics List<GetCesMultipleMetricDataV1Metric>
    Specifies the metric data. The maximum length of the array is 10. The structure is documented below.
    period String
    Specifies how often Cloud Eye aggregates data. Possible values are:
    to Double
    Specifies the end time of the query. The time is a UNIX timestamp and the unit is ms. from must be earlier than to.
    id String
    filter string
    Specifies the data rollup method. Possible values are:
    from number
    Specifies the start time of the query. The time is a UNIX timestamp and the unit is ms. Rollup aggregates the raw data generated within a period to the start time of the period. If from and to are within a period, the query result will be empty due to the rollup failure. Set from to at least one period earlier than the current time. Take the 5-minute period as an example. If it is 10:35 now, the raw data generated between 10:30 and 10:35 will be aggregated to 10:30. In this example, if period is 5 minutes, from should be 10:30.
    metrics GetCesMultipleMetricDataV1Metric[]
    Specifies the metric data. The maximum length of the array is 10. The structure is documented below.
    period string
    Specifies how often Cloud Eye aggregates data. Possible values are:
    to number
    Specifies the end time of the query. The time is a UNIX timestamp and the unit is ms. from must be earlier than to.
    id string
    filter str
    Specifies the data rollup method. Possible values are:
    from_ float
    Specifies the start time of the query. The time is a UNIX timestamp and the unit is ms. Rollup aggregates the raw data generated within a period to the start time of the period. If from and to are within a period, the query result will be empty due to the rollup failure. Set from to at least one period earlier than the current time. Take the 5-minute period as an example. If it is 10:35 now, the raw data generated between 10:30 and 10:35 will be aggregated to 10:30. In this example, if period is 5 minutes, from should be 10:30.
    metrics Sequence[GetCesMultipleMetricDataV1Metric]
    Specifies the metric data. The maximum length of the array is 10. The structure is documented below.
    period str
    Specifies how often Cloud Eye aggregates data. Possible values are:
    to float
    Specifies the end time of the query. The time is a UNIX timestamp and the unit is ms. from must be earlier than to.
    id str
    filter String
    Specifies the data rollup method. Possible values are:
    from Number
    Specifies the start time of the query. The time is a UNIX timestamp and the unit is ms. Rollup aggregates the raw data generated within a period to the start time of the period. If from and to are within a period, the query result will be empty due to the rollup failure. Set from to at least one period earlier than the current time. Take the 5-minute period as an example. If it is 10:35 now, the raw data generated between 10:30 and 10:35 will be aggregated to 10:30. In this example, if period is 5 minutes, from should be 10:30.
    metrics List<Property Map>
    Specifies the metric data. The maximum length of the array is 10. The structure is documented below.
    period String
    Specifies how often Cloud Eye aggregates data. Possible values are:
    to Number
    Specifies the end time of the query. The time is a UNIX timestamp and the unit is ms. from must be earlier than to.
    id String

    getCesMultipleMetricDataV1 Result

    The following output properties are available:

    Filter string
    From double
    Id string
    Metrics List<GetCesMultipleMetricDataV1Metric>
    Specifies the metric data. The structure is documented below.
    Period string
    To double
    Filter string
    From float64
    Id string
    Metrics []GetCesMultipleMetricDataV1Metric
    Specifies the metric data. The structure is documented below.
    Period string
    To float64
    filter String
    from Double
    id String
    metrics List<GetCesMultipleMetricDataV1Metric>
    Specifies the metric data. The structure is documented below.
    period String
    to Double
    filter string
    from number
    id string
    metrics GetCesMultipleMetricDataV1Metric[]
    Specifies the metric data. The structure is documented below.
    period string
    to number
    filter str
    from_ float
    id str
    metrics Sequence[GetCesMultipleMetricDataV1Metric]
    Specifies the metric data. The structure is documented below.
    period str
    to float
    filter String
    from Number
    id String
    metrics List<Property Map>
    Specifies the metric data. The structure is documented below.
    period String
    to Number

    Supporting Types

    GetCesMultipleMetricDataV1Metric

    Datapoints List<GetCesMultipleMetricDataV1MetricDatapoint>
    Specifies the metric data list. Since Cloud Eye rounds up from based on the level of granularity for data query, datapoints may contain more data points than expected. The structure is described below.
    Dimensions List<GetCesMultipleMetricDataV1MetricDimension>
    Specifies the list of metric dimensions. Maximum number of supported dimensions is 4. The structure is described below.
    MetricName string
    Specifies the metric name.
    Namespace string
    Specifies the namespace of a service.
    Unit string
    Specifies the metric unit.
    Datapoints []GetCesMultipleMetricDataV1MetricDatapoint
    Specifies the metric data list. Since Cloud Eye rounds up from based on the level of granularity for data query, datapoints may contain more data points than expected. The structure is described below.
    Dimensions []GetCesMultipleMetricDataV1MetricDimension
    Specifies the list of metric dimensions. Maximum number of supported dimensions is 4. The structure is described below.
    MetricName string
    Specifies the metric name.
    Namespace string
    Specifies the namespace of a service.
    Unit string
    Specifies the metric unit.
    datapoints List<GetCesMultipleMetricDataV1MetricDatapoint>
    Specifies the metric data list. Since Cloud Eye rounds up from based on the level of granularity for data query, datapoints may contain more data points than expected. The structure is described below.
    dimensions List<GetCesMultipleMetricDataV1MetricDimension>
    Specifies the list of metric dimensions. Maximum number of supported dimensions is 4. The structure is described below.
    metricName String
    Specifies the metric name.
    namespace String
    Specifies the namespace of a service.
    unit String
    Specifies the metric unit.
    datapoints GetCesMultipleMetricDataV1MetricDatapoint[]
    Specifies the metric data list. Since Cloud Eye rounds up from based on the level of granularity for data query, datapoints may contain more data points than expected. The structure is described below.
    dimensions GetCesMultipleMetricDataV1MetricDimension[]
    Specifies the list of metric dimensions. Maximum number of supported dimensions is 4. The structure is described below.
    metricName string
    Specifies the metric name.
    namespace string
    Specifies the namespace of a service.
    unit string
    Specifies the metric unit.
    datapoints Sequence[GetCesMultipleMetricDataV1MetricDatapoint]
    Specifies the metric data list. Since Cloud Eye rounds up from based on the level of granularity for data query, datapoints may contain more data points than expected. The structure is described below.
    dimensions Sequence[GetCesMultipleMetricDataV1MetricDimension]
    Specifies the list of metric dimensions. Maximum number of supported dimensions is 4. The structure is described below.
    metric_name str
    Specifies the metric name.
    namespace str
    Specifies the namespace of a service.
    unit str
    Specifies the metric unit.
    datapoints List<Property Map>
    Specifies the metric data list. Since Cloud Eye rounds up from based on the level of granularity for data query, datapoints may contain more data points than expected. The structure is described below.
    dimensions List<Property Map>
    Specifies the list of metric dimensions. Maximum number of supported dimensions is 4. The structure is described below.
    metricName String
    Specifies the metric name.
    namespace String
    Specifies the namespace of a service.
    unit String
    Specifies the metric unit.

    GetCesMultipleMetricDataV1MetricDatapoint

    Average double
    Specifies the average value of metric data within a rollup period.
    Max double
    Specifies the maximum value of metric data within a rollup period.
    Min double
    Specifies the minimum value of metric data within a rollup period.
    Sum double
    Specifies the sum of metric data within a rollup period.
    Timestamp double
    Specifies when the metric is collected. It is a UNIX timestamp in milliseconds.
    Variance double
    Specifies the variance of metric data within a rollup period.
    Average float64
    Specifies the average value of metric data within a rollup period.
    Max float64
    Specifies the maximum value of metric data within a rollup period.
    Min float64
    Specifies the minimum value of metric data within a rollup period.
    Sum float64
    Specifies the sum of metric data within a rollup period.
    Timestamp float64
    Specifies when the metric is collected. It is a UNIX timestamp in milliseconds.
    Variance float64
    Specifies the variance of metric data within a rollup period.
    average Double
    Specifies the average value of metric data within a rollup period.
    max Double
    Specifies the maximum value of metric data within a rollup period.
    min Double
    Specifies the minimum value of metric data within a rollup period.
    sum Double
    Specifies the sum of metric data within a rollup period.
    timestamp Double
    Specifies when the metric is collected. It is a UNIX timestamp in milliseconds.
    variance Double
    Specifies the variance of metric data within a rollup period.
    average number
    Specifies the average value of metric data within a rollup period.
    max number
    Specifies the maximum value of metric data within a rollup period.
    min number
    Specifies the minimum value of metric data within a rollup period.
    sum number
    Specifies the sum of metric data within a rollup period.
    timestamp number
    Specifies when the metric is collected. It is a UNIX timestamp in milliseconds.
    variance number
    Specifies the variance of metric data within a rollup period.
    average float
    Specifies the average value of metric data within a rollup period.
    max float
    Specifies the maximum value of metric data within a rollup period.
    min float
    Specifies the minimum value of metric data within a rollup period.
    sum float
    Specifies the sum of metric data within a rollup period.
    timestamp float
    Specifies when the metric is collected. It is a UNIX timestamp in milliseconds.
    variance float
    Specifies the variance of metric data within a rollup period.
    average Number
    Specifies the average value of metric data within a rollup period.
    max Number
    Specifies the maximum value of metric data within a rollup period.
    min Number
    Specifies the minimum value of metric data within a rollup period.
    sum Number
    Specifies the sum of metric data within a rollup period.
    timestamp Number
    Specifies when the metric is collected. It is a UNIX timestamp in milliseconds.
    variance Number
    Specifies the variance of metric data within a rollup period.

    GetCesMultipleMetricDataV1MetricDimension

    Name string
    Specifies the dimension name.
    Value string
    Specifies the dimension value.
    Name string
    Specifies the dimension name.
    Value string
    Specifies the dimension value.
    name String
    Specifies the dimension name.
    value String
    Specifies the dimension value.
    name string
    Specifies the dimension name.
    value string
    Specifies the dimension value.
    name str
    Specifies the dimension name.
    value str
    Specifies the dimension value.
    name String
    Specifies the dimension name.
    value String
    Specifies the dimension value.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.44 published on Thursday, Jul 31, 2025 by opentelekomcloud