wavefront.Event
Explore with Pulumi AI
Provides a Wavefront event resource. This allows events to be created, updated, and deleted.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as wavefront from "@pulumi/wavefront";
const event = new wavefront.Event("event", {
name: "terraform-test",
annotations: {
severity: "info",
type: "event type",
details: "description",
},
tags: ["eventTag1"],
});
import pulumi
import pulumi_wavefront as wavefront
event = wavefront.Event("event",
name="terraform-test",
annotations={
"severity": "info",
"type": "event type",
"details": "description",
},
tags=["eventTag1"])
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 {
_, err := wavefront.NewEvent(ctx, "event", &wavefront.EventArgs{
Name: pulumi.String("terraform-test"),
Annotations: pulumi.StringMap{
"severity": pulumi.String("info"),
"type": pulumi.String("event type"),
"details": pulumi.String("description"),
},
Tags: pulumi.StringArray{
pulumi.String("eventTag1"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Wavefront = Pulumi.Wavefront;
return await Deployment.RunAsync(() =>
{
var @event = new Wavefront.Event("event", new()
{
Name = "terraform-test",
Annotations =
{
{ "severity", "info" },
{ "type", "event type" },
{ "details", "description" },
},
Tags = new[]
{
"eventTag1",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.wavefront.Event;
import com.pulumi.wavefront.EventArgs;
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) {
var event = new Event("event", EventArgs.builder()
.name("terraform-test")
.annotations(Map.ofEntries(
Map.entry("severity", "info"),
Map.entry("type", "event type"),
Map.entry("details", "description")
))
.tags("eventTag1")
.build());
}
}
resources:
event:
type: wavefront:Event
properties:
name: terraform-test
annotations:
severity: info
type: event type
details: description
tags:
- eventTag1
Create Event Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Event(name: string, args: EventArgs, opts?: CustomResourceOptions);
@overload
def Event(resource_name: str,
args: EventArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Event(resource_name: str,
opts: Optional[ResourceOptions] = None,
annotations: Optional[Mapping[str, str]] = None,
endtime_key: Optional[int] = None,
name: Optional[str] = None,
start_time: Optional[int] = None,
tags: Optional[Sequence[str]] = None)
func NewEvent(ctx *Context, name string, args EventArgs, opts ...ResourceOption) (*Event, error)
public Event(string name, EventArgs args, CustomResourceOptions? opts = null)
type: wavefront:Event
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args EventArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args EventArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args EventArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args EventArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args EventArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var eventResource = new Wavefront.Event("eventResource", new()
{
Annotations =
{
{ "string", "string" },
},
EndtimeKey = 0,
Name = "string",
StartTime = 0,
Tags = new[]
{
"string",
},
});
example, err := wavefront.NewEvent(ctx, "eventResource", &wavefront.EventArgs{
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
EndtimeKey: pulumi.Int(0),
Name: pulumi.String("string"),
StartTime: pulumi.Int(0),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var eventResource = new Event("eventResource", EventArgs.builder()
.annotations(Map.of("string", "string"))
.endtimeKey(0)
.name("string")
.startTime(0)
.tags("string")
.build());
event_resource = wavefront.Event("eventResource",
annotations={
"string": "string",
},
endtime_key=0,
name="string",
start_time=0,
tags=["string"])
const eventResource = new wavefront.Event("eventResource", {
annotations: {
string: "string",
},
endtimeKey: 0,
name: "string",
startTime: 0,
tags: ["string"],
});
type: wavefront:Event
properties:
annotations:
string: string
endtimeKey: 0
name: string
startTime: 0
tags:
- string
Event Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Event resource accepts the following input properties:
- Annotations Dictionary<string, string>
- The annotations associated with the event.
- Endtime
Key int - Name string
- The name of the event as it is displayed in Wavefront.
- Start
Time int - The start time of the event in epoch milliseconds.
- List<string>
- A set of tags to assign to this resource.
- Annotations map[string]string
- The annotations associated with the event.
- Endtime
Key int - Name string
- The name of the event as it is displayed in Wavefront.
- Start
Time int - The start time of the event in epoch milliseconds.
- []string
- A set of tags to assign to this resource.
- annotations Map<String,String>
- The annotations associated with the event.
- endtime
Key Integer - name String
- The name of the event as it is displayed in Wavefront.
- start
Time Integer - The start time of the event in epoch milliseconds.
- List<String>
- A set of tags to assign to this resource.
- annotations {[key: string]: string}
- The annotations associated with the event.
- endtime
Key number - name string
- The name of the event as it is displayed in Wavefront.
- start
Time number - The start time of the event in epoch milliseconds.
- string[]
- A set of tags to assign to this resource.
- annotations Mapping[str, str]
- The annotations associated with the event.
- endtime_
key int - name str
- The name of the event as it is displayed in Wavefront.
- start_
time int - The start time of the event in epoch milliseconds.
- Sequence[str]
- A set of tags to assign to this resource.
- annotations Map<String>
- The annotations associated with the event.
- endtime
Key Number - name String
- The name of the event as it is displayed in Wavefront.
- start
Time Number - The start time of the event in epoch milliseconds.
- List<String>
- A set of tags to assign to this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Event resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Event Resource
Get an existing Event resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: EventState, opts?: CustomResourceOptions): Event
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
annotations: Optional[Mapping[str, str]] = None,
endtime_key: Optional[int] = None,
name: Optional[str] = None,
start_time: Optional[int] = None,
tags: Optional[Sequence[str]] = None) -> Event
func GetEvent(ctx *Context, name string, id IDInput, state *EventState, opts ...ResourceOption) (*Event, error)
public static Event Get(string name, Input<string> id, EventState? state, CustomResourceOptions? opts = null)
public static Event get(String name, Output<String> id, EventState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Annotations Dictionary<string, string>
- The annotations associated with the event.
- Endtime
Key int - Name string
- The name of the event as it is displayed in Wavefront.
- Start
Time int - The start time of the event in epoch milliseconds.
- List<string>
- A set of tags to assign to this resource.
- Annotations map[string]string
- The annotations associated with the event.
- Endtime
Key int - Name string
- The name of the event as it is displayed in Wavefront.
- Start
Time int - The start time of the event in epoch milliseconds.
- []string
- A set of tags to assign to this resource.
- annotations Map<String,String>
- The annotations associated with the event.
- endtime
Key Integer - name String
- The name of the event as it is displayed in Wavefront.
- start
Time Integer - The start time of the event in epoch milliseconds.
- List<String>
- A set of tags to assign to this resource.
- annotations {[key: string]: string}
- The annotations associated with the event.
- endtime
Key number - name string
- The name of the event as it is displayed in Wavefront.
- start
Time number - The start time of the event in epoch milliseconds.
- string[]
- A set of tags to assign to this resource.
- annotations Mapping[str, str]
- The annotations associated with the event.
- endtime_
key int - name str
- The name of the event as it is displayed in Wavefront.
- start_
time int - The start time of the event in epoch milliseconds.
- Sequence[str]
- A set of tags to assign to this resource.
- annotations Map<String>
- The annotations associated with the event.
- endtime
Key Number - name String
- The name of the event as it is displayed in Wavefront.
- start
Time Number - The start time of the event in epoch milliseconds.
- List<String>
- A set of tags to assign to this resource.
Import
You can import events by using the id, for example:
$ pulumi import wavefront:index/event:Event event 1479868728473
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Wavefront pulumi/pulumi-wavefront
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
wavefront
Terraform Provider.