import * as pulumi from "@pulumi/pulumi"; /** * ## Example Usage * * ### Create A New Relic One Dashboard From A JSON File * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as newrelic from "@pulumi/newrelic"; * import * as std from "@pulumi/std"; * * const foo = new newrelic.OneDashboardJson("foo", {json: std.file({ * input: "dashboard.json", * }).then(invoke => invoke.result)}); * ``` * * ## Additional Examples * * ### Setting Thresholds * * The following example demonstrates setting thresholds on a billboard widget. * * `dashboard.json` * * ### More Complex Examples * * The following examples show more intricate use cases of creating dashboards from JSON files, using this resource. * - This example illustrates the use of a variable list of items to create a dashboard, that may be used iteratively to populate queries and other arguments of widgets, using Terraform template files. * - This example elaborates on the use of an apt Terraform configuration with additional dependencies, to instrument the use of values obtained from a GraphQL API response iteratively to configure widgets in the dashboard for each item in the response, using the Terraform `jsondecode` function. * * More of such examples may be found in ths GitHub repository. * * ## Import * * New Relic dashboards can be imported using their GUID, e.g. * * ```sh * $ terraform import newrelic_one_dashboard_json.my_dashboard * ``` */ export declare class OneDashboardJson extends pulumi.CustomResource { /** * Get an existing OneDashboardJson 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?: OneDashboardJsonState, opts?: pulumi.CustomResourceOptions): OneDashboardJson; /** * Returns true if the given object is an instance of OneDashboardJson. 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 OneDashboardJson; /** * 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; /** * The unique entity identifier of the dashboard in New Relic. */ readonly guid: pulumi.Output; /** * The JSON export of a dashboard. [The JSON can be exported from the UI](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/dashboards-charts-import-export-data/#dashboards) */ readonly json: pulumi.Output; /** * The URL for viewing the dashboard. */ readonly permalink: pulumi.Output; /** * The date and time when the dashboard was last updated. */ readonly updatedAt: pulumi.Output; /** * Create a OneDashboardJson 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: OneDashboardJsonArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering OneDashboardJson resources. */ export interface OneDashboardJsonState { /** * Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used. */ accountId?: pulumi.Input; /** * The unique entity identifier of the dashboard in New Relic. */ guid?: pulumi.Input; /** * The JSON export of a dashboard. [The JSON can be exported from the UI](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/dashboards-charts-import-export-data/#dashboards) */ json?: pulumi.Input; /** * The URL for viewing the dashboard. */ permalink?: pulumi.Input; /** * The date and time when the dashboard was last updated. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a OneDashboardJson resource. */ export interface OneDashboardJsonArgs { /** * Determines the New Relic account where the dashboard will be created. Defaults to the account associated with the API key used. */ accountId?: pulumi.Input; /** * The JSON export of a dashboard. [The JSON can be exported from the UI](https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/dashboards-charts-import-export-data/#dashboards) */ json: pulumi.Input; } //# sourceMappingURL=oneDashboardJson.d.ts.map