Documentation ¶
Index ¶
- type Backup
- type Cluster
- func (c *Cluster) AddNode(address string, port int) error
- func (c *Cluster) AddPrivileges(role string, privileges []as.Privilege) error
- func (c *Cluster) AlertsFrom(id int64) []*common.Alert
- func (c *Cluster) Alias() *string
- func (c *Cluster) Backup(Namespace string, DestinationAddress string, DestinationPath string, ...) (*Backup, error)
- func (c *Cluster) BuildDetails() map[string]interface{}
- func (c *Cluster) ChangeUserPassword(user, pass string) error
- func (c *Cluster) CreateIndex(namespace, setName, indexName, binName, indexType string) error
- func (c *Cluster) CreateRole(role string, privileges []as.Privilege) error
- func (c *Cluster) CreateUDF(name, body string) error
- func (c *Cluster) CreateUser(user, password string, roles []string) error
- func (c *Cluster) CurrentBackup() *Backup
- func (c *Cluster) CurrentRestore() *Restore
- func (c *Cluster) CurrentUserPrivileges() []string
- func (c *Cluster) DatacenterInfo(sessionID string) common.Stats
- func (c *Cluster) Disk() common.Stats
- func (c *Cluster) DropIndex(namespace, setName, indexName string) error
- func (c *Cluster) DropRole(role string) error
- func (c *Cluster) DropUDF(udf string) error
- func (c *Cluster) DropUser(user string) error
- func (c *Cluster) FindNodeByAddress(address string) *Node
- func (c *Cluster) FindNodeByID(ID string) *Node
- func (c *Cluster) FindNodesByAddress(addresses ...string) []*Node
- func (c *Cluster) GrantRoles(user string, roles []string) error
- func (c *Cluster) ID() string
- func (c *Cluster) IsSet() bool
- func (c *Cluster) Jobs() []common.Stats
- func (c *Cluster) LatestThroughput() map[string]map[string]*common.SinglePointValue
- func (c *Cluster) Memory() common.Stats
- func (c *Cluster) Name() *string
- func (c *Cluster) NamespaceDeviceInfo(namespace string) common.Stats
- func (c *Cluster) NamespaceIndexInfo(namespace string) map[string]common.Info
- func (c *Cluster) NamespaceIndexes() map[string][]string
- func (c *Cluster) NamespaceInfo(namespaces []string) map[string]common.Stats
- func (c *Cluster) NamespaceInfoPerNode(ns string, nodeAddrs []string) map[string]interface{}
- func (c *Cluster) NamespaceList() (result []string)
- func (c *Cluster) NamespaceSetsInfo(namespace string) []common.Stats
- func (c *Cluster) NodeBuilds() (builds []string)
- func (c *Cluster) NodeCompatibility() string
- func (c *Cluster) NodeList() []string
- func (c *Cluster) Nodes() (nodes []*Node)
- func (c *Cluster) OffNodes() []string
- func (c *Cluster) Password() *string
- func (c *Cluster) RandomActiveNode() *Node
- func (c *Cluster) RedAlertCount() int
- func (c *Cluster) RemoveNodeByAddress(address string) error
- func (c *Cluster) RemovePrivileges(role string, privileges []as.Privilege) error
- func (c *Cluster) RequestInfoAll(cmd string) (map[*Node]string, error)
- func (c *Cluster) Restore(Namespace string, DestinationAddress string, DestinationPath string, ...) (*Restore, error)
- func (c *Cluster) RevokeRoles(user string, roles []string) error
- func (c *Cluster) RoleNames() []string
- func (c *Cluster) Roles() []*as.Role
- func (c *Cluster) SameAs(other *Cluster) bool
- func (c *Cluster) SecurityEnabled() bool
- func (c *Cluster) SeedAddress() string
- func (c *Cluster) SendEmailNotifications()
- func (c *Cluster) ServerTime() time.Time
- func (c *Cluster) SetAlias(alias string)
- func (c *Cluster) SetUpdateInterval(val int)
- func (c *Cluster) ShowInUI() bool
- func (c *Cluster) Status() string
- func (c *Cluster) ThroughputSince(tm time.Time) map[string]map[string][]*common.SinglePointValue
- func (c *Cluster) UpdateInterval() int
- func (c *Cluster) UpdatePassword(user, currentPass, newPass string) error
- func (c *Cluster) User() *string
- func (c *Cluster) Users() []*as.UserRoles
- func (c *Cluster) ValidCurrentUser(user, password string) bool
- type DebugStatus
- type Namespace
- func (ns *Namespace) CheckAvailablePct(latestState common.Stats)
- func (ns *Namespace) CheckDiskPctHighWatermark(latestState common.Stats)
- func (ns *Namespace) CheckDiskPctStopWrites(latestState common.Stats)
- func (ns *Namespace) CheckMemoryPctHighWatermark(latestState common.Stats)
- func (ns *Namespace) CheckMemoryPctStopWrites(latestState common.Stats)
- func (ns *Namespace) ConfigAttrs(names ...string) common.Stats
- func (ns *Namespace) Disk() common.Stats
- func (ns *Namespace) DiskPercent() common.Stats
- func (ns *Namespace) IndexStats(name string) common.Stats
- func (ns *Namespace) InfoAttr(name string) string
- func (ns *Namespace) InfoAttrs(names ...string) common.Info
- func (ns *Namespace) Memory() common.Stats
- func (ns *Namespace) MemoryPercent() common.Stats
- func (ns *Namespace) ServerTime() time.Time
- func (ns *Namespace) SetConfig(config common.Info) ([]string, error)
- func (ns *Namespace) SetsInfo() map[string]common.Stats
- func (ns *Namespace) Stats() common.Stats
- func (ns *Namespace) StatsAttr(name string) interface{}
- func (ns *Namespace) StatsAttrs(names ...string) common.Stats
- type Node
- func (n *Node) Address() string
- func (n *Node) AlertsFrom(id int64) []*common.Alert
- func (n *Node) AnyAttrs(names ...string) common.Stats
- func (n *Node) Bins() common.Stats
- func (n *Node) Build() string
- func (n *Node) CheckClusterVisibility(latestState common.Stats)
- func (n *Node) CheckDiskSpace(latestState common.Stats)
- func (n *Node) CheckFileDescriptors(latestState common.Stats)
- func (n *Node) CheckMemory(latestState common.Stats)
- func (n *Node) CheckStatus(latestState common.Stats)
- func (n *Node) CheckTransactionQueue(latestState common.Stats)
- func (n *Node) ClusterName() string
- func (n *Node) ConfigAttr(name string) interface{}
- func (n *Node) ConfigAttrs(names ...string) common.Stats
- func (n *Node) DataCenters() map[string]common.Stats
- func (n *Node) Disk() common.Stats
- func (n *Node) Enterprise() bool
- func (n *Node) Host() string
- func (n *Node) ID() string
- func (n *Node) Indexes(namespace string) map[string]common.Info
- func (n *Node) InfoAttr(name string) string
- func (n *Node) InfoAttrFirstValidValueAmong(names ...string) string
- func (n *Node) InfoAttrs(names ...string) common.Info
- func (n *Node) Jobs() map[string]common.Stats
- func (n *Node) LatencySince(tms string) []map[string]common.Stats
- func (n *Node) LatencyUnits() string
- func (n *Node) LatestLatency() map[string]common.Stats
- func (n *Node) LatestThroughput() map[string]map[string]*common.SinglePointValue
- func (n *Node) Memory() common.Stats
- func (n *Node) MigrationStats() common.Info
- func (n *Node) NamespaceByName(ns string) *Namespace
- func (n *Node) NamespaceIndexes() map[string][]string
- func (n *Node) NamespaceList() []string
- func (n *Node) Namespaces() map[string]*Namespace
- func (n *Node) Port() uint16
- func (n *Node) RequestInfo(reties int, cmd ...string) (result map[string]string, err error)
- func (n *Node) ServerTime() time.Time
- func (n *Node) SetServerConfig(context string, config map[string]string) ([]string, error)
- func (n *Node) SetXDRConfig(name string, value interface{}) error
- func (n *Node) StatsAttr(name string) interface{}
- func (n *Node) StatsAttrs(names ...string) common.Stats
- func (n *Node) Status() NodeStatus
- func (n *Node) SwitchXDR(on bool) error
- func (n *Node) ThroughputSince(tm time.Time) map[string]map[string][]*common.SinglePointValue
- func (n *Node) UDFs() map[string]common.Stats
- func (n *Node) VisibilityStatus() NodeVisibilityStatus
- func (n *Node) XdrConfig() common.Stats
- func (n *Node) XdrEnabled() bool
- func (n *Node) XdrStats() common.Stats
- func (n *Node) XdrStatus() XDRStatus
- type NodeStatus
- type NodeVisibilityStatus
- type ObserverT
- func (o *ObserverT) AppendCluster(sessionID string, cluster *Cluster)
- func (o *ObserverT) AutoClusters() []*Cluster
- func (o *ObserverT) Clusters() []*Cluster
- func (o *ObserverT) Config() *common.Config
- func (o *ObserverT) DatacenterInfo(sessionID string) common.Stats
- func (o *ObserverT) DebugStatus() DebugStatus
- func (o *ObserverT) FindClusterByID(id string) *Cluster
- func (o *ObserverT) FindClusterBySeed(sid string, host *as.Host, user, password string) *Cluster
- func (o *ObserverT) MonitoringClusters(sessionID string) ([]*Cluster, bool)
- func (o *ObserverT) NodeHasBeenDiscovered(sessionID string, alias string) *Cluster
- func (o *ObserverT) Register(sessionID string, policy *as.ClientPolicy, alias string, hosts ...*as.Host) (*Cluster, error)
- func (o *ObserverT) RemoveCluster(sessionID string, cluster *Cluster) int
- func (o *ObserverT) SessionExists(sessionID string) bool
- func (o *ObserverT) StartDebug(initiator string, duration time.Duration) DebugStatus
- func (o *ObserverT) StopDebug() DebugStatus
- type Restore
- type XDRStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backup ¶
type Backup struct { *common.BackupRestore // contains filtered or unexported fields }
Backup type struct
type Cluster ¶
type Cluster struct {
// contains filtered or unexported fields
}
Cluster type struct
func (*Cluster) AddPrivileges ¶
AddPrivileges - grant privs to role
func (*Cluster) AlertsFrom ¶
AlertsFrom - get alerts by node id
func (*Cluster) Backup ¶
func (c *Cluster) Backup( Namespace string, DestinationAddress string, DestinationPath string, Username string, Password string, Sets string, MetadataOnly bool, TerminateOnChange bool, ModifiedBefore string, ModifiedAfter string, ScanPriority int) (*Backup, error)
Backup - backup cluster
func (*Cluster) BuildDetails ¶
BuildDetails - get build details for all nodes
func (*Cluster) ChangeUserPassword ¶
ChangeUserPassword - change user password
func (*Cluster) CreateIndex ¶
CreateIndex - create sindex
func (*Cluster) CreateRole ¶
CreateRole - create role
func (*Cluster) CreateUser ¶
CreateUser - create user
func (*Cluster) CurrentBackup ¶
CurrentBackup - get current backup settings
func (*Cluster) CurrentRestore ¶
CurrentRestore - get current resotre info
func (*Cluster) CurrentUserPrivileges ¶
CurrentUserPrivileges - get current user privs
func (*Cluster) DatacenterInfo ¶
DatacenterInfo - get XDR DC info
func (*Cluster) FindNodeByAddress ¶
FindNodeByAddress - get node by ip address
func (*Cluster) FindNodeByID ¶
FindNodeByID - get node by id
func (*Cluster) FindNodesByAddress ¶
FindNodesByAddress - get node(s) by ip address
func (*Cluster) GrantRoles ¶
GrantRoles - grant role to user
func (*Cluster) LatestThroughput ¶
func (c *Cluster) LatestThroughput() map[string]map[string]*common.SinglePointValue
LatestThroughput - get latest throughput for graph
func (*Cluster) NamespaceDeviceInfo ¶
NamespaceDeviceInfo - get namespace device info
func (*Cluster) NamespaceIndexInfo ¶
NamespaceIndexInfo - get namespace sindex info
func (*Cluster) NamespaceIndexes ¶
NamespaceIndexes - get namespace sindexes
func (*Cluster) NamespaceInfo ¶
NamespaceInfo - get namespace info
func (*Cluster) NamespaceInfoPerNode ¶
NamespaceInfoPerNode - get namespace info per node
func (*Cluster) NamespaceList ¶
NamespaceList - get namespace list
func (*Cluster) NamespaceSetsInfo ¶
NamespaceSetsInfo - get namespace sets info
func (*Cluster) NodeBuilds ¶
NodeBuilds - get builds of nodes
func (*Cluster) NodeCompatibility ¶
NodeCompatibility - get node compatibility
func (*Cluster) RandomActiveNode ¶
RandomActiveNode check if there is a node active
func (*Cluster) RedAlertCount ¶
RedAlertCount - count red alerts
func (*Cluster) RemoveNodeByAddress ¶
RemoveNodeByAddress - remove node by address from cluster struct
func (*Cluster) RemovePrivileges ¶
RemovePrivileges - revoke privs from role
func (*Cluster) RequestInfoAll ¶
RequestInfoAll - get all info attributes
func (*Cluster) Restore ¶
func (c *Cluster) Restore( Namespace string, DestinationAddress string, DestinationPath string, Username string, Password string, Threads int, MissingRecordsOnly bool, IgnoreGenerationNum bool) (*Restore, error)
Restore - restore
func (*Cluster) RevokeRoles ¶
RevokeRoles - revoke role to user
func (*Cluster) SameAs ¶
SameAs compares nodes between two clusters and returns true if the two clusters have at least one node in common.
func (*Cluster) SecurityEnabled ¶
SecurityEnabled - check if security enabled
func (*Cluster) SeedAddress ¶
SeedAddress - get see addresses
func (*Cluster) SendEmailNotifications ¶
func (c *Cluster) SendEmailNotifications()
SendEmailNotifications - send email notification for alert
func (*Cluster) SetUpdateInterval ¶
SetUpdateInterval - set update interval
func (*Cluster) ThroughputSince ¶
ThroughputSince - get throughput info since time
func (*Cluster) UpdateInterval ¶
UpdateInterval - get update interval for cluster
func (*Cluster) UpdatePassword ¶
UpdatePassword - update password
func (*Cluster) ValidCurrentUser ¶
ValidCurrentUser - check if current value is valid
type DebugStatus ¶
DebugStatus type struct
type Namespace ¶
type Namespace struct {
// contains filtered or unexported fields
}
Namespace type struct
func NewNamespace ¶
NewNamespace - create new namespace strunct
func (*Namespace) CheckAvailablePct ¶
CheckAvailablePct - check namespace available percents
func (*Namespace) CheckDiskPctHighWatermark ¶
CheckDiskPctHighWatermark - check disk high water mark
func (*Namespace) CheckDiskPctStopWrites ¶
CheckDiskPctStopWrites - check disk stop writes limit
func (*Namespace) CheckMemoryPctHighWatermark ¶
CheckMemoryPctHighWatermark - check memory high water mark
func (*Namespace) CheckMemoryPctStopWrites ¶
CheckMemoryPctStopWrites - check memory stop writes limit
func (*Namespace) ConfigAttrs ¶
ConfigAttrs - get config attribution
func (*Namespace) DiskPercent ¶
DiskPercent - get disk perecent stat struct
func (*Namespace) IndexStats ¶
IndexStats - get index stat
func (*Namespace) MemoryPercent ¶
MemoryPercent - get memory stat perecent struct
func (*Namespace) ServerTime ¶
ServerTime - return server time
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node type struct
func (*Node) AlertsFrom ¶
AlertsFrom - alert from node
func (*Node) CheckClusterVisibility ¶
CheckClusterVisibility - check if node available
func (*Node) CheckDiskSpace ¶
CheckDiskSpace - check available free disk
func (*Node) CheckFileDescriptors ¶
CheckFileDescriptors - check number of file descriptors
func (*Node) CheckMemory ¶
CheckMemory - check available memory
func (*Node) CheckStatus ¶
CheckStatus - check status of last state
func (*Node) CheckTransactionQueue ¶
CheckTransactionQueue - alert on transaction queue
func (*Node) ConfigAttr ¶
ConfigAttr - get config attribute
func (*Node) ConfigAttrs ¶
ConfigAttrs - get config attributes
func (*Node) DataCenters ¶
DataCenters - build DC list
func (*Node) InfoAttrFirstValidValueAmong ¶
InfoAttrFirstValidValueAmong - get attribute if not error value
func (*Node) LatencySince ¶
LatencySince - get latency since time
func (*Node) LatencyUnits ¶
LatencyUnits - get latency units (ms/us)
func (*Node) LatestLatency ¶
LatestLatency get latest latency
func (*Node) LatestThroughput ¶
func (n *Node) LatestThroughput() map[string]map[string]*common.SinglePointValue
LatestThroughput - get latest throughput for bucket
func (*Node) MigrationStats ¶
MigrationStats - get migration stats from node
func (*Node) NamespaceByName ¶
NamespaceByName get namespace id by name
func (*Node) NamespaceIndexes ¶
NamespaceIndexes - get sindex by namespace
func (*Node) NamespaceList ¶
NamespaceList - get list of namespaces in the node
func (*Node) Namespaces ¶
Namespaces - get namespace
func (*Node) RequestInfo ¶
RequestInfo get node info
func (*Node) SetServerConfig ¶
SetServerConfig - set server config for node
func (*Node) SetXDRConfig ¶
SetXDRConfig - set XDR configuration
func (*Node) StatsAttrs ¶
StatsAttrs - set stat attribute(s)
func (*Node) ThroughputSince ¶
ThroughputSince - get throughput since time for bucket
func (*Node) VisibilityStatus ¶
func (n *Node) VisibilityStatus() NodeVisibilityStatus
VisibilityStatus - check if node is active, enable/disable visibility
type ObserverT ¶
type ObserverT struct {
// contains filtered or unexported fields
}
ObserverT type struct
func (*ObserverT) AppendCluster ¶
AppendCluster add cluster for monitoring
func (*ObserverT) AutoClusters ¶
AutoClusters - Add automatic clusters which have been required to show up in the UI
func (*ObserverT) DatacenterInfo ¶
DatacenterInfo - Add auto clusters to the mix DO NOT add auto-clusters which are already included in the cluster.
func (*ObserverT) DebugStatus ¶
func (o *ObserverT) DebugStatus() DebugStatus
DebugStatus - check debug status
func (*ObserverT) FindClusterByID ¶
FindClusterByID - get cluster by id
func (*ObserverT) FindClusterBySeed ¶
FindClusterBySeed Checks for the cluster; If the cluster exists in the session, it won't check the user/pass since it has already been checked Otherwise, will search for the cluster in all the list and check user/pass in case the cluster exists
func (*ObserverT) MonitoringClusters ¶
MonitoringClusters - get list of monitored cluster by sessionID
func (*ObserverT) NodeHasBeenDiscovered ¶
NodeHasBeenDiscovered - check if a node has been discovered
func (*ObserverT) Register ¶
func (o *ObserverT) Register(sessionID string, policy *as.ClientPolicy, alias string, hosts ...*as.Host) (*Cluster, error)
Register - register cluster to observer
func (*ObserverT) RemoveCluster ¶
RemoveCluster - remove cluster from observer
func (*ObserverT) SessionExists ¶
SessionExists - check if session exist in observer
func (*ObserverT) StartDebug ¶
func (o *ObserverT) StartDebug(initiator string, duration time.Duration) DebugStatus
StartDebug - start debug