dashboardsbase

package
v1.65.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DYNATRACE_DASHBOARD_TESTS = len(os.Getenv("DYNATRACE_DASHBOARD_TESTS")) > 0
View Source
var JSON_DASHBOARD_BASE_PLUS = os.Getenv("DYNATRACE_JSON_DASHBOARD_BASE_PLUS") == "true"

Functions

This section is empty.

Types

type DashboardList

type DashboardList struct {
	Dashboards []*DashboardStub `json:"dashboards,omitempty"` // the short representations of the dashboards
}

DashboardList is a list of short representations of dashboards

func (*DashboardList) ToStubs

func (me *DashboardList) ToStubs() api.Stubs

type DashboardMetadataBase

type DashboardMetadataBase struct {
	Name  string  `json:"name"`            // the name of the dashboard
	Owner *string `json:"owner,omitempty"` // the owner of the dashboard
}

DashboardMetadataBase contains parameters of a dashboard

func (*DashboardMetadataBase) MarshalHCL

func (me *DashboardMetadataBase) MarshalHCL(properties hcl.Properties) error

func (*DashboardMetadataBase) MarshalJSON

func (me *DashboardMetadataBase) MarshalJSON() ([]byte, error)

func (*DashboardMetadataBase) Schema

func (me *DashboardMetadataBase) Schema() map[string]*schema.Schema

func (*DashboardMetadataBase) UnmarshalHCL

func (me *DashboardMetadataBase) UnmarshalHCL(decoder hcl.Decoder) error

func (*DashboardMetadataBase) UnmarshalJSON

func (me *DashboardMetadataBase) UnmarshalJSON(data []byte) error

type DashboardStub

type DashboardStub struct {
	ID    string  `json:"id"`              // the ID of the dashboard
	Name  *string `json:"name,omitempty"`  // the name of the dashboard
	Owner *string `json:"owner,omitempty"` // the owner of the dashboard
}

DashboardStub is a short representation of a dashboard

type JSONDashboardBase

type JSONDashboardBase struct {
	Name     string
	Contents string
}

func (*JSONDashboardBase) EnrichRequireds

func (me *JSONDashboardBase) EnrichRequireds() *JSONDashboardBase

func (*JSONDashboardBase) MarshalHCL

func (me *JSONDashboardBase) MarshalHCL(properties hcl.Properties) error

func (*JSONDashboardBase) MarshalJSON

func (me *JSONDashboardBase) MarshalJSON() ([]byte, error)

func (*JSONDashboardBase) Schema

func (me *JSONDashboardBase) Schema() map[string]*schema.Schema

func (*JSONDashboardBase) UnmarshalHCL

func (me *JSONDashboardBase) UnmarshalHCL(decoder hcl.Decoder) error

func (*JSONDashboardBase) UnmarshalJSON

func (me *JSONDashboardBase) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL