Documentation ¶
Index ¶
- 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 SquaredUpDashboardResource() resource.Resource
- func SquaredUpDashboardShareResource() 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
- 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 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 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, pluginConfig map[string]interface{}, ...) (*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) 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) 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, pluginConfig map[string]interface{}, ...) (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) GetDataSource(dataSourceId string) (*DataSource, error)
- func (c *SquaredUpClient) GetDataStreams(dataSourceId string, DataStreamDefinitionName string) ([]DataSourceDataStreams, error)
- func (c *SquaredUpClient) GetLatestDataSources(filterDisplayName string) ([]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) UpdateDataSource(dataSourceId string, displayName string, name string, ...) 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
- 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 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 SquaredUpDashboardShareResource ¶ added in v1.2.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
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"` Name string `json:"name"` SchemaVersion string `json:"schemaVersion"` Timeframe string `json:"timeframe,omitempty"` }
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 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, 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) 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) 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) 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) ([]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) 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
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 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_share.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_share.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.