insights

package
v5.23.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	pulumi.CustomResourceState

	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{
					Type:      pulumi.String("MyEvent"),
					Timestamp: pulumi.Int(1232471100),
					Attributes: insights.EventEventAttributeArray{
						&insights.EventEventAttributeArgs{
							Key:   pulumi.String("a_string_attribute"),
							Value: pulumi.String("a string"),
						},
						&insights.EventEventAttributeArgs{
							Key:   pulumi.String("an_integer_attribute"),
							Value: pulumi.String("42"),
							Type:  pulumi.String("int"),
						},
						&insights.EventEventAttributeArgs{
							Key:   pulumi.String("a_float_attribute"),
							Value: pulumi.String("101.1"),
							Type:  pulumi.String("float"),
						},
					},
				},
			},
		})
		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) ElementType() reflect.Type

func (*Event) ToEventOutput

func (i *Event) ToEventOutput() EventOutput

func (*Event) ToEventOutputWithContext

func (i *Event) ToEventOutputWithContext(ctx context.Context) EventOutput

type EventArgs

type EventArgs struct {
	Events EventEventArrayInput
}

The set of arguments for constructing a Event resource.

func (EventArgs) ElementType

func (EventArgs) ElementType() reflect.Type

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 (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 (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) Index

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

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

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

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

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

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) ElementType() reflect.Type

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 (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 (EventOutput) ToEventOutput

func (o EventOutput) ToEventOutput() EventOutput

func (EventOutput) ToEventOutputWithContext

func (o EventOutput) ToEventOutputWithContext(ctx context.Context) EventOutput

type EventState

type EventState struct {
	Events EventEventArrayInput
}

func (EventState) ElementType

func (EventState) ElementType() reflect.Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL