wavefront.Event
Explore with Pulumi AI
Provides a Wavefront event resource. This allows events to be created, updated, and deleted.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Wavefront = Pulumi.Wavefront;
return await Deployment.RunAsync(() =>
{
var @event = new Wavefront.Event("event", new()
{
Annotations =
{
{ "details", "description" },
{ "severity", "info" },
{ "type", "event type" },
},
Tags = new[]
{
"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{
Annotations: pulumi.StringMap{
"details": pulumi.String("description"),
"severity": pulumi.String("info"),
"type": pulumi.String("event type"),
},
Tags: pulumi.StringArray{
pulumi.String("eventTag1"),
},
})
if err != nil {
return err
}
return nil
})
}
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()
.annotations(Map.ofEntries(
Map.entry("details", "description"),
Map.entry("severity", "info"),
Map.entry("type", "event type")
))
.tags("eventTag1")
.build());
}
}
import pulumi
import pulumi_wavefront as wavefront
event = wavefront.Event("event",
annotations={
"details": "description",
"severity": "info",
"type": "event type",
},
tags=["eventTag1"])
import * as pulumi from "@pulumi/pulumi";
import * as wavefront from "@pulumi/wavefront";
const event = new wavefront.Event("event", {
annotations: {
details: "description",
severity: "info",
type: "event type",
},
tags: ["eventTag1"],
});
resources:
event:
type: wavefront:Event
properties:
annotations:
details: description
severity: info
type: event type
tags:
- eventTag1
Create Event Resource
new Event(name: string, args: EventArgs, opts?: CustomResourceOptions);
@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)
@overload
def Event(resource_name: str,
args: EventArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
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
Package Details
- Repository
- Wavefront pulumi/pulumi-wavefront
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
wavefront
Terraform Provider.