import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * > **NOTE:** The newrelic.OneDashboardJson resource is preferred for configuring dashboards in New Relic. This resource does not support the latest dashboard features and will receive less investment compared to newrelic_one_dashboard_json. * * ## Example Usage * * ### Create A New Relic One Dashboard With RawConfiguration * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * * const exampledash = new newrelic.OneDashboardRaw("exampledash", { * name: "New Relic Terraform Example", * pages: [{ * name: "Page Name", * widgets: [ * { * title: "Custom widget", * row: 1, * column: 1, * width: 1, * height: 1, * visualizationId: "viz.custom", * configuration: ` { * \\"legend\\": { * \\"enabled\\": false * }, * \\"nrqlQueries\\": [ * { * \\"accountId\\": \` + accountID + \`, * \\"query\\": \\"SELECT average(loadAverageOneMinute), average(loadAverageFiveMinute), average(loadAverageFifteenMinute) from SystemSample SINCE 60 minutes ago TIMESERIES\\" * } * ], * \\"yAxisLeft\\": { * \\"max\\": 100, * \\"min\\": 50, * \\"zero\\": false * } * } * `, * }, * { * title: "Server CPU", * row: 1, * column: 2, * width: 1, * height: 1, * visualizationId: "viz.testing", * configuration: ` { * \\"nrqlQueries\\": [ * { * \\"accountId\\": \` + accountID + \`, * \\"query\\": \\"SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400\\" * } * ] * } * `, * }, * { * title: "Docker Server CPU", * row: 1, * column: 3, * height: 1, * width: 1, * visualizationId: "viz.bar", * configuration: JSON.stringify({ * facet: { * showOtherSeries: false, * }, * nrqlQueries: [{ * accountId: accountID, * query: "SELECT average(cpuPercent) FROM SystemSample since 3 hours ago facet hostname limit 400", * }], * }), * linkedEntityGuids: ["MzI5ODAxNnxWSVp8REFTSEJPQVJEfDI2MTcxNDc"], * }, * ], * }], * }); * ``` */ export declare class OneDashboardRaw extends pulumi.CustomResource { /** * Get an existing OneDashboardRaw 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: string, id: pulumi.Input, state?: OneDashboardRawState, opts?: pulumi.CustomResourceOptions): OneDashboardRaw; /** * Returns true if the given object is an instance of OneDashboardRaw. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is OneDashboardRaw; /** * Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used. */ readonly accountId: pulumi.Output; /** * Brief text describing the dashboard. */ readonly description: pulumi.Output; /** * The unique entity identifier of the dashboard page in New Relic. */ readonly guid: pulumi.Output; /** * The title of the dashboard. */ readonly name: pulumi.Output; /** * A nested block that describes a page. See Nested page blocks below for details. */ readonly pages: pulumi.Output; /** * The URL for viewing the dashboard. */ readonly permalink: pulumi.Output; /** * Determines who can see the dashboard in an account. Valid values are `private`, `publicReadOnly`, or `publicReadWrite`. Defaults to `publicReadOnly`. */ readonly permissions: pulumi.Output; /** * Create a OneDashboardRaw resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: OneDashboardRawArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OneDashboardRaw resources. */ export interface OneDashboardRawState { /** * Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used. */ accountId?: pulumi.Input; /** * Brief text describing the dashboard. */ description?: pulumi.Input; /** * The unique entity identifier of the dashboard page in New Relic. */ guid?: pulumi.Input; /** * The title of the dashboard. */ name?: pulumi.Input; /** * A nested block that describes a page. See Nested page blocks below for details. */ pages?: pulumi.Input[] | undefined>; /** * The URL for viewing the dashboard. */ permalink?: pulumi.Input; /** * Determines who can see the dashboard in an account. Valid values are `private`, `publicReadOnly`, or `publicReadWrite`. Defaults to `publicReadOnly`. */ permissions?: pulumi.Input; } /** * The set of arguments for constructing a OneDashboardRaw resource. */ export interface OneDashboardRawArgs { /** * Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used. */ accountId?: pulumi.Input; /** * Brief text describing the dashboard. */ description?: pulumi.Input; /** * The title of the dashboard. */ name?: pulumi.Input; /** * A nested block that describes a page. See Nested page blocks below for details. */ pages: pulumi.Input[]>; /** * Determines who can see the dashboard in an account. Valid values are `private`, `publicReadOnly`, or `publicReadWrite`. Defaults to `publicReadOnly`. */ permissions?: pulumi.Input; } //# sourceMappingURL=oneDashboardRaw.d.ts.map