Documentation ¶
Index ¶
- type AzureCloudData
- type Check
- type CheckList
- type ChecksResult
- type Cluster
- type ClusterResource
- type HANAClusterDetails
- type HANAClusterNode
- type HealthState
- type Host
- type HostHeartbeat
- type HostTelemetry
- type SAPSystemInstance
- type SAPSystemInstances
- type SBDDevice
- type Settings
- type SlesSubscription
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureCloudData ¶
type AzureCloudData struct { VMName string `json:"vmname"` ResourceGroup string `json:"resource_group"` Location string `json:"location"` VMSize string `json:"vmsize"` DataDisksNumber int `json:"data_disks_number"` Offer string `json:"offer"` SKU string `json:"sku"` AdminUsername string `json:"admin_username"` }
type ChecksResult ¶
func (*ChecksResult) ToModel ¶
func (c *ChecksResult) ToModel() (*models.ChecksResult, error)
type Cluster ¶
type Cluster struct { ID string `gorm:"primaryKey"` Name string ClusterType string SID string `gorm:"column:sid"` ResourcesNumber int HostsNumber int Health *HealthState `gorm:"foreignkey:id"` Tags []*models.Tag `gorm:"polymorphic:Resource;polymorphicValue:clusters"` UpdatedAt time.Time Hosts []*Host `gorm:"foreignkey:cluster_id"` Details datatypes.JSON `json:"payload" binding:"required"` }
type ClusterResource ¶
type ClusterResource struct { ID string `json:"id"` Type string `json:"type"` Role string `json:"role"` Status string `json:"status"` FailCount int `json:"fail_count"` }
func (*ClusterResource) ToModel ¶
func (r *ClusterResource) ToModel() *models.ClusterResource
type HANAClusterDetails ¶
type HANAClusterDetails struct { SystemReplicationMode string `json:"system_replication_mode"` SystemReplicationOperationMode string `json:"system_replication_operation_mode"` SecondarySyncState string `json:"secondary_sync_state"` SRHealthState string `json:"sr_health_state"` CIBLastWritten time.Time `json:"cib_last_written"` FencingType string `json:"fencing_type"` StoppedResources []*ClusterResource `json:"stopped_resources"` Nodes []*HANAClusterNode `json:"nodes"` SBDDevices []*SBDDevice `json:"sbd_devices"` }
func (*HANAClusterDetails) ToModel ¶
func (h *HANAClusterDetails) ToModel() *models.HANAClusterDetails
type HANAClusterNode ¶
type HANAClusterNode struct { Name string `json:"name"` Site string `json:"site"` Attributes map[string]string `json:"attributes"` Resources []*ClusterResource `json:"resources"` VirtualIPs []string `json:"virtual_ips"` HANAStatus string `json:"hana_status"` }
func (*HANAClusterNode) ToModel ¶
func (n *HANAClusterNode) ToModel() *models.HANAClusterNode
type HealthState ¶
type Host ¶
type Host struct { AgentID string `gorm:"primaryKey"` SSHAddress string Name string IPAddresses pq.StringArray `gorm:"type:text[]"` CloudProvider string ClusterID string ClusterName string ClusterType string SAPSystemInstances SAPSystemInstances `gorm:"foreignkey:AgentID"` AgentVersion string Heartbeat *HostHeartbeat `gorm:"foreignKey:AgentID"` Subscription *SlesSubscription `gorm:"foreignKey:AgentID"` Tags []*models.Tag `gorm:"polymorphic:Resource;polymorphicValue:hosts"` UpdatedAt time.Time CloudData datatypes.JSON }
type HostHeartbeat ¶
type HostTelemetry ¶
type HostTelemetry struct { AgentID string `gorm:"column:agent_id; primaryKey"` HostName string `gorm:"column:host_name"` SLESVersion string `gorm:"column:sles_version"` CPUCount int `gorm:"column:cpu_count"` SocketCount int `gorm:"column:socket_count"` TotalMemoryMB int `gorm:"column:total_memory_mb"` CloudProvider string `gorm:"column:cloud_provider"` UpdatedAt time.Time `gorm:"column:updated_at"` }
func (HostTelemetry) TableName ¶
func (HostTelemetry) TableName() string
type SAPSystemInstance ¶
type SAPSystemInstance struct { ID string `gorm:"primaryKey"` AgentID string `gorm:"primaryKey"` Type string SID string `gorm:"column:sid"` InstanceNumber string `gorm:"primaryKey"` Features string Description string StartPriority string Status string SAPHostname string HttpPort int HttpsPort int SystemReplication string SystemReplicationStatus string DBHost string DBName string DBAddress string Tenants pq.StringArray `gorm:"type:text[]"` Host *Host `gorm:"foreignKey:AgentID"` UpdatedAt time.Time Tags []*models.Tag `gorm:"foreignKey:ResourceID"` }
type SAPSystemInstances ¶
type SAPSystemInstances []*SAPSystemInstance
func (SAPSystemInstances) ToModel ¶
func (s SAPSystemInstances) ToModel() []*models.SAPSystem
type SlesSubscription ¶
type SlesSubscription struct { AgentID string `gorm:"primaryKey"` ID string `gorm:"primaryKey"` Version string Type string Arch string Status string StartsAt string ExpiresAt string SubscriptionStatus string }
func (*SlesSubscription) ToModel ¶
func (s *SlesSubscription) ToModel() *models.SlesSubscription
Click to show internal directories.
Click to hide internal directories.