Documentation
¶
Index ¶
- func BuildWorkspacePayload(dashboardOrderRaw string) (map[string]interface{}, error)
- func GenerateWorkspacePayload(plan workspace) map[string]interface{}
- func GenerateWorkspaceState(workspaceRead *WorkspaceRead) workspace
- func New(version string) func() provider.Provider
- func SquaredUpAlertingChannelResource() resource.Resource
- func SquaredUpAlertingChannelTypes() datasource.DataSource
- func SquaredUpDashboardImageResource() resource.Resource
- func SquaredUpDashboardOrderingResource() resource.Resource
- func SquaredUpDashboardResource() resource.Resource
- func SquaredUpDashboardShareResource() resource.Resource
- func SquaredUpDashboardVariableResource() resource.Resource
- func SquaredUpDataStreams() datasource.DataSource
- func SquaredUpNodes() datasource.DataSource
- func SquaredUpScopeResource() resource.Resource
- func SquaredUpScriptResource() resource.Resource
- func SquaredupDataSourceResource() resource.Resource
- func SquaredupDataSourcesDataSource() datasource.DataSource
- func SquaredupWorkspaceAlertResource() resource.Resource
- func SquaredupWorkspaceResource() resource.Resource
- func UpdateDashboardVariable(squaredupProvider *DashboardResource, dashboardID string, variableId string) (string, error)
- type AlertChannel
- type AlertConditions
- type AlertDashboard
- type AlertMonitors
- type AlertTile
- type AlertingChannel
- type AlertingChannelResource
- func (r *AlertingChannelResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *AlertingChannelResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *AlertingChannelResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *AlertingChannelResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *AlertingChannelResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *AlertingChannelResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *AlertingChannelResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *AlertingChannelResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type AlertingChannelType
- type Dashboard
- type DashboardImage
- type DashboardImageMetadata
- type DashboardImageResource
- func (r *DashboardImageResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *DashboardImageResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DashboardImageResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DashboardImageResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DashboardImageResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *DashboardImageResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DashboardImageResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DashboardImageResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DashboardOrderingResource
- func (r *DashboardOrderingResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *DashboardOrderingResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DashboardOrderingResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DashboardOrderingResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DashboardOrderingResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *DashboardOrderingResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DashboardOrderingResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DashboardOrderingResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DashboardResource
- func (r *DashboardResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *DashboardResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DashboardResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DashboardResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DashboardResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *DashboardResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DashboardResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DashboardResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DashboardShare
- type DashboardShareProperties
- type DashboardShareResource
- func (r *DashboardShareResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *DashboardShareResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DashboardShareResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DashboardShareResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DashboardShareResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *DashboardShareResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DashboardShareResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DashboardShareResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DashboardSharing
- type DashboardVariable
- type DashboardVariableRead
- type DashboardVariableResource
- func (r *DashboardVariableResource) Configure(ctx context.Context, req resource.ConfigureRequest, ...)
- func (r *DashboardVariableResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DashboardVariableResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DashboardVariableResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DashboardVariableResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *DashboardVariableResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DashboardVariableResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DashboardVariableResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DataSource
- type DataSourceDataStreams
- type GremlinQueryResult
- type LatestDataSource
- type Scope
- type ScopeCreate
- type ScopeData
- type ScopeQueryDetail
- type ScopeQueryDetailPlugin
- type ScopeQueryDetailType
- type ScopeRead
- type ScopeResource
- func (r *ScopeResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *ScopeResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ScopeResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ScopeResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ScopeResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *ScopeResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ScopeResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ScopeResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type Script
- type ScriptConfig
- type ScriptResource
- func (r *ScriptResource) Configure(_ context.Context, req resource.ConfigureRequest, ...)
- func (r *ScriptResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ScriptResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ScriptResource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ScriptResource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *ScriptResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ScriptResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ScriptResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SelectedMonitors
- type SquaredUpClient
- func (c *SquaredUpClient) AddDataSource(displayName string, name string, onPrem *bool, ...) (*DataSource, error)
- func (c *SquaredUpClient) CreateAlertingChannel(alertChannel AlertingChannel) (*AlertingChannel, error)
- func (c *SquaredUpClient) CreateDashboard(displayName string, workspaceId string, timeframe string, ...) (*Dashboard, error)
- func (c *SquaredUpClient) CreateDashboardVariable(variable DashboardVariable, workspaceId string) (*DashboardVariableRead, error)
- func (c *SquaredUpClient) CreateScope(scope ScopeCreate, workspaceId string) (string, error)
- func (c *SquaredUpClient) CreateScript(script Script) (*Script, error)
- func (c *SquaredUpClient) CreateSharedDashboard(dashboardShare DashboardShare) (*DashboardShare, error)
- func (c *SquaredUpClient) CreateWorkspace(workspacePayload map[string]interface{}) (string, error)
- func (c *SquaredUpClient) DeleteAlertingChannel(alertChannelId string) error
- func (c *SquaredUpClient) DeleteDashboard(dashboardId string) error
- func (c *SquaredUpClient) DeleteDashboardImage(spaceId, dashId, tileId string) error
- func (c *SquaredUpClient) DeleteDashboardVariable(variableId string) error
- func (c *SquaredUpClient) DeleteDataSource(dataSourceId string) error
- func (c *SquaredUpClient) DeleteScope(scopeId string, workspaceId string) error
- func (c *SquaredUpClient) DeleteScript(scriptId string) error
- func (c *SquaredUpClient) DeleteSharedDashboard(sharedDashboardId string) error
- func (c *SquaredUpClient) DeleteWorkspace(workspaceId string) error
- func (c *SquaredUpClient) GenerateDataSourcePayload(displayName string, name string, onPrem *bool, ...) (map[string]interface{}, error)
- func (c *SquaredUpClient) GetAlertingChannel(alertChannelId string) (*AlertingChannel, error)
- func (c *SquaredUpClient) GetAlertingChannelTypes(displayName string) ([]AlertingChannelType, error)
- func (c *SquaredUpClient) GetDashboard(dashboardId string) (*Dashboard, error)
- func (c *SquaredUpClient) GetDashboardImage(spaceId, dashId, tileId string) (*DashboardImage, error)
- func (c *SquaredUpClient) GetDashboardVariable(variableId string) (*DashboardVariableRead, error)
- func (c *SquaredUpClient) GetDataSource(dataSourceId string) (*DataSource, error)
- func (c *SquaredUpClient) GetDataStreams(dataSourceId string, DataStreamDefinitionName string) ([]DataSourceDataStreams, error)
- func (c *SquaredUpClient) GetLatestDataSources(filterDisplayName string, onPrem *bool) ([]LatestDataSource, error)
- func (c *SquaredUpClient) GetNodes(dataSourceId string, nodeName string, nodeSourceId string, allowNull bool) ([]GremlinQueryResult, error)
- func (c *SquaredUpClient) GetScope(scopeId string, workspaceId string) (*ScopeRead, error)
- func (c *SquaredUpClient) GetScript(scriptId string) (*Script, error)
- func (c *SquaredUpClient) GetSharedDashboard(sharedDashboardId string) (*DashboardShare, error)
- func (c *SquaredUpClient) GetWorkspace(workspaceId string) (*WorkspaceRead, error)
- func (c *SquaredUpClient) UpdateAlertingChannel(alertChannelId string, alertChannel AlertingChannel) error
- func (c *SquaredUpClient) UpdateDashboard(dashboardId string, displayName string, timeframe string, ...) (*Dashboard, error)
- func (c *SquaredUpClient) UpdateDashboardVariable(variableId string, variable DashboardVariable) (*DashboardVariableRead, error)
- func (c *SquaredUpClient) UpdateDataSource(dataSourceId string, displayName string, name string, onPrem *bool, ...) error
- func (c *SquaredUpClient) UpdateScope(scopeId string, scope ScopeCreate, workspaceId string) error
- func (c *SquaredUpClient) UpdateScript(scriptId string, script Script) error
- func (c *SquaredUpClient) UpdateSharedDashboard(sharedDashboardId string, dashboardShare DashboardShare) error
- func (c *SquaredUpClient) UpdateWorkspace(workspaceId string, workspacePayload map[string]interface{}) error
- func (c *SquaredUpClient) UploadDashboardImage(spaceId, dashId, tileId string, dashboardImage *DashboardImage) error
- type SquaredUpDashboardImage
- type SquaredUpScope
- type SquaredupGremlinQuery
- type WorkspaceAlertData
- type WorkspaceAlertsData
- type WorkspaceLinks
- type WorkspaceProperties
- type WorkspaceRead
- type WorkspaceReadData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildWorkspacePayload ¶ added in v1.5.0
func GenerateWorkspacePayload ¶ added in v1.2.0
func GenerateWorkspacePayload(plan workspace) map[string]interface{}
func GenerateWorkspaceState ¶ added in v1.2.0
func GenerateWorkspaceState(workspaceRead *WorkspaceRead) workspace
func SquaredUpAlertingChannelResource ¶ added in v1.2.0
func SquaredUpAlertingChannelTypes ¶ added in v1.2.0
func SquaredUpAlertingChannelTypes() datasource.DataSource
func SquaredUpDashboardImageResource ¶ added in v1.5.0
func SquaredUpDashboardOrderingResource ¶ added in v1.5.0
func SquaredUpDashboardShareResource ¶ added in v1.2.0
func SquaredUpDashboardVariableResource ¶ added in v1.5.0
func SquaredUpDataStreams ¶
func SquaredUpDataStreams() datasource.DataSource
func SquaredUpNodes ¶ added in v1.0.2
func SquaredUpNodes() datasource.DataSource
func SquaredUpScopeResource ¶ added in v1.4.0
func SquaredUpScriptResource ¶ added in v1.2.0
func SquaredupDataSourcesDataSource ¶
func SquaredupDataSourcesDataSource() datasource.DataSource
func SquaredupWorkspaceAlertResource ¶ added in v1.2.0
func UpdateDashboardVariable ¶ added in v1.5.0
func UpdateDashboardVariable(squaredupProvider *DashboardResource, dashboardID string, variableId string) (string, error)
Types ¶
type AlertChannel ¶ added in v1.2.0
type AlertConditions ¶ added in v1.2.0
type AlertConditions struct {
Monitors AlertMonitors `json:"monitors"`
}
type AlertDashboard ¶ added in v1.2.0
type AlertMonitors ¶ added in v1.2.0
type AlertMonitors struct {
IncludeAllTiles bool `json:"includeAllTiles"`
DashboardRollupHealth bool `json:"dashboardRollupHealth"`
RollupHealth bool `json:"rollupHealth"`
Dashboards map[string]AlertDashboard `json:"dashboards,omitempty"`
}
type AlertingChannel ¶ added in v1.2.0
type AlertingChannelResource ¶ added in v1.2.0
type AlertingChannelResource struct {
// contains filtered or unexported fields
}
func (*AlertingChannelResource) Configure ¶ added in v1.2.0
func (r *AlertingChannelResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*AlertingChannelResource) Create ¶ added in v1.2.0
func (r *AlertingChannelResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*AlertingChannelResource) Delete ¶ added in v1.2.0
func (r *AlertingChannelResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*AlertingChannelResource) ImportState ¶ added in v1.2.0
func (r *AlertingChannelResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*AlertingChannelResource) Metadata ¶ added in v1.2.0
func (r *AlertingChannelResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*AlertingChannelResource) Read ¶ added in v1.2.0
func (r *AlertingChannelResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*AlertingChannelResource) Schema ¶ added in v1.2.0
func (r *AlertingChannelResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*AlertingChannelResource) Update ¶ added in v1.2.0
func (r *AlertingChannelResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type AlertingChannelType ¶ added in v1.2.0
type Dashboard ¶
type Dashboard struct {
DisplayName string `json:"displayName"`
LastUpdated string `json:"lastUpdated"`
WorkspaceID string `json:"workspaceId"`
ID string `json:"id"`
Content jsontypes.Normalized `json:"content"`
SchemaVersion string `json:"schemaVersion"`
Timeframe string `json:"timeframe,omitempty"`
}
type DashboardImage ¶ added in v1.5.0
type DashboardImage struct {
DataURL string `json:"dataURL"`
Metadata DashboardImageMetadata `json:"metadata"`
}
type DashboardImageMetadata ¶ added in v1.5.0
type DashboardImageMetadata struct {
FileName string `json:"fileName"`
}
type DashboardImageResource ¶ added in v1.5.0
type DashboardImageResource struct {
// contains filtered or unexported fields
}
func (*DashboardImageResource) Configure ¶ added in v1.5.0
func (r *DashboardImageResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*DashboardImageResource) Create ¶ added in v1.5.0
func (r *DashboardImageResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DashboardImageResource) Delete ¶ added in v1.5.0
func (r *DashboardImageResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DashboardImageResource) ImportState ¶ added in v1.5.0
func (r *DashboardImageResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DashboardImageResource) Metadata ¶ added in v1.5.0
func (r *DashboardImageResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DashboardImageResource) Read ¶ added in v1.5.0
func (r *DashboardImageResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DashboardImageResource) Schema ¶ added in v1.5.0
func (r *DashboardImageResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DashboardImageResource) Update ¶ added in v1.5.0
func (r *DashboardImageResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type DashboardOrderingResource ¶ added in v1.5.0
type DashboardOrderingResource struct {
// contains filtered or unexported fields
}
func (*DashboardOrderingResource) Configure ¶ added in v1.5.0
func (r *DashboardOrderingResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*DashboardOrderingResource) Create ¶ added in v1.5.0
func (r *DashboardOrderingResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DashboardOrderingResource) Delete ¶ added in v1.5.0
func (r *DashboardOrderingResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DashboardOrderingResource) ImportState ¶ added in v1.5.0
func (r *DashboardOrderingResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DashboardOrderingResource) Metadata ¶ added in v1.5.0
func (r *DashboardOrderingResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DashboardOrderingResource) Read ¶ added in v1.5.0
func (r *DashboardOrderingResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DashboardOrderingResource) Schema ¶ added in v1.5.0
func (r *DashboardOrderingResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DashboardOrderingResource) Update ¶ added in v1.5.0
func (r *DashboardOrderingResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type DashboardResource ¶
type DashboardResource struct {
// contains filtered or unexported fields
}
func (*DashboardResource) Configure ¶
func (r *DashboardResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*DashboardResource) Create ¶
func (r *DashboardResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DashboardResource) Delete ¶
func (r *DashboardResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DashboardResource) ImportState ¶
func (r *DashboardResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DashboardResource) Metadata ¶
func (r *DashboardResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DashboardResource) Read ¶
func (r *DashboardResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DashboardResource) Schema ¶
func (r *DashboardResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DashboardResource) Update ¶
func (r *DashboardResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type DashboardShare ¶ added in v1.2.0
type DashboardShare struct {
}
type DashboardShareProperties ¶ added in v1.2.0
type DashboardShareProperties struct {
}
type DashboardShareResource ¶ added in v1.2.0
type DashboardShareResource struct {
// contains filtered or unexported fields
}
func (*DashboardShareResource) Configure ¶ added in v1.2.0
func (r *DashboardShareResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*DashboardShareResource) Create ¶ added in v1.2.0
func (r *DashboardShareResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DashboardShareResource) Delete ¶ added in v1.2.0
func (r *DashboardShareResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DashboardShareResource) ImportState ¶ added in v1.2.0
func (r *DashboardShareResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DashboardShareResource) Metadata ¶ added in v1.2.0
func (r *DashboardShareResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DashboardShareResource) Read ¶ added in v1.2.0
func (r *DashboardShareResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DashboardShareResource) Schema ¶ added in v1.2.0
func (r *DashboardShareResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DashboardShareResource) Update ¶ added in v1.2.0
func (r *DashboardShareResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type DashboardSharing ¶ added in v1.2.0
type DashboardVariable ¶ added in v1.5.0
type DashboardVariableRead ¶ added in v1.5.0
type DashboardVariableRead struct {
WorkspaceID string `json:"workspaceId"`
Content DashboardVariable `json:"content"`
DisplayName string `json:"displayName"`
Name string `json:"name"`
ID string `json:"id"`
}
type DashboardVariableResource ¶ added in v1.5.0
type DashboardVariableResource struct {
// contains filtered or unexported fields
}
func (*DashboardVariableResource) Configure ¶ added in v1.5.0
func (r *DashboardVariableResource) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*DashboardVariableResource) Create ¶ added in v1.5.0
func (r *DashboardVariableResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DashboardVariableResource) Delete ¶ added in v1.5.0
func (r *DashboardVariableResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DashboardVariableResource) ImportState ¶ added in v1.5.0
func (r *DashboardVariableResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DashboardVariableResource) Metadata ¶ added in v1.5.0
func (r *DashboardVariableResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*DashboardVariableResource) Read ¶ added in v1.5.0
func (r *DashboardVariableResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DashboardVariableResource) Schema ¶ added in v1.5.0
func (r *DashboardVariableResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DashboardVariableResource) Update ¶ added in v1.5.0
func (r *DashboardVariableResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type DataSource ¶
type DataSourceDataStreams ¶
type GremlinQueryResult ¶ added in v1.0.2
type LatestDataSource ¶
type Scope ¶ added in v1.4.0
type Scope struct {
Name string `json:"name"`
Version int `json:"version"`
Query string `json:"query"`
Bindings map[string]interface{} `json:"bindings,omitempty"`
QueryDetail ScopeQueryDetail `json:"queryDetail"`
}
type ScopeCreate ¶ added in v1.4.0
type ScopeCreate struct {
Scope Scope `json:"scope"`
}
type ScopeQueryDetail ¶ added in v1.4.0
type ScopeQueryDetail struct {
IDs []string `json:"ids,omitempty"`
Plugins []ScopeQueryDetailPlugin `json:"plugins,omitempty"`
Types []ScopeQueryDetailType `json:"types,omitempty"`
BooleanQuery string `json:"booleanQuery,omitempty"`
}
type ScopeQueryDetailPlugin ¶ added in v1.4.0
type ScopeQueryDetailPlugin struct {
Value string `json:"value,omitempty"`
}
type ScopeQueryDetailType ¶ added in v1.4.0
type ScopeQueryDetailType struct {
Value string `json:"value,omitempty"`
}
type ScopeResource ¶ added in v1.4.0
type ScopeResource struct {
// contains filtered or unexported fields
}
func (*ScopeResource) Configure ¶ added in v1.4.0
func (r *ScopeResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ScopeResource) Create ¶ added in v1.4.0
func (r *ScopeResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ScopeResource) Delete ¶ added in v1.4.0
func (r *ScopeResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ScopeResource) ImportState ¶ added in v1.4.0
func (r *ScopeResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ScopeResource) Metadata ¶ added in v1.4.0
func (r *ScopeResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ScopeResource) Read ¶ added in v1.4.0
func (r *ScopeResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ScopeResource) Schema ¶ added in v1.4.0
func (r *ScopeResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ScopeResource) Update ¶ added in v1.4.0
func (r *ScopeResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type Script ¶ added in v1.2.0
type Script struct {
DisplayName string `json:"displayName"`
ScriptType string `json:"scriptType,omitempty"`
SubType string `json:"subType,omitempty"`
Config ScriptConfig `json:"config"`
ID string `json:"id,omitempty"`
}
type ScriptConfig ¶ added in v1.2.0
type ScriptConfig struct {
Src string `json:"src"`
}
type ScriptResource ¶ added in v1.2.0
type ScriptResource struct {
// contains filtered or unexported fields
}
func (*ScriptResource) Configure ¶ added in v1.2.0
func (r *ScriptResource) Configure(_ context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*ScriptResource) Create ¶ added in v1.2.0
func (r *ScriptResource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ScriptResource) Delete ¶ added in v1.2.0
func (r *ScriptResource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ScriptResource) ImportState ¶ added in v1.2.0
func (r *ScriptResource) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ScriptResource) Metadata ¶ added in v1.2.0
func (r *ScriptResource) Metadata(_ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
func (*ScriptResource) Read ¶ added in v1.2.0
func (r *ScriptResource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ScriptResource) Schema ¶ added in v1.2.0
func (r *ScriptResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ScriptResource) Update ¶ added in v1.2.0
func (r *ScriptResource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type SelectedMonitors ¶ added in v1.2.0
type SquaredUpClient ¶
type SquaredUpClient struct {
// contains filtered or unexported fields
}
func NewSquaredUpClient ¶
func NewSquaredUpClient(region string, apiKey string, version string) (*SquaredUpClient, error)
func (*SquaredUpClient) AddDataSource ¶
func (c *SquaredUpClient) AddDataSource(displayName string, name string, onPrem *bool, pluginConfig map[string]interface{}, agentGroupId string) (*DataSource, error)
func (*SquaredUpClient) CreateAlertingChannel ¶ added in v1.2.0
func (c *SquaredUpClient) CreateAlertingChannel(alertChannel AlertingChannel) (*AlertingChannel, error)
func (*SquaredUpClient) CreateDashboard ¶
func (*SquaredUpClient) CreateDashboardVariable ¶ added in v1.5.0
func (c *SquaredUpClient) CreateDashboardVariable(variable DashboardVariable, workspaceId string) (*DashboardVariableRead, error)
func (*SquaredUpClient) CreateScope ¶ added in v1.4.0
func (c *SquaredUpClient) CreateScope(scope ScopeCreate, workspaceId string) (string, error)
func (*SquaredUpClient) CreateScript ¶ added in v1.2.0
func (c *SquaredUpClient) CreateScript(script Script) (*Script, error)
func (*SquaredUpClient) CreateSharedDashboard ¶ added in v1.2.0
func (c *SquaredUpClient) CreateSharedDashboard(dashboardShare DashboardShare) (*DashboardShare, error)
func (*SquaredUpClient) CreateWorkspace ¶
func (c *SquaredUpClient) CreateWorkspace(workspacePayload map[string]interface{}) (string, error)
func (*SquaredUpClient) DeleteAlertingChannel ¶ added in v1.2.0
func (c *SquaredUpClient) DeleteAlertingChannel(alertChannelId string) error
func (*SquaredUpClient) DeleteDashboard ¶
func (c *SquaredUpClient) DeleteDashboard(dashboardId string) error
func (*SquaredUpClient) DeleteDashboardImage ¶ added in v1.5.0
func (c *SquaredUpClient) DeleteDashboardImage(spaceId, dashId, tileId string) error
func (*SquaredUpClient) DeleteDashboardVariable ¶ added in v1.5.0
func (c *SquaredUpClient) DeleteDashboardVariable(variableId string) error
func (*SquaredUpClient) DeleteDataSource ¶
func (c *SquaredUpClient) DeleteDataSource(dataSourceId string) error
func (*SquaredUpClient) DeleteScope ¶ added in v1.4.0
func (c *SquaredUpClient) DeleteScope(scopeId string, workspaceId string) error
func (*SquaredUpClient) DeleteScript ¶ added in v1.2.0
func (c *SquaredUpClient) DeleteScript(scriptId string) error
func (*SquaredUpClient) DeleteSharedDashboard ¶ added in v1.2.0
func (c *SquaredUpClient) DeleteSharedDashboard(sharedDashboardId string) error
func (*SquaredUpClient) DeleteWorkspace ¶
func (c *SquaredUpClient) DeleteWorkspace(workspaceId string) error
func (*SquaredUpClient) GenerateDataSourcePayload ¶
func (*SquaredUpClient) GetAlertingChannel ¶ added in v1.2.0
func (c *SquaredUpClient) GetAlertingChannel(alertChannelId string) (*AlertingChannel, error)
func (*SquaredUpClient) GetAlertingChannelTypes ¶ added in v1.2.0
func (c *SquaredUpClient) GetAlertingChannelTypes(displayName string) ([]AlertingChannelType, error)
func (*SquaredUpClient) GetDashboard ¶
func (c *SquaredUpClient) GetDashboard(dashboardId string) (*Dashboard, error)
func (*SquaredUpClient) GetDashboardImage ¶ added in v1.5.0
func (c *SquaredUpClient) GetDashboardImage(spaceId, dashId, tileId string) (*DashboardImage, error)
func (*SquaredUpClient) GetDashboardVariable ¶ added in v1.5.0
func (c *SquaredUpClient) GetDashboardVariable(variableId string) (*DashboardVariableRead, error)
func (*SquaredUpClient) GetDataSource ¶
func (c *SquaredUpClient) GetDataSource(dataSourceId string) (*DataSource, error)
func (*SquaredUpClient) GetDataStreams ¶
func (c *SquaredUpClient) GetDataStreams(dataSourceId string, DataStreamDefinitionName string) ([]DataSourceDataStreams, error)
func (*SquaredUpClient) GetLatestDataSources ¶
func (c *SquaredUpClient) GetLatestDataSources(filterDisplayName string, onPrem *bool) ([]LatestDataSource, error)
func (*SquaredUpClient) GetNodes ¶ added in v1.0.2
func (c *SquaredUpClient) GetNodes(dataSourceId string, nodeName string, nodeSourceId string, allowNull bool) ([]GremlinQueryResult, error)
func (*SquaredUpClient) GetScope ¶ added in v1.4.0
func (c *SquaredUpClient) GetScope(scopeId string, workspaceId string) (*ScopeRead, error)
func (*SquaredUpClient) GetScript ¶ added in v1.2.0
func (c *SquaredUpClient) GetScript(scriptId string) (*Script, error)
func (*SquaredUpClient) GetSharedDashboard ¶ added in v1.2.0
func (c *SquaredUpClient) GetSharedDashboard(sharedDashboardId string) (*DashboardShare, error)
func (*SquaredUpClient) GetWorkspace ¶
func (c *SquaredUpClient) GetWorkspace(workspaceId string) (*WorkspaceRead, error)
func (*SquaredUpClient) UpdateAlertingChannel ¶ added in v1.2.0
func (c *SquaredUpClient) UpdateAlertingChannel(alertChannelId string, alertChannel AlertingChannel) error
func (*SquaredUpClient) UpdateDashboard ¶
func (*SquaredUpClient) UpdateDashboardVariable ¶ added in v1.5.0
func (c *SquaredUpClient) UpdateDashboardVariable(variableId string, variable DashboardVariable) (*DashboardVariableRead, error)
func (*SquaredUpClient) UpdateDataSource ¶
func (*SquaredUpClient) UpdateScope ¶ added in v1.4.0
func (c *SquaredUpClient) UpdateScope(scopeId string, scope ScopeCreate, workspaceId string) error
func (*SquaredUpClient) UpdateScript ¶ added in v1.2.0
func (c *SquaredUpClient) UpdateScript(scriptId string, script Script) error
func (*SquaredUpClient) UpdateSharedDashboard ¶ added in v1.2.0
func (c *SquaredUpClient) UpdateSharedDashboard(sharedDashboardId string, dashboardShare DashboardShare) error
func (*SquaredUpClient) UpdateWorkspace ¶
func (c *SquaredUpClient) UpdateWorkspace(workspaceId string, workspacePayload map[string]interface{}) error
func (*SquaredUpClient) UploadDashboardImage ¶ added in v1.5.0
func (c *SquaredUpClient) UploadDashboardImage(spaceId, dashId, tileId string, dashboardImage *DashboardImage) error
type SquaredUpDashboardImage ¶ added in v1.5.0
type SquaredUpDashboardImage struct {
ImageId types.String `tfsdk:"id"`
TileId types.String `tfsdk:"tile_id"`
DashboardId types.String `tfsdk:"dashboard_id"`
WorkspaceId types.String `tfsdk:"workspace_id"`
ImageBase64DataUri types.String `tfsdk:"image_base64_data_uri"`
ImageFileName types.String `tfsdk:"image_file_name"`
}
type SquaredUpScope ¶ added in v1.4.0
type SquaredUpScope struct {
ScopeID types.String `tfsdk:"id"`
DisplayName types.String `tfsdk:"display_name"`
ScopeType types.String `tfsdk:"scope_type"`
LastUpdated types.String `tfsdk:"last_updated"`
WorkspaceId types.String `tfsdk:"workspace_id"`
DataSourceId []types.String `tfsdk:"data_source_id"`
Types []types.String `tfsdk:"types"`
SearchQuery types.String `tfsdk:"search_query"`
AdvancedQuery types.String `tfsdk:"advanced_query"`
NodeIds []types.String `tfsdk:"node_ids"`
Query types.String `tfsdk:"query"`
}
type SquaredupGremlinQuery ¶ added in v1.0.2
type SquaredupGremlinQuery struct {
GremlinQueryResults []GremlinQueryResult `json:"gremlinQueryResults"`
}
type WorkspaceAlertData ¶ added in v1.2.0
type WorkspaceAlertData struct {
Channels []AlertChannel `json:"channels"`
Conditions AlertConditions `json:"conditions"`
}
type WorkspaceAlertsData ¶ added in v1.2.0
type WorkspaceAlertsData struct {
AlertingRules []WorkspaceAlertData `json:"alertingRules"`
}
type WorkspaceLinks ¶
type WorkspaceProperties ¶
type WorkspaceProperties struct {
DashboardSharingEnabled bool `json:"openAccessEnabled"`
Tags []string `json:"tags"`
Description string `json:"description"`
Type string `json:"type,omitempty"`
AuthorizedEmailDomains []string `json:"authorizedEmailDomains"`
DashboardIdOrder []interface{} `json:"dashboardIdOrder,omitempty"`
}
type WorkspaceRead ¶
type WorkspaceRead struct {
ID string `json:"id"`
DisplayName string `json:"displayName"`
Data WorkspaceReadData `json:"data"`
}
type WorkspaceReadData ¶
type WorkspaceReadData struct {
AlertingRules []WorkspaceAlertData `json:"alertingRules,omitempty"`
LinkedObjects string `json:"linkedObjects"`
Properties WorkspaceProperties `json:"properties"`
Links WorkspaceLinks `json:"links"`
}
Source Files
¶
- client.go
- client_alerting_channel.go
- client_alerting_channel_types.go
- client_dashboard.go
- client_dashboard_image.go
- client_dashboard_share.go
- client_dashboard_variable.go
- client_data_source.go
- client_data_streams.go
- client_node.go
- client_scope.go
- client_script.go
- client_workspace.go
- data_source_alerting_channel_types.go
- data_source_data_sources.go
- data_source_data_streams.go
- data_source_node.go
- models.go
- provider.go
- resource_alerting_channel.go
- resource_dashboard.go
- resource_dashboard_image.go
- resource_dashboard_ordering.go
- resource_dashboard_share.go
- resource_dashboard_variable.go
- resource_data_source.go
- resource_scope.go
- resource_script.go
- resource_workspace.go
- resource_workspace_alert.go
Click to show internal directories.
Click to hide internal directories.