provider

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(version string) func() provider.Provider

func SafeStringConversion

func SafeStringConversion(inputList []basetypes.StringValue) []string

func SquaredUpDashboardResource

func SquaredUpDashboardResource() resource.Resource

func SquaredUpDataStreams

func SquaredUpDataStreams() datasource.DataSource

func SquaredUpNodes added in v1.0.2

func SquaredUpNodes() datasource.DataSource

func SquaredupDataSourceResource

func SquaredupDataSourceResource() resource.Resource

func SquaredupDataSourcesDataSource

func SquaredupDataSourcesDataSource() datasource.DataSource

func SquaredupWorkspaceResource

func SquaredupWorkspaceResource() resource.Resource

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 (*DashboardResource) Create

func (*DashboardResource) Delete

func (*DashboardResource) ImportState

func (*DashboardResource) Metadata

func (*DashboardResource) Read

func (*DashboardResource) Schema

func (*DashboardResource) Update

type DataSource

type DataSource struct {
	DisplayName string `json:"displayName"`
	ID          string `json:"id,omitempty"`
	Plugin      struct {
		Name string `json:"name"`
	} `json:"plugin"`
	AgentGroupID string `json:"agentGroupId,omitempty"`
}

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 (c *SquaredUpClient) CreateDashboard(displayName string, workspaceId string, timeframe string, dashboardContent string) (*Dashboard, error)

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 (c *SquaredUpClient) GenerateDataSourcePayload(displayName string, name string, pluginConfig map[string]interface{}, agentGroupId string) (map[string]interface{}, 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) ([]GremlinQueryResult, error)

func (*SquaredUpClient) GetWorkspace

func (c *SquaredUpClient) GetWorkspace(workspaceId string) (*WorkspaceRead, error)

func (*SquaredUpClient) UpdateDashboard

func (c *SquaredUpClient) UpdateDashboard(dashboardId string, displayName string, workspaceId string, timeframe string, dashboardContent string) (*Dashboard, error)

func (*SquaredUpClient) UpdateDataSource

func (c *SquaredUpClient) UpdateDataSource(dataSourceId string, displayName string, name string, pluginConfig map[string]interface{}, agentGroupId string) error

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 struct {
	Plugins    []string `json:"plugins"`
	Workspaces []string `json:"workspaces"`
}

type WorkspaceProperties

type WorkspaceProperties struct {
	OpenAccessEnabled bool     `json:"openAccessEnabled"`
	Tags              []string `json:"tags"`
	Description       string   `json:"description"`
	Type              string   `json:"type,omitempty"`
}

type WorkspaceRead

type WorkspaceRead struct {
	ID          string            `json:"id"`
	Type        string            `json:"type"`
	DisplayName string            `json:"displayName"`
	Tenant      string            `json:"tenant"`
	ConfigID    string            `json:"configId"`
	Data        WorkspaceReadData `json:"data"`
}

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"`
}

Jump to

Keyboard shortcuts

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