UNPKG

@pulumi/signalfx

Version:

A Pulumi package for creating and managing SignalFx resources.

144 lines 7.2 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.ListChart = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * This chart type displays current data values in a list format. * * The name of each value in the chart reflects the name of the plot and any associated dimensions. We recommend you click the Pencil icon and give the plot a meaningful name, as in plot B from the example. Otherwise, just the raw metric name will be displayed on the chart, as in plot A from the example. * * ## Example * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as signalfx from "@pulumi/signalfx"; * * const mylistchart0 = new signalfx.ListChart("mylistchart0", { * name: "CPU Total Idle - List", * programText: `myfilters = filter("cluster_name", "prod") and filter("role", "search") * data("cpu.total.idle", filter=myfilters).publish() * `, * description: "Very cool List Chart", * colorBy: "Metric", * maxDelay: 2, * timezone: "Europe/Paris", * disableSampling: true, * refreshInterval: 1, * hideMissingValues: true, * legendOptionsFields: [ * { * property: "collector", * enabled: false, * }, * { * property: "cluster_name", * enabled: true, * }, * { * property: "role", * enabled: true, * }, * { * property: "collector", * enabled: false, * }, * { * property: "host", * enabled: false, * }, * ], * maxPrecision: 2, * sortBy: "-value", * }); * ``` */ class ListChart extends pulumi.CustomResource { /** * Get an existing ListChart resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new ListChart(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of ListChart. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === ListChart.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["colorBy"] = state ? state.colorBy : undefined; resourceInputs["colorScales"] = state ? state.colorScales : undefined; resourceInputs["description"] = state ? state.description : undefined; resourceInputs["disableSampling"] = state ? state.disableSampling : undefined; resourceInputs["endTime"] = state ? state.endTime : undefined; resourceInputs["hideMissingValues"] = state ? state.hideMissingValues : undefined; resourceInputs["legendFieldsToHides"] = state ? state.legendFieldsToHides : undefined; resourceInputs["legendOptionsFields"] = state ? state.legendOptionsFields : undefined; resourceInputs["maxDelay"] = state ? state.maxDelay : undefined; resourceInputs["maxPrecision"] = state ? state.maxPrecision : undefined; resourceInputs["name"] = state ? state.name : undefined; resourceInputs["programText"] = state ? state.programText : undefined; resourceInputs["refreshInterval"] = state ? state.refreshInterval : undefined; resourceInputs["secondaryVisualization"] = state ? state.secondaryVisualization : undefined; resourceInputs["sortBy"] = state ? state.sortBy : undefined; resourceInputs["startTime"] = state ? state.startTime : undefined; resourceInputs["tags"] = state ? state.tags : undefined; resourceInputs["timeRange"] = state ? state.timeRange : undefined; resourceInputs["timezone"] = state ? state.timezone : undefined; resourceInputs["unitPrefix"] = state ? state.unitPrefix : undefined; resourceInputs["url"] = state ? state.url : undefined; resourceInputs["vizOptions"] = state ? state.vizOptions : undefined; } else { const args = argsOrState; if ((!args || args.programText === undefined) && !opts.urn) { throw new Error("Missing required property 'programText'"); } resourceInputs["colorBy"] = args ? args.colorBy : undefined; resourceInputs["colorScales"] = args ? args.colorScales : undefined; resourceInputs["description"] = args ? args.description : undefined; resourceInputs["disableSampling"] = args ? args.disableSampling : undefined; resourceInputs["endTime"] = args ? args.endTime : undefined; resourceInputs["hideMissingValues"] = args ? args.hideMissingValues : undefined; resourceInputs["legendFieldsToHides"] = args ? args.legendFieldsToHides : undefined; resourceInputs["legendOptionsFields"] = args ? args.legendOptionsFields : undefined; resourceInputs["maxDelay"] = args ? args.maxDelay : undefined; resourceInputs["maxPrecision"] = args ? args.maxPrecision : undefined; resourceInputs["name"] = args ? args.name : undefined; resourceInputs["programText"] = args ? args.programText : undefined; resourceInputs["refreshInterval"] = args ? args.refreshInterval : undefined; resourceInputs["secondaryVisualization"] = args ? args.secondaryVisualization : undefined; resourceInputs["sortBy"] = args ? args.sortBy : undefined; resourceInputs["startTime"] = args ? args.startTime : undefined; resourceInputs["tags"] = args ? args.tags : undefined; resourceInputs["timeRange"] = args ? args.timeRange : undefined; resourceInputs["timezone"] = args ? args.timezone : undefined; resourceInputs["unitPrefix"] = args ? args.unitPrefix : undefined; resourceInputs["vizOptions"] = args ? args.vizOptions : undefined; resourceInputs["url"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(ListChart.__pulumiType, name, resourceInputs, opts); } } exports.ListChart = ListChart; /** @internal */ ListChart.__pulumiType = 'signalfx:index/listChart:ListChart'; //# sourceMappingURL=listChart.js.map