1. Packages
  2. Fastly Provider
  3. API Docs
  4. CustomDashboard
Fastly v8.14.0 published on Monday, Feb 3, 2025 by Pulumi

fastly.CustomDashboard

Explore with Pulumi AI

Provides a Custom Dashboard which can be viewed in the Fastly Control Panel.

Create CustomDashboard Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CustomDashboard(name: string, args?: CustomDashboardArgs, opts?: CustomResourceOptions);
@overload
def CustomDashboard(resource_name: str,
                    args: Optional[CustomDashboardArgs] = None,
                    opts: Optional[ResourceOptions] = None)

@overload
def CustomDashboard(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    dashboard_items: Optional[Sequence[CustomDashboardDashboardItemArgs]] = None,
                    description: Optional[str] = None,
                    name: Optional[str] = None)
func NewCustomDashboard(ctx *Context, name string, args *CustomDashboardArgs, opts ...ResourceOption) (*CustomDashboard, error)
public CustomDashboard(string name, CustomDashboardArgs? args = null, CustomResourceOptions? opts = null)
public CustomDashboard(String name, CustomDashboardArgs args)
public CustomDashboard(String name, CustomDashboardArgs args, CustomResourceOptions options)
type: fastly:CustomDashboard
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args CustomDashboardArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args CustomDashboardArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args CustomDashboardArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args CustomDashboardArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CustomDashboardArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var customDashboardResource = new Fastly.CustomDashboard("customDashboardResource", new()
{
    DashboardItems = new[]
    {
        new Fastly.Inputs.CustomDashboardDashboardItemArgs
        {
            DataSource = new Fastly.Inputs.CustomDashboardDashboardItemDataSourceArgs
            {
                Config = new Fastly.Inputs.CustomDashboardDashboardItemDataSourceConfigArgs
                {
                    Metrics = new[]
                    {
                        "string",
                    },
                },
                Type = "string",
            },
            Id = "string",
            Subtitle = "string",
            Title = "string",
            Visualization = new Fastly.Inputs.CustomDashboardDashboardItemVisualizationArgs
            {
                Config = new Fastly.Inputs.CustomDashboardDashboardItemVisualizationConfigArgs
                {
                    PlotType = "string",
                    CalculationMethod = "string",
                    Format = "string",
                },
                Type = "string",
            },
            Span = 0,
        },
    },
    Description = "string",
    Name = "string",
});
Copy
example, err := fastly.NewCustomDashboard(ctx, "customDashboardResource", &fastly.CustomDashboardArgs{
	DashboardItems: fastly.CustomDashboardDashboardItemArray{
		&fastly.CustomDashboardDashboardItemArgs{
			DataSource: &fastly.CustomDashboardDashboardItemDataSourceArgs{
				Config: &fastly.CustomDashboardDashboardItemDataSourceConfigArgs{
					Metrics: pulumi.StringArray{
						pulumi.String("string"),
					},
				},
				Type: pulumi.String("string"),
			},
			Id:       pulumi.String("string"),
			Subtitle: pulumi.String("string"),
			Title:    pulumi.String("string"),
			Visualization: &fastly.CustomDashboardDashboardItemVisualizationArgs{
				Config: &fastly.CustomDashboardDashboardItemVisualizationConfigArgs{
					PlotType:          pulumi.String("string"),
					CalculationMethod: pulumi.String("string"),
					Format:            pulumi.String("string"),
				},
				Type: pulumi.String("string"),
			},
			Span: pulumi.Int(0),
		},
	},
	Description: pulumi.String("string"),
	Name:        pulumi.String("string"),
})
Copy
var customDashboardResource = new CustomDashboard("customDashboardResource", CustomDashboardArgs.builder()
    .dashboardItems(CustomDashboardDashboardItemArgs.builder()
        .dataSource(CustomDashboardDashboardItemDataSourceArgs.builder()
            .config(CustomDashboardDashboardItemDataSourceConfigArgs.builder()
                .metrics("string")
                .build())
            .type("string")
            .build())
        .id("string")
        .subtitle("string")
        .title("string")
        .visualization(CustomDashboardDashboardItemVisualizationArgs.builder()
            .config(CustomDashboardDashboardItemVisualizationConfigArgs.builder()
                .plotType("string")
                .calculationMethod("string")
                .format("string")
                .build())
            .type("string")
            .build())
        .span(0)
        .build())
    .description("string")
    .name("string")
    .build());
