Documentation
¶
Index ¶
- func New(version string) func() provider.Provider
- func SafeStringConversion(inputList []basetypes.StringValue) []string
- func SquaredUpDashboardResource() resource.Resource
- func SquaredUpDataStreams() datasource.DataSource
- func SquaredUpNodes() datasource.DataSource
- func SquaredupDataSourceResource() resource.Resource
- func SquaredupDataSourcesDataSource() datasource.DataSource
- func SquaredupWorkspaceResource() resource.Resource
- 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 DataSource
- type DataSourceDataStreams
- type GremlinQueryResult
- type LatestDataSource
- type SquaredUpClient
- func (c *SquaredUpClient) AddDataSource(displayName string, name string, pluginConfig map[string]interface{}, ...) (*DataSource, error)
- func (c *SquaredUpClient) CreateDashboard(displayName string, workspaceId string, timeframe string, ...) (*Dashboard, error)
- func (c *SquaredUpClient) CreateWorkspace(workspacePayload map[string]interface{}) (string, error)
- func (c *SquaredUpClient) DeleteDashboard(dashboardId string) error
- func (c *SquaredUpClient) DeleteDataSource(dataSourceId 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) 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) ([]GremlinQueryResult, error)
- func (c *SquaredUpClient) GetWorkspace(workspaceId string) (*WorkspaceRead, error)
- func (c *SquaredUpClient) UpdateDashboard(dashboardId string, displayName string, workspaceId string, timeframe string, ...) (*Dashboard, error)
- func (c *SquaredUpClient) UpdateDataSource(dataSourceId string, displayName string, name string, ...) error
- func (c *SquaredUpClient) UpdateWorkspace(workspaceId string, workspacePayload map[string]interface{}) error
- type SquaredupGremlinQuery
- type WorkspaceConfig
- type WorkspaceLinks
- type WorkspaceProperties
- type WorkspaceRead
- type WorkspaceReadData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SafeStringConversion ¶
func SafeStringConversion(inputList []basetypes.StringValue) []string
func SquaredUpDataStreams ¶
func SquaredUpDataStreams() datasource.DataSource
func SquaredUpNodes ¶ added in v1.0.2
func SquaredUpNodes() datasource.DataSource
func SquaredupDataSourcesDataSource ¶
func SquaredupDataSourcesDataSource() datasource.DataSource
Types ¶
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"`
Group string `json:"group,omitempty"`
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 DataSource ¶
type DataSourceDataStreams ¶
type DataSourceDataStreams struct {
DisplayName string `json:"displayName"`
DataSourceName string `json:"dataSourceName"`
LastUpdated string `json:"lastUpdated"`
ParentPluginVersion string `json:"parentPluginVersion"`
ParentPluginID string `json:"parentPluginId"`
Type string `json:"type"`
ID string `json:"id"`
Definition struct {
Name string `json:"name"`
} `json:"definition"`
}
type GremlinQueryResult ¶ added in v1.0.2
type GremlinQueryResult struct {
ID string `json:"id"`
Label string `json:"label"`
SourceName []string `json:"sourceName"`
Type []string `json:"type"`
SourceType []string `json:"sourceType"`
Name []string `json:"name"`
SourceId []string `json:"sourceId"`
Search []string `json:"__search"`
DisplayName []string `json:"__name"`
PartitionKey []string `json:"__partitionKey"`
TenantId []string `json:"__tenantId"`
ConfigId []string `json:"__configId"`
}
type LatestDataSource ¶
type LatestDataSource struct {
Category string `json:"category"`
Description string `json:"description"`
Author string `json:"author"`
LastUpdated string `json:"lastUpdated"`
LambdaName string `json:"lambdaName"`
Version string `json:"version"`
OnPrem bool `json:"onPrem"`
DisplayName string `json:"displayName"`
PluginID string `json:"id"`
}
type SquaredUpClient ¶
type SquaredUpClient struct {
// contains filtered or unexported fields
}
func NewSquaredUpClient ¶
func NewSquaredUpClient(region string, apiKey string) (*SquaredUpClient, error)
func (*SquaredUpClient) AddDataSource ¶
func (c *SquaredUpClient) AddDataSource(displayName string, name string, pluginConfig map[string]interface{}, agentGroupId string) (*DataSource, error)
func (*SquaredUpClient) CreateDashboard ¶
func (*SquaredUpClient) CreateWorkspace ¶
func (c *SquaredUpClient) CreateWorkspace(workspacePayload map[string]interface{}) (string, error)
func (*SquaredUpClient) DeleteDashboard ¶
func (c *SquaredUpClient) DeleteDashboard(dashboardId string) error
func (*SquaredUpClient) DeleteDataSource ¶
func (c *SquaredUpClient) DeleteDataSource(dataSourceId string) error
func (*SquaredUpClient) DeleteWorkspace ¶
func (c *SquaredUpClient) DeleteWorkspace(workspaceId string) error
func (*SquaredUpClient) GenerateDataSourcePayload ¶
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) ([]GremlinQueryResult, error)
func (*SquaredUpClient) GetWorkspace ¶
func (c *SquaredUpClient) GetWorkspace(workspaceId string) (*WorkspaceRead, error)
func (*SquaredUpClient) UpdateDashboard ¶
func (*SquaredUpClient) UpdateDataSource ¶
func (*SquaredUpClient) UpdateWorkspace ¶
func (c *SquaredUpClient) UpdateWorkspace(workspaceId string, workspacePayload map[string]interface{}) error
type SquaredupGremlinQuery ¶ added in v1.0.2
type SquaredupGremlinQuery struct {
GremlinQueryResults []GremlinQueryResult `json:"gremlinQueryResults"`
}
type WorkspaceConfig ¶
type WorkspaceConfig struct {
DisplayName string `json:"displayName"`
ID string `json:"id,omitempty"`
Links WorkspaceLinks `json:"links"`
Properties WorkspaceProperties `json:"properties"`
}
type WorkspaceLinks ¶
type WorkspaceProperties ¶
type WorkspaceRead ¶
type WorkspaceReadData ¶
type WorkspaceReadData struct {
ID string `json:"id"`
Label string `json:"label"`
LinkedObjects string `json:"linkedObjects"`
Properties WorkspaceProperties `json:"properties"`
SourceType string `json:"sourceType"`
SourceName string `json:"sourceName"`
Search string `json:"__search"`
Name string `json:"__name"`
PartitionKey string `json:"__partitionKey"`
Links WorkspaceLinks `json:"links"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.