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

opentelekomcloud.getCesMetricDataV1

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 metric data v1 you can get at documentation portal

    Get details about CES metric data within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const metricData1 = opentelekomcloud.getCesMetricDataV1({
        dim0: "instance_id,72d1377e-09e4-47bd-8ea4-71a815d4815d",
        filter: "average",
        from: "1257892000000",
        metricName: "cpu_util",
        namespace: "TEST.TF_ACC",
        period: 1,
        to: "1257895000000",
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    metric_data1 = opentelekomcloud.get_ces_metric_data_v1(dim0="instance_id,72d1377e-09e4-47bd-8ea4-71a815d4815d",
        filter="average",
        from_="1257892000000",
        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.LookupCesMetricDataV1(ctx, &opentelekomcloud.LookupCesMetricDataV1Args{
    			Dim0:       "instance_id,72d1377e-09e4-47bd-8ea4-71a815d4815d",
    			Filter:     "average",
    			From:       "1257892000000",
    			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.GetCesMetricDataV1.Invoke(new()
        {
            Dim0 = "instance_id,72d1377e-09e4-47bd-8ea4-71a815d4815d",
            Filter = "average",
            From = "1257892000000",
            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.GetCesMetricDataV1Args;
    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.getCesMetricDataV1(GetCesMetricDataV1Args.builder()
                .dim0("instance_id,72d1377e-09e4-47bd-8ea4-71a815d4815d")
                .filter("average")
                .from("1257892000000")
                .metricName("cpu_util")
                .namespace("TEST.TF_ACC")
                .period(1)
                .to("1257895000000")
                .build());
    
        }
    }
    
    variables:
      metricData1:
        fn::invoke:
          function: opentelekomcloud:getCesMetricDataV1
          arguments:
            dim0: instance_id,72d1377e-09e4-47bd-8ea4-71a815d4815d
            filter: average
            from: '1257892000000'
            metricName: cpu_util
            namespace: TEST.TF_ACC
            period: 1
            to: '1257895000000'
    

    Using getCesMetricDataV1

    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 getCesMetricDataV1(args: GetCesMetricDataV1Args, opts?: InvokeOptions): Promise<GetCesMetricDataV1Result>
    function getCesMetricDataV1Output(args: GetCesMetricDataV1OutputArgs, opts?: InvokeOptions): Output<GetCesMetricDataV1Result>
    def get_ces_metric_data_v1(dim0: Optional[str] = None,
                               dim1: Optional[str] = None,
                               filter: Optional[str] = None,
                               from_: Optional[str] = None,
                               id: Optional[str] = None,
                               metric_name: Optional[str] = None,
                               namespace: Optional[str] = None,
                               period: Optional[float] = None,
                               to: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetCesMetricDataV1Result
    def get_ces_metric_data_v1_output(dim0: Optional[pulumi.Input[str]] = None,
                               dim1: Optional[pulumi.Input[str]] = None,
                               filter: Optional[pulumi.Input[str]] = None,
                               from_: Optional[pulumi.Input[str]] = None,
                               id: Optional[pulumi.Input[str]] = None,
                               metric_name: Optional[pulumi.Input[str]] = None,
                               namespace: Optional[pulumi.Input[str]] = None,
                               period: Optional[pulumi.Input[float]] = None,
                               to: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetCesMetricDataV1Result]
    func LookupCesMetricDataV1(ctx *Context, args *LookupCesMetricDataV1Args, opts ...InvokeOption) (*LookupCesMetricDataV1Result, error)
    func LookupCesMetricDataV1Output(ctx *Context, args *LookupCesMetricDataV1OutputArgs, opts ...InvokeOption) LookupCesMetricDataV1ResultOutput

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

    public static class GetCesMetricDataV1 
    {
        public static Task<GetCesMetricDataV1Result> InvokeAsync(GetCesMetricDataV1Args args, InvokeOptions? opts = null)
        public static Output<GetCesMetricDataV1Result> Invoke(GetCesMetricDataV1InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCesMetricDataV1Result> getCesMetricDataV1(GetCesMetricDataV1Args args, InvokeOptions options)
    public static Output<GetCesMetricDataV1Result> getCesMetricDataV1(GetCesMetricDataV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getCesMetricDataV1:getCesMetricDataV1
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Dim0 string
    Specifies the metric dimension. The format is key,value. key cannot exceed 32 characters and value cannot exceed 256 characters. For example: instance_id,72d1377e-09e4-47bd-8ea4-71a815d4815d
    Filter string
    Specifies the data rollup method. Possible values are:
    From string
    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.
    MetricName string
    Specifies the metric name.
    Namespace string
    Specifies the namespace of a service.
    Period double
    Specifies how often Cloud Eye aggregates data. Possible values are:
    To string
    Specifies the end time of the query. The time is a UNIX timestamp and the unit is ms. from must be earlier than to.
    Dim1 string
    Specifies the additional metric dimension. The format is same as dim0.
    Id string
    Dim0 string
    Specifies the metric dimension. The format is key,value. key cannot exceed 32 characters and value cannot exceed 256 characters. For example: instance_id,72d1377e-09e4-47bd-8ea4-71a815d4815d
    Filter string
    Specifies the data rollup method. Possible values are:
    From string
    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.
    MetricName string
    Specifies the metric name.
    Namespace string
    Specifies the namespace of a service.
    Period float64
    Specifies how often Cloud Eye aggregates data. Possible values are:
    To string
    Specifies the end time of the query. The time is a UNIX timestamp and the unit is ms. from must be earlier than to.
    Dim1 string
    Specifies the additional metric dimension. The format is same as dim0.
    Id string
    dim0 String
    Specifies the metric dimension. The format is key,value. key cannot exceed 32 characters and value cannot exceed 256 characters. For example: instance_id,72d1377e-09e4-47bd-8ea4-71a815d4815d
    filter String
    Specifies the data rollup method. Possible values are:
    from String
    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.
    metricName String
    Specifies the metric name.
    namespace String
    Specifies the namespace of a service.
    period Double
    Specifies how often Cloud Eye aggregates data. Possible values are:
    to String
    Specifies the end time of the query. The time is a UNIX timestamp and the unit is ms. from must be earlier than to.
    dim1 String
    Specifies the additional metric dimension. The format is same as dim0.
    id String
    dim0 string
    Specifies the metric dimension. The format is key,value. key cannot exceed 32 characters and value cannot exceed 256 characters. For example: instance_id,72d1377e-09e4-47bd-8ea4-71a815d4815d
    filter string
    Specifies the data rollup method. Possible values are:
    from string
    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.
    metricName string
    Specifies the metric name.
    namespace string
    Specifies the namespace of a service.
    period number
    Specifies how often Cloud Eye aggregates data. Possible values are:
    to string
    Specifies the end time of the query. The time is a UNIX timestamp and the unit is ms. from must be earlier than to.
    dim1 string
    Specifies the additional metric dimension. The format is same as dim0.
    id string
    dim0 str
    Specifies the metric dimension. The format is key,value. key cannot exceed 32 characters and value cannot exceed 256 characters. For example: instance_id,72d1377e-09e4-47bd-8ea4-71a815d4815d
    filter str
    Specifies the data rollup method. Possible values are:
    from_ str
    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.
    metric_name str
    Specifies the metric name.
    namespace str
    Specifies the namespace of a service.
    period float
    Specifies how often Cloud Eye aggregates data. Possible values are:
    to str
    Specifies the end time of the query. The time is a UNIX timestamp and the unit is ms. from must be earlier than to.
    dim1 str
    Specifies the additional metric dimension. The format is same as dim0.
    id str
    dim0 String
    Specifies the metric dimension. The format is key,value. key cannot exceed 32 characters and value cannot exceed 256 characters. For example: instance_id,72d1377e-09e4-47bd-8ea4-71a815d4815d
    filter String
    Specifies the data rollup method. Possible values are:
    from String
    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.
    metricName String
    Specifies the metric name.
    namespace String
    Specifies the namespace of a service.
    period Number
    Specifies how often Cloud Eye aggregates data. Possible values are:
    to String
    Specifies the end time of the query. The time is a UNIX timestamp and the unit is ms. from must be earlier than to.
    dim1 String
    Specifies the additional metric dimension. The format is same as dim0.
    id String

    getCesMetricDataV1 Result

    The following output properties are available:

    Datapoints List<GetCesMetricDataV1Datapoint>
    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.
    Dim0 string
    Filter string
    From string
    Id string
    MetricName string
    Namespace string
    Period double
    To string
    Dim1 string
    Datapoints []GetCesMetricDataV1Datapoint
    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.
    Dim0 string
    Filter string
    From string
    Id string
    MetricName string
    Namespace string
    Period float64
    To string
    Dim1 string
    datapoints List<GetCesMetricDataV1Datapoint>
    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.
    dim0 String
    filter String
    from String
    id String
    metricName String
    namespace String
    period Double
    to String
    dim1 String
    datapoints GetCesMetricDataV1Datapoint[]
    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.
    dim0 string
    filter string
    from string
    id string
    metricName string
    namespace string
    period number
    to string
    dim1 string
    datapoints Sequence[GetCesMetricDataV1Datapoint]
    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.
    dim0 str
    filter str
    from_ str
    id str
    metric_name str
    namespace str
    period float
    to str
    dim1 str
    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.
    dim0 String
    filter String
    from String
    id String
    metricName String
    namespace String
    period Number
    to String
    dim1 String

    Supporting Types

    GetCesMetricDataV1Datapoint

    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.
    Unit string
    Specifies the metric unit.
    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.
    Unit string
    Specifies the metric unit.
    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.
    unit String
    Specifies the metric unit.
    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.
    unit string
    Specifies the metric unit.
    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.
    unit str
    Specifies the metric unit.
    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.
    unit String
    Specifies the metric unit.
    variance Number
    Specifies the variance of metric data within a rollup period.

    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