Copy
custom_dashboard_resource = fastly.CustomDashboard("customDashboardResource",
    dashboard_items=[{
        "data_source": {
            "config": {
                "metrics": ["string"],
            },
            "type": "string",
        },
        "id": "string",
        "subtitle": "string",
        "title": "string",
        "visualization": {
            "config": {
                "plot_type": "string",
                "calculation_method": "string",
                "format": "string",
            },
            "type": "string",
        },
        "span": 0,
    }],
    description="string",
    name="string")
Copy
const customDashboardResource = new fastly.CustomDashboard("customDashboardResource", {
    dashboardItems: [{
        dataSource: {
            config: {
                metrics: ["string"],
            },
            type: "string",
        },
        id: "string",
        subtitle: "string",
        title: "string",
        visualization: {
            config: {
                plotType: "string",
                calculationMethod: "string",
                format: "string",
            },
            type: "string",
        },
        span: 0,
    }],
    description: "string",
    name: "string",
});
Copy
type: fastly:CustomDashboard
properties:
    dashboardItems:
        - dataSource:
            config:
                metrics:
                    - string
            type: string
          id: string
          span: 0
          subtitle: string
          title: string
          visualization:
            config:
                calculationMethod: string
                format: string
                plotType: string
            type: string
    description: string
    name: string
Copy

CustomDashboard Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The CustomDashboard resource accepts the following input properties:

DashboardItems List<CustomDashboardDashboardItem>
A list of dashboard items.
Description string
A short description of the dashboard.
Name string
A human-readable name.
DashboardItems []CustomDashboardDashboardItemArgs
A list of dashboard items.
Description string
A short description of the dashboard.
Name string
A human-readable name.
dashboardItems List<CustomDashboardDashboardItem>
A list of dashboard items.
description String
A short description of the dashboard.
name String
A human-readable name.
dashboardItems CustomDashboardDashboardItem[]
A list of dashboard items.
description string
A short description of the dashboard.
name string
A human-readable name.
dashboard_items Sequence[CustomDashboardDashboardItemArgs]
A list of dashboard items.
description str
A short description of the dashboard.
name str
A human-readable name.
dashboardItems List<Property Map>
A list of dashboard items.
description String
A short description of the dashboard.
name String
A human-readable name.

Outputs

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

Look up Existing CustomDashboard Resource

Get an existing CustomDashboard 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?: CustomDashboardState, opts?: CustomResourceOptions): CustomDashboard
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        dashboard_items: Optional[Sequence[CustomDashboardDashboardItemArgs]] = None,
        description: Optional[str] = None,
        name: Optional[str] = None) -> CustomDashboard
func GetCustomDashboard(ctx *Context, name string, id IDInput, state *CustomDashboardState, opts ...ResourceOption) (*CustomDashboard, error)
public static CustomDashboard Get(string name, Input<string> id, CustomDashboardState? state, CustomResourceOptions? opts = null)
public static CustomDashboard get(String name, Output<String> id, CustomDashboardState state, CustomResourceOptions options)
resources:  _:    type: fastly:CustomDashboard    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
DashboardItems List<CustomDashboardDashboardItem>
A list of dashboard items.
Description string
A short description of the dashboard.
Name string
A human-readable name.
DashboardItems []CustomDashboardDashboardItemArgs
A list of dashboard items.
Description string
A short description of the dashboard.
Name string
A human-readable name.
dashboardItems List<CustomDashboardDashboardItem>
A list of dashboard items.
description String
A short description of the dashboard.
name String
A human-readable name.
dashboardItems CustomDashboardDashboardItem[]
A list of dashboard items.
description string
A short description of the dashboard.
name string
A human-readable name.
dashboard_items Sequence[CustomDashboardDashboardItemArgs]
A list of dashboard items.
description str
A short description of the dashboard.
name str
A human-readable name.
dashboardItems List<Property Map>
A list of dashboard items.
description String
A short description of the dashboard.
name String
A human-readable name.

Supporting Types

CustomDashboardDashboardItem
, CustomDashboardDashboardItemArgs

