Documentation
¶
Index ¶
- type Event
- type EventArgs
- type EventArray
- type EventArrayInput
- type EventArrayOutput
- type EventEvent
- type EventEventArgs
- type EventEventArray
- type EventEventArrayInput
- type EventEventArrayOutput
- func (EventEventArrayOutput) ElementType() reflect.Type
- func (o EventEventArrayOutput) Index(i pulumi.IntInput) EventEventOutput
- func (o EventEventArrayOutput) ToEventEventArrayOutput() EventEventArrayOutput
- func (o EventEventArrayOutput) ToEventEventArrayOutputWithContext(ctx context.Context) EventEventArrayOutput
- type EventEventAttribute
- type EventEventAttributeArgs
- type EventEventAttributeArray
- type EventEventAttributeArrayInput
- type EventEventAttributeArrayOutput
- func (EventEventAttributeArrayOutput) ElementType() reflect.Type
- func (o EventEventAttributeArrayOutput) Index(i pulumi.IntInput) EventEventAttributeOutput
- func (o EventEventAttributeArrayOutput) ToEventEventAttributeArrayOutput() EventEventAttributeArrayOutput
- func (o EventEventAttributeArrayOutput) ToEventEventAttributeArrayOutputWithContext(ctx context.Context) EventEventAttributeArrayOutput
- type EventEventAttributeInput
- type EventEventAttributeOutput
- func (EventEventAttributeOutput) ElementType() reflect.Type
- func (o EventEventAttributeOutput) Key() pulumi.StringOutput
- func (o EventEventAttributeOutput) ToEventEventAttributeOutput() EventEventAttributeOutput
- func (o EventEventAttributeOutput) ToEventEventAttributeOutputWithContext(ctx context.Context) EventEventAttributeOutput
- func (o EventEventAttributeOutput) Type() pulumi.StringPtrOutput
- func (o EventEventAttributeOutput) Value() pulumi.StringOutput
- type EventEventInput
- type EventEventOutput
- func (o EventEventOutput) Attributes() EventEventAttributeArrayOutput
- func (EventEventOutput) ElementType() reflect.Type
- func (o EventEventOutput) Timestamp() pulumi.IntPtrOutput
- func (o EventEventOutput) ToEventEventOutput() EventEventOutput
- func (o EventEventOutput) ToEventEventOutputWithContext(ctx context.Context) EventEventOutput
- func (o EventEventOutput) Type() pulumi.StringOutput
- type EventInput
- type EventMap
- type EventMapInput
- type EventMapOutput
- type EventOutput
- type EventState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { pulumi.CustomResourceState // An event to insert into Insights. Multiple event blocks can be defined. See Events below for details. Events EventEventArrayOutput `pulumi:"events"` }
Use this resource to create one or more Insights events.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-newrelic/sdk/v5/go/newrelic/insights" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := insights.NewEvent(ctx, "foo", &insights.EventArgs{ Events: insights.EventEventArray{ &insights.EventEventArgs{ Attributes: insights.EventEventAttributeArray{ &insights.EventEventAttributeArgs{ Key: pulumi.String("a_string_attribute"), Value: pulumi.String("a string"), }, &insights.EventEventAttributeArgs{ Key: pulumi.String("an_integer_attribute"), Type: pulumi.String("int"), Value: pulumi.String("42"), }, &insights.EventEventAttributeArgs{ Key: pulumi.String("a_float_attribute"), Type: pulumi.String("float"), Value: pulumi.String("101.1"), }, }, Timestamp: pulumi.Int(1232471100), Type: pulumi.String("MyEvent"), }, }, }) if err != nil { return err } return nil }) }
``` ## Events
The `event` mapping supports the following arguments:
- `type` - (Required) The event's name. Can be a combination of alphanumeric characters, underscores, and colons.
- `timestamp` - (Optional) Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds.
- `attribute` - (Required) An attribute to include in your event payload. Multiple attribute blocks can be defined for an event. See Attributes below for details.
### Attributes
The `attribute` mapping supports the following arguments:
- `key` - (Required) The name of the attribute.
- `value` - (Required) The value of the attribute.
- `type` - (Optional) Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are `string`, `int`, or `float`. Defaults to `string`.
func GetEvent ¶
func GetEvent(ctx *pulumi.Context, name string, id pulumi.IDInput, state *EventState, opts ...pulumi.ResourceOption) (*Event, error)
GetEvent gets an existing Event resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewEvent ¶
func NewEvent(ctx *pulumi.Context, name string, args *EventArgs, opts ...pulumi.ResourceOption) (*Event, error)
NewEvent registers a new resource with the given unique name, arguments, and options.
func (*Event) ElementType ¶
func (*Event) ToEventOutput ¶
func (i *Event) ToEventOutput() EventOutput
func (*Event) ToEventOutputWithContext ¶
func (i *Event) ToEventOutputWithContext(ctx context.Context) EventOutput
type EventArgs ¶
type EventArgs struct { // An event to insert into Insights. Multiple event blocks can be defined. See Events below for details. Events EventEventArrayInput }
The set of arguments for constructing a Event resource.
func (EventArgs) ElementType ¶
type EventArray ¶
type EventArray []EventInput
func (EventArray) ElementType ¶
func (EventArray) ElementType() reflect.Type
func (EventArray) ToEventArrayOutput ¶
func (i EventArray) ToEventArrayOutput() EventArrayOutput
func (EventArray) ToEventArrayOutputWithContext ¶
func (i EventArray) ToEventArrayOutputWithContext(ctx context.Context) EventArrayOutput
type EventArrayInput ¶
type EventArrayInput interface { pulumi.Input ToEventArrayOutput() EventArrayOutput ToEventArrayOutputWithContext(context.Context) EventArrayOutput }
EventArrayInput is an input type that accepts EventArray and EventArrayOutput values. You can construct a concrete instance of `EventArrayInput` via:
EventArray{ EventArgs{...} }
type EventArrayOutput ¶
type EventArrayOutput struct{ *pulumi.OutputState }
func (EventArrayOutput) ElementType ¶
func (EventArrayOutput) ElementType() reflect.Type
func (EventArrayOutput) Index ¶
func (o EventArrayOutput) Index(i pulumi.IntInput) EventOutput
func (EventArrayOutput) ToEventArrayOutput ¶
func (o EventArrayOutput) ToEventArrayOutput() EventArrayOutput
func (EventArrayOutput) ToEventArrayOutputWithContext ¶
func (o EventArrayOutput) ToEventArrayOutputWithContext(ctx context.Context) EventArrayOutput
type EventEvent ¶
type EventEvent struct { // An attribute to include in your event payload. Multiple attribute blocks can be defined for an event. Attributes []EventEventAttribute `pulumi:"attributes"` // Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds. Timestamp *int `pulumi:"timestamp"` // The event's name. Can be a combination of alphanumeric characters, underscores, and colons. Type string `pulumi:"type"` }
type EventEventArgs ¶
type EventEventArgs struct { // An attribute to include in your event payload. Multiple attribute blocks can be defined for an event. Attributes EventEventAttributeArrayInput `pulumi:"attributes"` // Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds. Timestamp pulumi.IntPtrInput `pulumi:"timestamp"` // The event's name. Can be a combination of alphanumeric characters, underscores, and colons. Type pulumi.StringInput `pulumi:"type"` }
func (EventEventArgs) ElementType ¶
func (EventEventArgs) ElementType() reflect.Type
func (EventEventArgs) ToEventEventOutput ¶
func (i EventEventArgs) ToEventEventOutput() EventEventOutput
func (EventEventArgs) ToEventEventOutputWithContext ¶
func (i EventEventArgs) ToEventEventOutputWithContext(ctx context.Context) EventEventOutput
type EventEventArray ¶
type EventEventArray []EventEventInput
func (EventEventArray) ElementType ¶
func (EventEventArray) ElementType() reflect.Type
func (EventEventArray) ToEventEventArrayOutput ¶
func (i EventEventArray) ToEventEventArrayOutput() EventEventArrayOutput
func (EventEventArray) ToEventEventArrayOutputWithContext ¶
func (i EventEventArray) ToEventEventArrayOutputWithContext(ctx context.Context) EventEventArrayOutput
type EventEventArrayInput ¶
type EventEventArrayInput interface { pulumi.Input ToEventEventArrayOutput() EventEventArrayOutput ToEventEventArrayOutputWithContext(context.Context) EventEventArrayOutput }
EventEventArrayInput is an input type that accepts EventEventArray and EventEventArrayOutput values. You can construct a concrete instance of `EventEventArrayInput` via:
EventEventArray{ EventEventArgs{...} }
type EventEventArrayOutput ¶
type EventEventArrayOutput struct{ *pulumi.OutputState }
func (EventEventArrayOutput) ElementType ¶
func (EventEventArrayOutput) ElementType() reflect.Type
func (EventEventArrayOutput) Index ¶
func (o EventEventArrayOutput) Index(i pulumi.IntInput) EventEventOutput
func (EventEventArrayOutput) ToEventEventArrayOutput ¶
func (o EventEventArrayOutput) ToEventEventArrayOutput() EventEventArrayOutput
func (EventEventArrayOutput) ToEventEventArrayOutputWithContext ¶
func (o EventEventArrayOutput) ToEventEventArrayOutputWithContext(ctx context.Context) EventEventArrayOutput
type EventEventAttribute ¶
type EventEventAttribute struct { // The name of the attribute. Key string `pulumi:"key"` // Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are string, int, or float. Defaults to string. Type *string `pulumi:"type"` // The value of the attribute. Value string `pulumi:"value"` }
type EventEventAttributeArgs ¶
type EventEventAttributeArgs struct { // The name of the attribute. Key pulumi.StringInput `pulumi:"key"` // Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are string, int, or float. Defaults to string. Type pulumi.StringPtrInput `pulumi:"type"` // The value of the attribute. Value pulumi.StringInput `pulumi:"value"` }
func (EventEventAttributeArgs) ElementType ¶
func (EventEventAttributeArgs) ElementType() reflect.Type
func (EventEventAttributeArgs) ToEventEventAttributeOutput ¶
func (i EventEventAttributeArgs) ToEventEventAttributeOutput() EventEventAttributeOutput
func (EventEventAttributeArgs) ToEventEventAttributeOutputWithContext ¶
func (i EventEventAttributeArgs) ToEventEventAttributeOutputWithContext(ctx context.Context) EventEventAttributeOutput
type EventEventAttributeArray ¶
type EventEventAttributeArray []EventEventAttributeInput
func (EventEventAttributeArray) ElementType ¶
func (EventEventAttributeArray) ElementType() reflect.Type
func (EventEventAttributeArray) ToEventEventAttributeArrayOutput ¶
func (i EventEventAttributeArray) ToEventEventAttributeArrayOutput() EventEventAttributeArrayOutput
func (EventEventAttributeArray) ToEventEventAttributeArrayOutputWithContext ¶
func (i EventEventAttributeArray) ToEventEventAttributeArrayOutputWithContext(ctx context.Context) EventEventAttributeArrayOutput
type EventEventAttributeArrayInput ¶
type EventEventAttributeArrayInput interface { pulumi.Input ToEventEventAttributeArrayOutput() EventEventAttributeArrayOutput ToEventEventAttributeArrayOutputWithContext(context.Context) EventEventAttributeArrayOutput }
EventEventAttributeArrayInput is an input type that accepts EventEventAttributeArray and EventEventAttributeArrayOutput values. You can construct a concrete instance of `EventEventAttributeArrayInput` via:
EventEventAttributeArray{ EventEventAttributeArgs{...} }
type EventEventAttributeArrayOutput ¶
type EventEventAttributeArrayOutput struct{ *pulumi.OutputState }
func (EventEventAttributeArrayOutput) ElementType ¶
func (EventEventAttributeArrayOutput) ElementType() reflect.Type
func (EventEventAttributeArrayOutput) Index ¶
func (o EventEventAttributeArrayOutput) Index(i pulumi.IntInput) EventEventAttributeOutput
func (EventEventAttributeArrayOutput) ToEventEventAttributeArrayOutput ¶
func (o EventEventAttributeArrayOutput) ToEventEventAttributeArrayOutput() EventEventAttributeArrayOutput
func (EventEventAttributeArrayOutput) ToEventEventAttributeArrayOutputWithContext ¶
func (o EventEventAttributeArrayOutput) ToEventEventAttributeArrayOutputWithContext(ctx context.Context) EventEventAttributeArrayOutput
type EventEventAttributeInput ¶
type EventEventAttributeInput interface { pulumi.Input ToEventEventAttributeOutput() EventEventAttributeOutput ToEventEventAttributeOutputWithContext(context.Context) EventEventAttributeOutput }
EventEventAttributeInput is an input type that accepts EventEventAttributeArgs and EventEventAttributeOutput values. You can construct a concrete instance of `EventEventAttributeInput` via:
EventEventAttributeArgs{...}
type EventEventAttributeOutput ¶
type EventEventAttributeOutput struct{ *pulumi.OutputState }
func (EventEventAttributeOutput) ElementType ¶
func (EventEventAttributeOutput) ElementType() reflect.Type
func (EventEventAttributeOutput) Key ¶
func (o EventEventAttributeOutput) Key() pulumi.StringOutput
The name of the attribute.
func (EventEventAttributeOutput) ToEventEventAttributeOutput ¶
func (o EventEventAttributeOutput) ToEventEventAttributeOutput() EventEventAttributeOutput
func (EventEventAttributeOutput) ToEventEventAttributeOutputWithContext ¶
func (o EventEventAttributeOutput) ToEventEventAttributeOutputWithContext(ctx context.Context) EventEventAttributeOutput
func (EventEventAttributeOutput) Type ¶
func (o EventEventAttributeOutput) Type() pulumi.StringPtrOutput
Specify the type for the attribute value. This is useful when passing integer or float values to Insights. Allowed values are string, int, or float. Defaults to string.
func (EventEventAttributeOutput) Value ¶
func (o EventEventAttributeOutput) Value() pulumi.StringOutput
The value of the attribute.
type EventEventInput ¶
type EventEventInput interface { pulumi.Input ToEventEventOutput() EventEventOutput ToEventEventOutputWithContext(context.Context) EventEventOutput }
EventEventInput is an input type that accepts EventEventArgs and EventEventOutput values. You can construct a concrete instance of `EventEventInput` via:
EventEventArgs{...}
type EventEventOutput ¶
type EventEventOutput struct{ *pulumi.OutputState }
func (EventEventOutput) Attributes ¶
func (o EventEventOutput) Attributes() EventEventAttributeArrayOutput
An attribute to include in your event payload. Multiple attribute blocks can be defined for an event.
func (EventEventOutput) ElementType ¶
func (EventEventOutput) ElementType() reflect.Type
func (EventEventOutput) Timestamp ¶
func (o EventEventOutput) Timestamp() pulumi.IntPtrOutput
Must be a Unix epoch timestamp. You can define timestamps either in seconds or in milliseconds.
func (EventEventOutput) ToEventEventOutput ¶
func (o EventEventOutput) ToEventEventOutput() EventEventOutput
func (EventEventOutput) ToEventEventOutputWithContext ¶
func (o EventEventOutput) ToEventEventOutputWithContext(ctx context.Context) EventEventOutput
func (EventEventOutput) Type ¶
func (o EventEventOutput) Type() pulumi.StringOutput
The event's name. Can be a combination of alphanumeric characters, underscores, and colons.
type EventInput ¶
type EventInput interface { pulumi.Input ToEventOutput() EventOutput ToEventOutputWithContext(ctx context.Context) EventOutput }
type EventMap ¶
type EventMap map[string]EventInput
func (EventMap) ElementType ¶
func (EventMap) ToEventMapOutput ¶
func (i EventMap) ToEventMapOutput() EventMapOutput
func (EventMap) ToEventMapOutputWithContext ¶
func (i EventMap) ToEventMapOutputWithContext(ctx context.Context) EventMapOutput
type EventMapInput ¶
type EventMapInput interface { pulumi.Input ToEventMapOutput() EventMapOutput ToEventMapOutputWithContext(context.Context) EventMapOutput }
EventMapInput is an input type that accepts EventMap and EventMapOutput values. You can construct a concrete instance of `EventMapInput` via:
EventMap{ "key": EventArgs{...} }
type EventMapOutput ¶
type EventMapOutput struct{ *pulumi.OutputState }
func (EventMapOutput) ElementType ¶
func (EventMapOutput) ElementType() reflect.Type
func (EventMapOutput) MapIndex ¶
func (o EventMapOutput) MapIndex(k pulumi.StringInput) EventOutput
func (EventMapOutput) ToEventMapOutput ¶
func (o EventMapOutput) ToEventMapOutput() EventMapOutput
func (EventMapOutput) ToEventMapOutputWithContext ¶
func (o EventMapOutput) ToEventMapOutputWithContext(ctx context.Context) EventMapOutput
type EventOutput ¶
type EventOutput struct{ *pulumi.OutputState }
func (EventOutput) ElementType ¶
func (EventOutput) ElementType() reflect.Type
func (EventOutput) Events ¶
func (o EventOutput) Events() EventEventArrayOutput
An event to insert into Insights. Multiple event blocks can be defined. See Events below for details.
func (EventOutput) ToEventOutput ¶
func (o EventOutput) ToEventOutput() EventOutput
func (EventOutput) ToEventOutputWithContext ¶
func (o EventOutput) ToEventOutputWithContext(ctx context.Context) EventOutput
type EventState ¶
type EventState struct { // An event to insert into Insights. Multiple event blocks can be defined. See Events below for details. Events EventEventArrayInput }
func (EventState) ElementType ¶
func (EventState) ElementType() reflect.Type