This page documents the language specification for the newrelic package. If you're looking for help working with the inputs, outputs, or functions of newrelic resources in a Pulumi program, please see the resource documentation for examples and API reference.
insights¶
This provider is a derived work of the Terraform Provider distributed under MPL 2.0. If you encounter a bug or missing feature, first check the pulumi/pulumi-newrelic repo; however, if that doesn’t turn up anything, please consult the source terraform-providers/terraform-provider-newrelic repo.
- class
pulumi_newrelic.insights.Event(resource_name, opts=None, events=None, __props__=None, __name__=None, __opts__=None)¶ Use this resource to create one or more Insights events.
import pulumi import pulumi_newrelic as newrelic foo = newrelic.insights.Event("foo", events=[{ "attribute": [ { "key": "a_string_attribute", "value": "a string", }, { "key": "an_integer_attribute", "type": "int", "value": 42, }, { "key": "a_float_attribute", "type": "float", "value": 101.1, }, ], "timestamp": 1232471100, "type": "MyEvent", }])
The
eventmapping 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.
The
attributemapping 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 arestring,int, orfloat. Defaults tostring.
- Parameters
resource_name (str) – The name of the resource.
opts (pulumi.ResourceOptions) – Options for the resource.
events (pulumi.Input[list]) – An event to insert into Insights. Multiple event blocks can be defined. See Events below for details.
The events object supports the following:
attributes(pulumi.Input[list])key(pulumi.Input[str])type(pulumi.Input[str])value(pulumi.Input[str])
timestamp(pulumi.Input[float])type(pulumi.Input[str])
events: pulumi.Output[list] = None¶An event to insert into Insights. Multiple event blocks can be defined. See Events below for details.
attributes(list)key(str)type(str)value(str)
timestamp(float)type(str)
- static
get(resource_name, id, opts=None, events=None)¶ Get an existing Event resource’s state with the given name, id, and optional extra properties used to qualify the lookup.
- Parameters
resource_name (str) – The unique name of the resulting resource.
id (str) – The unique provider ID of the resource to lookup.
opts (pulumi.ResourceOptions) – Options for the resource.
events (pulumi.Input[list]) – An event to insert into Insights. Multiple event blocks can be defined. See Events below for details.
The events object supports the following:
attributes(pulumi.Input[list])key(pulumi.Input[str])type(pulumi.Input[str])value(pulumi.Input[str])
timestamp(pulumi.Input[float])type(pulumi.Input[str])
translate_output_property(prop)¶Provides subclasses of Resource an opportunity to translate names of output properties into a format of their choosing before writing those properties to the resource object.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str
translate_input_property(prop)¶Provides subclasses of Resource an opportunity to translate names of input properties into a format of their choosing before sending those properties to the Pulumi engine.
- Parameters
prop (str) – A property name.
- Returns
A potentially transformed property name.
- Return type
str