The Automation API is now available. No CLI. No human-in-the-loop. Just your code. Learn More

DerivedMetric

Provides a Wavefront Derived Metric Resource. This allows derived metrics to be created, updated, and deleted.

Example Usage

using Pulumi;
using Wavefront = Pulumi.Wavefront;

class MyStack : Stack
{
    public MyStack()
    {
        var derived = new Wavefront.DerivedMetric("derived", new Wavefront.DerivedMetricArgs
        {
            Minutes = 5,
            Query = "aliasMetric(5, \"some.metric\")",
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-wavefront/sdk/go/wavefront"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := wavefront.NewDerivedMetric(ctx, "derived", &wavefront.DerivedMetricArgs{
            Minutes: pulumi.Int(5),
            Query:   pulumi.String("aliasMetric(5, \"some.metric\")"),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_wavefront as wavefront

derived = wavefront.DerivedMetric("derived",
    minutes=5,
    query="aliasMetric(5, \"some.metric\")")
import * as pulumi from "@pulumi/pulumi";
import * as wavefront from "@pulumi/wavefront";

const derived = new wavefront.DerivedMetric("derived", {
    minutes: 5,
    query: "aliasMetric(5, \"some.metric\")",
});

Create a DerivedMetric Resource

def DerivedMetric(resource_name: str, opts: Optional[ResourceOptions] = None, additional_information: Optional[str] = None, minutes: Optional[int] = None, name: Optional[str] = None, query: Optional[str] = None, tags: Optional[Sequence[str]] = None)
name string
The unique name of the resource.
args DerivedMetricArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args DerivedMetricArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DerivedMetricArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

DerivedMetric Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The DerivedMetric resource accepts the following input properties:

Minutes int

How frequently the query generating the derived metric is run

Query string

A Wavefront query that is evaluated at regular intervals (default 1m)

AdditionalInformation string

User-supplied additional explanatory information for the derived metric

Name string

The name of the Derived Metric in Wavefront

Tags List<string>

A set of tags to assign to this resource.

Minutes int

How frequently the query generating the derived metric is run

Query string

A Wavefront query that is evaluated at regular intervals (default 1m)

AdditionalInformation string

User-supplied additional explanatory information for the derived metric

Name string

The name of the Derived Metric in Wavefront

Tags []string

A set of tags to assign to this resource.

minutes number

How frequently the query generating the derived metric is run

query string

A Wavefront query that is evaluated at regular intervals (default 1m)

additionalInformation string

User-supplied additional explanatory information for the derived metric

name string

The name of the Derived Metric in Wavefront

tags string[]

A set of tags to assign to this resource.

minutes int

How frequently the query generating the derived metric is run

query str

A Wavefront query that is evaluated at regular intervals (default 1m)

additional_information str

User-supplied additional explanatory information for the derived metric

name str

The name of the Derived Metric in Wavefront

tags Sequence[str]

A set of tags to assign to this resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the DerivedMetric 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 str
The provider-assigned unique ID for this managed resource.

Look up an Existing DerivedMetric Resource

Get an existing DerivedMetric 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?: DerivedMetricState, opts?: CustomResourceOptions): DerivedMetric
@staticmethod
def get(resource_name: str, id: str, opts: Optional[ResourceOptions] = None, additional_information: Optional[str] = None, minutes: Optional[int] = None, name: Optional[str] = None, query: Optional[str] = None, tags: Optional[Sequence[str]] = None) -> DerivedMetric
func GetDerivedMetric(ctx *Context, name string, id IDInput, state *DerivedMetricState, opts ...ResourceOption) (*DerivedMetric, error)
public static DerivedMetric Get(string name, Input<string> id, DerivedMetricState? state, CustomResourceOptions? opts = null)
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.

The following state arguments are supported:

AdditionalInformation string

User-supplied additional explanatory information for the derived metric

Minutes int

How frequently the query generating the derived metric is run

Name string

The name of the Derived Metric in Wavefront

Query string

A Wavefront query that is evaluated at regular intervals (default 1m)

Tags List<string>

A set of tags to assign to this resource.

AdditionalInformation string

User-supplied additional explanatory information for the derived metric

Minutes int

How frequently the query generating the derived metric is run

Name string

The name of the Derived Metric in Wavefront

Query string

A Wavefront query that is evaluated at regular intervals (default 1m)

Tags []string

A set of tags to assign to this resource.

additionalInformation string

User-supplied additional explanatory information for the derived metric

minutes number

How frequently the query generating the derived metric is run

name string

The name of the Derived Metric in Wavefront

query string

A Wavefront query that is evaluated at regular intervals (default 1m)

tags string[]

A set of tags to assign to this resource.

additional_information str

User-supplied additional explanatory information for the derived metric

minutes int

How frequently the query generating the derived metric is run

name str

The name of the Derived Metric in Wavefront

query str

A Wavefront query that is evaluated at regular intervals (default 1m)

tags Sequence[str]

A set of tags to assign to this resource.

Package Details

Repository
https://github.com/pulumi/pulumi-wavefront
License
Apache-2.0
Notes
This Pulumi package is based on the wavefront Terraform Provider.