insights

package
v3.17.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 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

	// 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/v3/go/newrelic/insights"
"github.com/pulumi/pulumi/sdk/v2/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 added in v3.8.4

func (*Event) ElementType() reflect.Type

func (*Event) ToEventOutput added in v3.8.4

func (i *Event) ToEventOutput() EventOutput

func (*Event) ToEventOutputWithContext added in v3.8.4

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

func (*Event) ToEventPtrOutput added in v3.13.1

func (i *Event) ToEventPtrOutput() EventPtrOutput

func (*Event) ToEventPtrOutputWithContext added in v3.13.1

func (i *Event) ToEventPtrOutputWithContext(ctx context.Context) EventPtrOutput

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

func (EventArgs) ElementType() reflect.Type

type EventArray added in v3.13.1

type EventArray []EventInput

func (EventArray) ElementType added in v3.13.1

func (EventArray) ElementType() reflect.Type

func (EventArray) ToEventArrayOutput added in v3.13.1

func (i EventArray) ToEventArrayOutput() EventArrayOutput

func (EventArray) ToEventArrayOutputWithContext added in v3.13.1

func (i EventArray) ToEventArrayOutputWithContext(ctx context.Context) EventArrayOutput

type EventArrayInput added in v3.13.1

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 added in v3.13.1

type EventArrayOutput struct{ *pulumi.OutputState }

func (EventArrayOutput) ElementType added in v3.13.1

func (EventArrayOutput) ElementType() reflect.Type

func (EventArrayOutput) Index added in v3.13.1

func (EventArrayOutput) ToEventArrayOutput added in v3.13.1

func (o EventArrayOutput) ToEventArrayOutput() EventArrayOutput

func (EventArrayOutput) ToEventArrayOutputWithContext added in v3.13.1

func (o EventArrayOutput) ToEventArrayOutputWithContext(ctx context.Context) EventArrayOutput

type EventEvent

type EventEvent struct {
	Attributes []EventEventAttribute `pulumi:"attributes"`
	Timestamp  *int                  `pulumi:"timestamp"`
	Type       string                `pulumi:"type"`
}

type EventEventArgs

type EventEventArgs struct {
	Attributes EventEventAttributeArrayInput `pulumi:"attributes"`
	Timestamp  pulumi.IntPtrInput            `pulumi:"timestamp"`
	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 {
	Key   string  `pulumi:"key"`
	Type  *string `pulumi:"type"`
	Value string  `pulumi:"value"`
}

type EventEventAttributeArgs

type EventEventAttributeArgs struct {
	Key   pulumi.StringInput    `pulumi:"key"`
	Type  pulumi.StringPtrInput `pulumi:"type"`
	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

func (EventEventAttributeOutput) ToEventEventAttributeOutput

func (o EventEventAttributeOutput) ToEventEventAttributeOutput() EventEventAttributeOutput

func (EventEventAttributeOutput) ToEventEventAttributeOutputWithContext

func (o EventEventAttributeOutput) ToEventEventAttributeOutputWithContext(ctx context.Context) EventEventAttributeOutput

func (EventEventAttributeOutput) Type

func (EventEventAttributeOutput) Value

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 (EventEventOutput) ElementType

func (EventEventOutput) ElementType() reflect.Type

func (EventEventOutput) Timestamp

func (o EventEventOutput) Timestamp() pulumi.IntPtrOutput

func (EventEventOutput) ToEventEventOutput

func (o EventEventOutput) ToEventEventOutput() EventEventOutput

func (EventEventOutput) ToEventEventOutputWithContext

func (o EventEventOutput) ToEventEventOutputWithContext(ctx context.Context) EventEventOutput

func (EventEventOutput) Type

type EventInput added in v3.8.4

type EventInput interface {
	pulumi.Input

	ToEventOutput() EventOutput
	ToEventOutputWithContext(ctx context.Context) EventOutput
}

type EventMap added in v3.13.1

type EventMap map[string]EventInput

func (EventMap) ElementType added in v3.13.1

func (EventMap) ElementType() reflect.Type

func (EventMap) ToEventMapOutput added in v3.13.1

func (i EventMap) ToEventMapOutput() EventMapOutput

func (EventMap) ToEventMapOutputWithContext added in v3.13.1

func (i EventMap) ToEventMapOutputWithContext(ctx context.Context) EventMapOutput

type EventMapInput added in v3.13.1

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 added in v3.13.1

type EventMapOutput struct{ *pulumi.OutputState }

func (EventMapOutput) ElementType added in v3.13.1

func (EventMapOutput) ElementType() reflect.Type

func (EventMapOutput) MapIndex added in v3.13.1

func (EventMapOutput) ToEventMapOutput added in v3.13.1

func (o EventMapOutput) ToEventMapOutput() EventMapOutput

func (EventMapOutput) ToEventMapOutputWithContext added in v3.13.1

func (o EventMapOutput) ToEventMapOutputWithContext(ctx context.Context) EventMapOutput

type EventOutput added in v3.8.4

type EventOutput struct {
	*pulumi.OutputState
}

func (EventOutput) ElementType added in v3.8.4

func (EventOutput) ElementType() reflect.Type

func (EventOutput) ToEventOutput added in v3.8.4

func (o EventOutput) ToEventOutput() EventOutput

func (EventOutput) ToEventOutputWithContext added in v3.8.4

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

func (EventOutput) ToEventPtrOutput added in v3.13.1

func (o EventOutput) ToEventPtrOutput() EventPtrOutput

func (EventOutput) ToEventPtrOutputWithContext added in v3.13.1

func (o EventOutput) ToEventPtrOutputWithContext(ctx context.Context) EventPtrOutput

type EventPtrInput added in v3.13.1

type EventPtrInput interface {
	pulumi.Input

	ToEventPtrOutput() EventPtrOutput
	ToEventPtrOutputWithContext(ctx context.Context) EventPtrOutput
}

type EventPtrOutput added in v3.13.1

type EventPtrOutput struct {
	*pulumi.OutputState
}

func (EventPtrOutput) ElementType added in v3.13.1

func (EventPtrOutput) ElementType() reflect.Type

func (EventPtrOutput) ToEventPtrOutput added in v3.13.1

func (o EventPtrOutput) ToEventPtrOutput() EventPtrOutput

func (EventPtrOutput) ToEventPtrOutputWithContext added in v3.13.1

func (o EventPtrOutput) ToEventPtrOutputWithContext(ctx context.Context) EventPtrOutput

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

Jump to

Keyboard shortcuts

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