DataSource This property is required. CustomDashboardDashboardItemDataSource
An object which describes the data to display.
Id This property is required. string
Dashboard item identifier (alphanumeric). Must be unique, relative to other items in the same dashboard.
Subtitle This property is required. string
A human-readable subtitle for the dashboard item. Often a description of the visualization.
Title This property is required. string
A human-readable title for the dashboard item.
Visualization This property is required. CustomDashboardDashboardItemVisualization
An object which describes the data visualization to display.
Span int
The number of columns for the dashboard item to span. Dashboards are rendered on a 12-column grid on "desktop" screen sizes.
DataSource This property is required. CustomDashboardDashboardItemDataSource
An object which describes the data to display.
Id This property is required. string
Dashboard item identifier (alphanumeric). Must be unique, relative to other items in the same dashboard.
Subtitle This property is required. string
A human-readable subtitle for the dashboard item. Often a description of the visualization.
Title This property is required. string
A human-readable title for the dashboard item.
Visualization This property is required. CustomDashboardDashboardItemVisualization
An object which describes the data visualization to display.
Span int
The number of columns for the dashboard item to span. Dashboards are rendered on a 12-column grid on "desktop" screen sizes.
dataSource This property is required. CustomDashboardDashboardItemDataSource
An object which describes the data to display.
id This property is required. String
Dashboard item identifier (alphanumeric). Must be unique, relative to other items in the same dashboard.
subtitle This property is required. String
A human-readable subtitle for the dashboard item. Often a description of the visualization.
title This property is required. String
A human-readable title for the dashboard item.
visualization This property is required. CustomDashboardDashboardItemVisualization
An object which describes the data visualization to display.
span Integer
The number of columns for the dashboard item to span. Dashboards are rendered on a 12-column grid on "desktop" screen sizes.
dataSource This property is required. CustomDashboardDashboardItemDataSource
An object which describes the data to display.
id This property is required. string
Dashboard item identifier (alphanumeric). Must be unique, relative to other items in the same dashboard.
subtitle This property is required. string
A human-readable subtitle for the dashboard item. Often a description of the visualization.
title This property is required. string
A human-readable title for the dashboard item.
visualization This property is required. CustomDashboardDashboardItemVisualization
An object which describes the data visualization to display.
span number
The number of columns for the dashboard item to span. Dashboards are rendered on a 12-column grid on "desktop" screen sizes.
data_source This property is required. CustomDashboardDashboardItemDataSource
An object which describes the data to display.
id This property is required. str
Dashboard item identifier (alphanumeric). Must be unique, relative to other items in the same dashboard.
subtitle This property is required. str
A human-readable subtitle for the dashboard item. Often a description of the visualization.
title This property is required. str
A human-readable title for the dashboard item.
visualization This property is required. CustomDashboardDashboardItemVisualization
An object which describes the data visualization to display.
span int
The number of columns for the dashboard item to span. Dashboards are rendered on a 12-column grid on "desktop" screen sizes.
dataSource This property is required. Property Map
An object which describes the data to display.
id This property is required. String
Dashboard item identifier (alphanumeric). Must be unique, relative to other items in the same dashboard.
subtitle This property is required. String
A human-readable subtitle for the dashboard item. Often a description of the visualization.
title This property is required. String
A human-readable title for the dashboard item.
visualization This property is required. Property Map
An object which describes the data visualization to display.
span Number
The number of columns for the dashboard item to span. Dashboards are rendered on a 12-column grid on "desktop" screen sizes.

CustomDashboardDashboardItemDataSource
, CustomDashboardDashboardItemDataSourceArgs

Config This property is required. CustomDashboardDashboardItemDataSourceConfig
Configuration options for the selected data source.
Type This property is required. string
The source of the data to display. One of: stats.edge, stats.domain, stats.origin.
Config This property is required. CustomDashboardDashboardItemDataSourceConfig
Configuration options for the selected data source.
Type This property is required. string
The source of the data to display. One of: stats.edge, stats.domain, stats.origin.
config This property is required. CustomDashboardDashboardItemDataSourceConfig
Configuration options for the selected data source.
type This property is required. String
The source of the data to display. One of: stats.edge, stats.domain, stats.origin.
config This property is required. CustomDashboardDashboardItemDataSourceConfig
Configuration options for the selected data source.
type This property is required. string
The source of the data to display. One of: stats.edge, stats.domain, stats.origin.
config This property is required. CustomDashboardDashboardItemDataSourceConfig
Configuration options for the selected data source.
type This property is required. str
The source of the data to display. One of: stats.edge, stats.domain, stats.origin.
config This property is required. Property Map
Configuration options for the selected data source.
type This property is required. String
The source of the data to display. One of: stats.edge, stats.domain, stats.origin.

