1. Packages
  2. Wavefront Provider
  3. API Docs
  4. getEvents
Wavefront v3.1.8 published on Tuesday, Mar 4, 2025 by Pulumi

wavefront.getEvents

Explore with Pulumi AI

Wavefront v3.1.8 published on Tuesday, Mar 4, 2025 by Pulumi

Use this data source to get information about all Wavefront events.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as wavefront from "@pulumi/wavefront";

// Get the information about all events
const example = wavefront.getEvents({
    limit: 10,
    offset: 0,
    latestStartTimeEpochMillis: 1665427195,
    earliestStartTimeEpochMillis: 1665427195,
});
Copy
import pulumi
import pulumi_wavefront as wavefront

# Get the information about all events
example = wavefront.get_events(limit=10,
    offset=0,
    latest_start_time_epoch_millis=1665427195,
    earliest_start_time_epoch_millis=1665427195)
Copy
package main

import (
	"github.com/pulumi/pulumi-wavefront/sdk/v3/go/wavefront"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Get the information about all events
		_, err := wavefront.GetEvents(ctx, &wavefront.GetEventsArgs{
			Limit:                        pulumi.IntRef(10),
			Offset:                       pulumi.IntRef(0),
			LatestStartTimeEpochMillis:   1665427195,
			EarliestStartTimeEpochMillis: 1665427195,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Wavefront = Pulumi.Wavefront;

return await Deployment.RunAsync(() => 
{
    // Get the information about all events
    var example = Wavefront.GetEvents.Invoke(new()
    {
        Limit = 10,
        Offset = 0,
        LatestStartTimeEpochMillis = 1665427195,
        EarliestStartTimeEpochMillis = 1665427195,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.wavefront.WavefrontFunctions;
import com.pulumi.wavefront.inputs.GetEventsArgs;
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) {
        // Get the information about all events
        final var example = WavefrontFunctions.getEvents(GetEventsArgs.builder()
            .limit(10)
            .offset(0)
            .latestStartTimeEpochMillis(1665427195)
            .earliestStartTimeEpochMillis(1665427195)
            .build());

    }
}
Copy
variables:
  # Get the information about all events
  example:
    fn::invoke:
      function: wavefront:getEvents
      arguments:
        limit: 10
        offset: 0
        latestStartTimeEpochMillis: 1.665427195e+09
        earliestStartTimeEpochMillis: 1.665427195e+09
Copy

Using getEvents

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 getEvents(args: GetEventsArgs, opts?: InvokeOptions): Promise<GetEventsResult>
function getEventsOutput(args: GetEventsOutputArgs, opts?: InvokeOptions): Output<GetEventsResult>
Copy
def get_events(earliest_start_time_epoch_millis: Optional[int] = None,
               latest_start_time_epoch_millis: Optional[int] = None,
               limit: Optional[int] = None,
               offset: Optional[int] = None,
               opts: Optional[InvokeOptions] = None) -> GetEventsResult
def get_events_output(earliest_start_time_epoch_millis: Optional[pulumi.Input[int]] = None,
               latest_start_time_epoch_millis: Optional[pulumi.Input[int]] = None,
               limit: Optional[pulumi.Input[int]] = None,
               offset: Optional[pulumi.Input[int]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetEventsResult]
Copy
func GetEvents(ctx *Context, args *GetEventsArgs, opts ...InvokeOption) (*GetEventsResult, error)
func GetEventsOutput(ctx *Context, args *GetEventsOutputArgs, opts ...InvokeOption) GetEventsResultOutput
Copy

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

public static class GetEvents 
{
    public static Task<GetEventsResult> InvokeAsync(GetEventsArgs args, InvokeOptions? opts = null)
    public static Output<GetEventsResult> Invoke(GetEventsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetEventsResult> getEvents(GetEventsArgs args, InvokeOptions options)
public static Output<GetEventsResult> getEvents(GetEventsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: wavefront:index/getEvents:getEvents
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

EarliestStartTimeEpochMillis This property is required. int
The earliest start time in epoch milliseconds.
LatestStartTimeEpochMillis This property is required. int
The latest start time in epoch milliseconds.
Limit int
Limit is the maximum number of results to be returned. Defaults to 100.
Offset int
Offset is the offset from the first result to be returned. Defaults to 0.
EarliestStartTimeEpochMillis This property is required. int
The earliest start time in epoch milliseconds.
LatestStartTimeEpochMillis This property is required. int
The latest start time in epoch milliseconds.
Limit int
Limit is the maximum number of results to be returned. Defaults to 100.
Offset int
Offset is the offset from the first result to be returned. Defaults to 0.
earliestStartTimeEpochMillis This property is required. Integer
The earliest start time in epoch milliseconds.
latestStartTimeEpochMillis This property is required. Integer
The latest start time in epoch milliseconds.
limit Integer
Limit is the maximum number of results to be returned. Defaults to 100.
offset Integer
Offset is the offset from the first result to be returned. Defaults to 0.
earliestStartTimeEpochMillis This property is required. number
The earliest start time in epoch milliseconds.
latestStartTimeEpochMillis This property is required. number
The latest start time in epoch milliseconds.
limit number
Limit is the maximum number of results to be returned. Defaults to 100.
offset number
Offset is the offset from the first result to be returned. Defaults to 0.
earliest_start_time_epoch_millis This property is required. int
The earliest start time in epoch milliseconds.
latest_start_time_epoch_millis This property is required. int
The latest start time in epoch milliseconds.
limit int
Limit is the maximum number of results to be returned. Defaults to 100.
offset int
Offset is the offset from the first result to be returned. Defaults to 0.
earliestStartTimeEpochMillis This property is required. Number
The earliest start time in epoch milliseconds.
latestStartTimeEpochMillis This property is required. Number
The latest start time in epoch milliseconds.
limit Number
Limit is the maximum number of results to be returned. Defaults to 100.
offset Number
Offset is the offset from the first result to be returned. Defaults to 0.

getEvents Result

The following output properties are available:

EarliestStartTimeEpochMillis int
Earliest start time in epoch milliseconds.
Events List<GetEventsEvent>
List of all events in Wavefront. For each event you will see a list of attributes.
Id string
The provider-assigned unique ID for this managed resource.
LatestStartTimeEpochMillis int
Latest start time in epoch milliseconds.
Limit int
Offset int
EarliestStartTimeEpochMillis int
Earliest start time in epoch milliseconds.
Events []GetEventsEvent
List of all events in Wavefront. For each event you will see a list of attributes.
Id string
The provider-assigned unique ID for this managed resource.
LatestStartTimeEpochMillis int
Latest start time in epoch milliseconds.
Limit int
Offset int
earliestStartTimeEpochMillis Integer
Earliest start time in epoch milliseconds.
events List<GetEventsEvent>
List of all events in Wavefront. For each event you will see a list of attributes.
id String
The provider-assigned unique ID for this managed resource.
latestStartTimeEpochMillis Integer
Latest start time in epoch milliseconds.
limit Integer
offset Integer
earliestStartTimeEpochMillis number
Earliest start time in epoch milliseconds.
events GetEventsEvent[]
List of all events in Wavefront. For each event you will see a list of attributes.
id string
The provider-assigned unique ID for this managed resource.
latestStartTimeEpochMillis number
Latest start time in epoch milliseconds.
limit number
offset number
earliest_start_time_epoch_millis int
Earliest start time in epoch milliseconds.
events Sequence[GetEventsEvent]
List of all events in Wavefront. For each event you will see a list of attributes.
id str
The provider-assigned unique ID for this managed resource.
latest_start_time_epoch_millis int
Latest start time in epoch milliseconds.
limit int
offset int
earliestStartTimeEpochMillis Number
Earliest start time in epoch milliseconds.
events List<Property Map>
List of all events in Wavefront. For each event you will see a list of attributes.
id String
The provider-assigned unique ID for this managed resource.
latestStartTimeEpochMillis Number
Latest start time in epoch milliseconds.
limit Number
offset Number

Supporting Types

GetEventsEvent

Annotations This property is required. Dictionary<string, string>
Annotations associated with the event.
Details This property is required. string
The description of the event.
EndtimeKey This property is required. int
Id This property is required. string
The ID of the event in Wavefront.
IsEphemeral This property is required. bool
A Boolean flag. If set to true, creates a point-in-time event (i.e. with no duration).
Name This property is required. string
The name of the event in Wavefront.
Severity This property is required. string
The severity category of the event.
StartTime This property is required. int
The start time of the event in epoch milliseconds.
Tags This property is required. List<string>
A set of tags assigned to the event.
Type This property is required. string
The type of the event.
Annotations This property is required. map[string]string
Annotations associated with the event.
Details This property is required. string
The description of the event.
EndtimeKey This property is required. int
Id This property is required. string
The ID of the event in Wavefront.
IsEphemeral This property is required. bool
A Boolean flag. If set to true, creates a point-in-time event (i.e. with no duration).
Name This property is required. string
The name of the event in Wavefront.
Severity This property is required. string
The severity category of the event.
StartTime This property is required. int
The start time of the event in epoch milliseconds.
Tags This property is required. []string
A set of tags assigned to the event.
Type This property is required. string
The type of the event.
annotations This property is required. Map<String,String>
Annotations associated with the event.
details This property is required. String
The description of the event.
endtimeKey This property is required. Integer
id This property is required. String
The ID of the event in Wavefront.
isEphemeral This property is required. Boolean
A Boolean flag. If set to true, creates a point-in-time event (i.e. with no duration).
name This property is required. String
The name of the event in Wavefront.
severity This property is required. String
The severity category of the event.
startTime This property is required. Integer
The start time of the event in epoch milliseconds.
tags This property is required. List<String>
A set of tags assigned to the event.
type This property is required. String
The type of the event.
annotations This property is required. {[key: string]: string}
Annotations associated with the event.
details This property is required. string
The description of the event.
endtimeKey This property is required. number
id This property is required. string
The ID of the event in Wavefront.
isEphemeral This property is required. boolean
A Boolean flag. If set to true, creates a point-in-time event (i.e. with no duration).
name This property is required. string
The name of the event in Wavefront.
severity This property is required. string
The severity category of the event.
startTime This property is required. number
The start time of the event in epoch milliseconds.
tags This property is required. string[]
A set of tags assigned to the event.
type This property is required. string
The type of the event.
annotations This property is required. Mapping[str, str]
Annotations associated with the event.
details This property is required. str
The description of the event.
endtime_key This property is required. int
id This property is required. str
The ID of the event in Wavefront.
is_ephemeral This property is required. bool
A Boolean flag. If set to true, creates a point-in-time event (i.e. with no duration).
name This property is required. str
The name of the event in Wavefront.
severity This property is required. str
The severity category of the event.
start_time This property is required. int
The start time of the event in epoch milliseconds.
tags This property is required. Sequence[str]
A set of tags assigned to the event.
type This property is required. str
The type of the event.
annotations This property is required. Map<String>
Annotations associated with the event.
details This property is required. String
The description of the event.
endtimeKey This property is required. Number
id This property is required. String
The ID of the event in Wavefront.
isEphemeral This property is required. Boolean
A Boolean flag. If set to true, creates a point-in-time event (i.e. with no duration).
name This property is required. String
The name of the event in Wavefront.
severity This property is required. String
The severity category of the event.
startTime This property is required. Number
The start time of the event in epoch milliseconds.
tags This property is required. List<String>
A set of tags assigned to the event.
type This property is required. String
The type of the event.

Package Details

Repository
Wavefront pulumi/pulumi-wavefront
License
Apache-2.0
Notes
This Pulumi package is based on the wavefront Terraform Provider.
Wavefront v3.1.8 published on Tuesday, Mar 4, 2025 by Pulumi