1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. getCesEventsV1
opentelekomcloud 1.36.42 published on Thursday, Jul 3, 2025 by opentelekomcloud

opentelekomcloud.getCesEventsV1

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.42 published on Thursday, Jul 3, 2025 by opentelekomcloud

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

    Get details about CES events within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const events1 = opentelekomcloud.getCesEventsV1({
        eventType: "EVENT.CUSTOM",
        from: 1257893000000,
        to: 1257895000000,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    events1 = opentelekomcloud.get_ces_events_v1(event_type="EVENT.CUSTOM",
        from_=1257893000000,
        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.GetCesEventsV1(ctx, &opentelekomcloud.GetCesEventsV1Args{
    			EventType: pulumi.StringRef("EVENT.CUSTOM"),
    			From:      pulumi.Float64Ref(1257893000000),
    			To:        pulumi.Float64Ref(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 events1 = Opentelekomcloud.GetCesEventsV1.Invoke(new()
        {
            EventType = "EVENT.CUSTOM",
            From = 1257893000000,
            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.GetCesEventsV1Args;
    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 events1 = OpentelekomcloudFunctions.getCesEventsV1(GetCesEventsV1Args.builder()
                .eventType("EVENT.CUSTOM")
                .from(1257893000000)
                .to(1257895000000)
                .build());
    
        }
    }
    
    variables:
      events1:
        fn::invoke:
          function: opentelekomcloud:getCesEventsV1
          arguments:
            eventType: EVENT.CUSTOM
            from: 1.257893e+12
            to: 1.257895e+12
    

    Using getCesEventsV1

    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 getCesEventsV1(args: GetCesEventsV1Args, opts?: InvokeOptions): Promise<GetCesEventsV1Result>
    function getCesEventsV1Output(args: GetCesEventsV1OutputArgs, opts?: InvokeOptions): Output<GetCesEventsV1Result>
    def get_ces_events_v1(event_name: Optional[str] = None,
                          event_type: Optional[str] = None,
                          from_: Optional[float] = None,
                          id: Optional[str] = None,
                          limit: Optional[float] = None,
                          to: Optional[float] = None,
                          opts: Optional[InvokeOptions] = None) -> GetCesEventsV1Result
    def get_ces_events_v1_output(event_name: Optional[pulumi.Input[str]] = None,
                          event_type: Optional[pulumi.Input[str]] = None,
                          from_: Optional[pulumi.Input[float]] = None,
                          id: Optional[pulumi.Input[str]] = None,
                          limit: Optional[pulumi.Input[float]] = None,
                          to: Optional[pulumi.Input[float]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetCesEventsV1Result]
    func GetCesEventsV1(ctx *Context, args *GetCesEventsV1Args, opts ...InvokeOption) (*GetCesEventsV1Result, error)
    func GetCesEventsV1Output(ctx *Context, args *GetCesEventsV1OutputArgs, opts ...InvokeOption) GetCesEventsV1ResultOutput

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

    public static class GetCesEventsV1 
    {
        public static Task<GetCesEventsV1Result> InvokeAsync(GetCesEventsV1Args args, InvokeOptions? opts = null)
        public static Output<GetCesEventsV1Result> Invoke(GetCesEventsV1InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCesEventsV1Result> getCesEventsV1(GetCesEventsV1Args args, InvokeOptions options)
    public static Output<GetCesEventsV1Result> getCesEventsV1(GetCesEventsV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: opentelekomcloud:index/getCesEventsV1:getCesEventsV1
      arguments:
        # arguments dictionary

    The following arguments are supported:

    EventName string
    Specifies the event name.
    EventType string
    Specifies the event type. The value can be EVENT.SYS (system event) or EVENT.CUSTOM (custom event).
    From double
    Specifies the start time of the query, which is a UNIX timestamp (ms).
    Id string
    Limit double
    Specifies the maximum number of records that can be queried at a time. Supported range: 1 to 100 (default)
    To double
    Specifies the end time of the query, which is a UNIX timestamp (ms).
    EventName string
    Specifies the event name.
    EventType string
    Specifies the event type. The value can be EVENT.SYS (system event) or EVENT.CUSTOM (custom event).
    From float64
    Specifies the start time of the query, which is a UNIX timestamp (ms).
    Id string
    Limit float64
    Specifies the maximum number of records that can be queried at a time. Supported range: 1 to 100 (default)
    To float64
    Specifies the end time of the query, which is a UNIX timestamp (ms).
    eventName String
    Specifies the event name.
    eventType String
    Specifies the event type. The value can be EVENT.SYS (system event) or EVENT.CUSTOM (custom event).
    from Double
    Specifies the start time of the query, which is a UNIX timestamp (ms).
    id String
    limit Double
    Specifies the maximum number of records that can be queried at a time. Supported range: 1 to 100 (default)
    to Double
    Specifies the end time of the query, which is a UNIX timestamp (ms).
    eventName string
    Specifies the event name.
    eventType string
    Specifies the event type. The value can be EVENT.SYS (system event) or EVENT.CUSTOM (custom event).
    from number
    Specifies the start time of the query, which is a UNIX timestamp (ms).
    id string
    limit number
    Specifies the maximum number of records that can be queried at a time. Supported range: 1 to 100 (default)
    to number
    Specifies the end time of the query, which is a UNIX timestamp (ms).
    event_name str
    Specifies the event name.
    event_type str
    Specifies the event type. The value can be EVENT.SYS (system event) or EVENT.CUSTOM (custom event).
    from_ float
    Specifies the start time of the query, which is a UNIX timestamp (ms).
    id str
    limit float
    Specifies the maximum number of records that can be queried at a time. Supported range: 1 to 100 (default)
    to float
    Specifies the end time of the query, which is a UNIX timestamp (ms).
    eventName String
    Specifies the event name.
    eventType String
    Specifies the event type. The value can be EVENT.SYS (system event) or EVENT.CUSTOM (custom event).
    from Number
    Specifies the start time of the query, which is a UNIX timestamp (ms).
    id String
    limit Number
    Specifies the maximum number of records that can be queried at a time. Supported range: 1 to 100 (default)
    to Number
    Specifies the end time of the query, which is a UNIX timestamp (ms).

    getCesEventsV1 Result

    The following output properties are available:

    Events List<GetCesEventsV1Event>
    Specifies one or more pieces of event data. The structure is described below.
    Id string
    MetaDatas List<GetCesEventsV1MetaData>
    Specifies the number of metadata records in the query result. The structure is described below.
    EventName string
    Specifies the event name.
    EventType string
    Specifies the event type.
    From double
    Limit double
    To double
    Events []GetCesEventsV1Event
    Specifies one or more pieces of event data. The structure is described below.
    Id string
    MetaDatas []GetCesEventsV1MetaData
    Specifies the number of metadata records in the query result. The structure is described below.
    EventName string
    Specifies the event name.
    EventType string
    Specifies the event type.
    From float64
    Limit float64
    To float64
    events List<GetCesEventsV1Event>
    Specifies one or more pieces of event data. The structure is described below.
    id String
    metaDatas List<GetCesEventsV1MetaData>
    Specifies the number of metadata records in the query result. The structure is described below.
    eventName String
    Specifies the event name.
    eventType String
    Specifies the event type.
    from Double
    limit Double
    to Double
    events GetCesEventsV1Event[]
    Specifies one or more pieces of event data. The structure is described below.
    id string
    metaDatas GetCesEventsV1MetaData[]
    Specifies the number of metadata records in the query result. The structure is described below.
    eventName string
    Specifies the event name.
    eventType string
    Specifies the event type.
    from number
    limit number
    to number
    events Sequence[GetCesEventsV1Event]
    Specifies one or more pieces of event data. The structure is described below.
    id str
    meta_datas Sequence[GetCesEventsV1MetaData]
    Specifies the number of metadata records in the query result. The structure is described below.
    event_name str
    Specifies the event name.
    event_type str
    Specifies the event type.
    from_ float
    limit float
    to float
    events List<Property Map>
    Specifies one or more pieces of event data. The structure is described below.
    id String
    metaDatas List<Property Map>
    Specifies the number of metadata records in the query result. The structure is described below.
    eventName String
    Specifies the event name.
    eventType String
    Specifies the event type.
    from Number
    limit Number
    to Number

    Supporting Types

    GetCesEventsV1Event

    EventCount double
    Specifies the number of occurrences of this event within the specified query time range.
    EventName string
    Specifies the event name.
    EventType string
    Specifies the event type. The value can be EVENT.SYS (system event) or EVENT.CUSTOM (custom event).
    LatestEventSource string
    Specifies the event source. If the event is a system event, the source is the namespace of each service. If the event is a custom event, the event source is defined by the user.
    LatestOccurTime double
    Specifies when the event occurred, which is a UNIX timestamp (ms).
    EventCount float64
    Specifies the number of occurrences of this event within the specified query time range.
    EventName string
    Specifies the event name.
    EventType string
    Specifies the event type. The value can be EVENT.SYS (system event) or EVENT.CUSTOM (custom event).
    LatestEventSource string
    Specifies the event source. If the event is a system event, the source is the namespace of each service. If the event is a custom event, the event source is defined by the user.
    LatestOccurTime float64
    Specifies when the event occurred, which is a UNIX timestamp (ms).
    eventCount Double
    Specifies the number of occurrences of this event within the specified query time range.
    eventName String
    Specifies the event name.
    eventType String
    Specifies the event type. The value can be EVENT.SYS (system event) or EVENT.CUSTOM (custom event).
    latestEventSource String
    Specifies the event source. If the event is a system event, the source is the namespace of each service. If the event is a custom event, the event source is defined by the user.
    latestOccurTime Double
    Specifies when the event occurred, which is a UNIX timestamp (ms).
    eventCount number
    Specifies the number of occurrences of this event within the specified query time range.
    eventName string
    Specifies the event name.
    eventType string
    Specifies the event type. The value can be EVENT.SYS (system event) or EVENT.CUSTOM (custom event).
    latestEventSource string
    Specifies the event source. If the event is a system event, the source is the namespace of each service. If the event is a custom event, the event source is defined by the user.
    latestOccurTime number
    Specifies when the event occurred, which is a UNIX timestamp (ms).
    event_count float
    Specifies the number of occurrences of this event within the specified query time range.
    event_name str
    Specifies the event name.
    event_type str
    Specifies the event type. The value can be EVENT.SYS (system event) or EVENT.CUSTOM (custom event).
    latest_event_source str
    Specifies the event source. If the event is a system event, the source is the namespace of each service. If the event is a custom event, the event source is defined by the user.
    latest_occur_time float
    Specifies when the event occurred, which is a UNIX timestamp (ms).
    eventCount Number
    Specifies the number of occurrences of this event within the specified query time range.
    eventName String
    Specifies the event name.
    eventType String
    Specifies the event type. The value can be EVENT.SYS (system event) or EVENT.CUSTOM (custom event).
    latestEventSource String
    Specifies the event source. If the event is a system event, the source is the namespace of each service. If the event is a custom event, the event source is defined by the user.
    latestOccurTime Number
    Specifies when the event occurred, which is a UNIX timestamp (ms).

    GetCesEventsV1MetaData

    Total double
    Specifies the total number of events.
    Total float64
    Specifies the total number of events.
    total Double
    Specifies the total number of events.
    total number
    Specifies the total number of events.
    total float
    Specifies the total number of events.
    total Number
    Specifies the total number of events.

    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.42 published on Thursday, Jul 3, 2025 by opentelekomcloud