CustomDashboardDashboardItemDataSourceConfig
, CustomDashboardDashboardItemDataSourceConfigArgs

Metrics This property is required. List<string>
The metrics to visualize. Valid options are defined by the selected data source: stats.edge, stats.domain, stats.origin.
Metrics This property is required. []string
The metrics to visualize. Valid options are defined by the selected data source: stats.edge, stats.domain, stats.origin.
metrics This property is required. List<String>
The metrics to visualize. Valid options are defined by the selected data source: stats.edge, stats.domain, stats.origin.
metrics This property is required. string[]
The metrics to visualize. Valid options are defined by the selected data source: stats.edge, stats.domain, stats.origin.
metrics This property is required. Sequence[str]
The metrics to visualize. Valid options are defined by the selected data source: stats.edge, stats.domain, stats.origin.
metrics This property is required. List<String>
The metrics to visualize. Valid options are defined by the selected data source: stats.edge, stats.domain, stats.origin.

CustomDashboardDashboardItemVisualization
, CustomDashboardDashboardItemVisualizationArgs

Config This property is required. CustomDashboardDashboardItemVisualizationConfig
Configuration options for the selected data source.
Type This property is required. string
The type of visualization to display. One of: chart.
Config This property is required. CustomDashboardDashboardItemVisualizationConfig
Configuration options for the selected data source.
Type This property is required. string
The type of visualization to display. One of: chart.
config This property is required. CustomDashboardDashboardItemVisualizationConfig
Configuration options for the selected data source.
type This property is required. String
The type of visualization to display. One of: chart.
config This property is required. CustomDashboardDashboardItemVisualizationConfig
Configuration options for the selected data source.
type This property is required. string
The type of visualization to display. One of: chart.
config This property is required. CustomDashboardDashboardItemVisualizationConfig
Configuration options for the selected data source.
type This property is required. str
The type of visualization to display. One of: chart.
config This property is required. Property Map
Configuration options for the selected data source.
type This property is required. String
The type of visualization to display. One of: chart.

CustomDashboardDashboardItemVisualizationConfig
, CustomDashboardDashboardItemVisualizationConfigArgs

PlotType This property is required. string
The type of chart to display. One of: line, bar, single-metric, donut.
CalculationMethod string
The aggregation function to apply to the dataset. One of: avg, sum, min, max, latest, p95.
Format string
The units to use to format the data. One of: number, bytes, percent, requests, responses, seconds, milliseconds, ratio, bitrate.
PlotType This property is required. string
The type of chart to display. One of: line, bar, single-metric, donut.
CalculationMethod string
The aggregation function to apply to the dataset. One of: avg, sum, min, max, latest, p95.
Format string
The units to use to format the data. One of: number, bytes, percent, requests, responses, seconds, milliseconds, ratio, bitrate.
plotType This property is required. String
The type of chart to display. One of: line, bar, single-metric, donut.
calculationMethod String
The aggregation function to apply to the dataset. One of: avg, sum, min, max, latest, p95.
format String
The units to use to format the data. One of: number, bytes, percent, requests, responses, seconds, milliseconds, ratio, bitrate.
plotType This property is required. string
The type of chart to display. One of: line, bar, single-metric, donut.
calculationMethod string
The aggregation function to apply to the dataset. One of: avg, sum, min, max, latest, p95.
format string
The units to use to format the data. One of: number, bytes, percent, requests, responses, seconds, milliseconds, ratio, bitrate.
plot_type This property is required. str
The type of chart to display. One of: line, bar, single-metric, donut.
calculation_method str
The aggregation function to apply to the dataset. One of: avg, sum, min, max, latest, p95.
format str
The units to use to format the data. One of: number, bytes, percent, requests, responses, seconds, milliseconds, ratio, bitrate.
plotType This property is required. String
The type of chart to display. One of: line, bar, single-metric, donut.
calculationMethod String
The aggregation function to apply to the dataset. One of: avg, sum, min, max, latest, p95.
format String
The units to use to format the data. One of: number, bytes, percent, requests, responses, seconds, milliseconds, ratio, bitrate.

Import

Fastly Custom Dashboards can be imported using their ID, e.g.

$ pulumi import fastly:index/customDashboard:CustomDashboard example xxxxxxxxxxxxxxxxxxxx
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Fastly pulumi/pulumi-fastly
License
Apache-2.0
Notes
This Pulumi package is based on the fastly Terraform Provider.