@pulumi/signalfx
Version:
A Pulumi package for creating and managing SignalFx resources.
98 lines • 4.86 kB
JavaScript
;
// *** 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.TableChart = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* This special type of chart displays a data table. This table can be grouped by a dimension.
*
* ## Example
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as signalfx from "@pulumi/signalfx";
*
* // signalfx_list_chart.Logs-Exec_0:
* const table0 = new signalfx.TableChart("table_0", {
* description: "beep",
* disableSampling: false,
* maxDelay: 0,
* name: "TableChart!",
* programText: "A = data('cpu.usage.total').publish(label='CPU Total')",
* groupBies: ["ClusterName"],
* });
* ```
*/
class TableChart extends pulumi.CustomResource {
/**
* Get an existing TableChart 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 TableChart(name, state, Object.assign(Object.assign({}, opts), { id: id }));
}
/**
* Returns true if the given object is an instance of TableChart. 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'] === TableChart.__pulumiType;
}
constructor(name, argsOrState, opts) {
let resourceInputs = {};
opts = opts || {};
if (opts.id) {
const state = argsOrState;
resourceInputs["description"] = state ? state.description : undefined;
resourceInputs["disableSampling"] = state ? state.disableSampling : undefined;
resourceInputs["groupBies"] = state ? state.groupBies : undefined;
resourceInputs["hideTimestamp"] = state ? state.hideTimestamp : undefined;
resourceInputs["maxDelay"] = state ? state.maxDelay : undefined;
resourceInputs["minimumResolution"] = state ? state.minimumResolution : undefined;
resourceInputs["name"] = state ? state.name : undefined;
resourceInputs["programText"] = state ? state.programText : undefined;
resourceInputs["refreshInterval"] = state ? state.refreshInterval : undefined;
resourceInputs["tags"] = state ? state.tags : 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["description"] = args ? args.description : undefined;
resourceInputs["disableSampling"] = args ? args.disableSampling : undefined;
resourceInputs["groupBies"] = args ? args.groupBies : undefined;
resourceInputs["hideTimestamp"] = args ? args.hideTimestamp : undefined;
resourceInputs["maxDelay"] = args ? args.maxDelay : undefined;
resourceInputs["minimumResolution"] = args ? args.minimumResolution : undefined;
resourceInputs["name"] = args ? args.name : undefined;
resourceInputs["programText"] = args ? args.programText : undefined;
resourceInputs["refreshInterval"] = args ? args.refreshInterval : undefined;
resourceInputs["tags"] = args ? args.tags : 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(TableChart.__pulumiType, name, resourceInputs, opts);
}
}
exports.TableChart = TableChart;
/** @internal */
TableChart.__pulumiType = 'signalfx:index/tableChart:TableChart';
//# sourceMappingURL=tableChart.js.map