model

package
v0.0.0-...-c7180f5 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: GPL-3.0, GPL-3.0-or-later Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addm

type Addm struct {
	Finding        string
	Recommendation string
	Action         string
	Benefit        string
}

type Backup

type Backup struct {
	BackupType string
	Hour       string
	WeekDays   string
	AvgBckSize string
	Retention  string
}

type ClusterInfo

type ClusterInfo struct {
	Name    string
	CPU     int
	Sockets int
	VMs     []VMInfo
}

ClusterInfo hold informations about the cluster

type Database

type Database struct {
	InstanceNumber  string
	Name            string
	UniqueName      string
	Status          string
	Version         string
	Platform        string
	Archivelog      string
	Charset         string
	NCharset        string
	BlockSize       string
	CPUCount        string
	SGATarget       string
	PGATarget       string
	MemoryTarget    string
	SGAMaxSize      string
	SegmentsSize    string
	Used            string
	Allocated       string
	Elapsed         string
	DBTime          string
	Work            string
	ASM             bool
	Dataguard       bool
	Patches         []Patch
	Tablespaces     []Tablespace
	Schemas         []Schema
	Features        []Feature
	Licenses        []License
	ADDMs           []Addm
	SegmentAdvisors []SegmentAdvisor
	LastPSUs        []PSU
	Backups         []Backup
}

Database holds information about the database.

type ExtraInfo

type ExtraInfo struct {
	Databases   []Database
	Filesystems []Filesystem
	Clusters    []ClusterInfo
}

ExtraInfo holds information about database, licenses and filesystem.

type Feature

type Feature struct {
	Name   string
	Status bool
}

Feature holds information about Oracle database feature

type Filesystem

type Filesystem struct {
	Filesystem string
	FsType     string
	Size       string
	Used       string
	Available  string
	UsedPerc   string
	MountedOn  string
}

Filesystem holds information about mounted filesystems and used space

type Host

type Host struct {
	Hostname       string
	Environment    string
	Location       string
	CPUModel       string
	CPUCores       int
	CPUThreads     int
	Socket         int
	Type           string
	Virtual        bool
	Kernel         string
	OS             string
	MemoryTotal    int
	SwapTotal      int
	OracleCluster  bool
	VeritasCluster bool
	SunCluster     bool
}

Host contains info about the server

type HostData

type HostData struct {
	Hostname      string
	Environment   string
	Location      string
	HostType      string
	Version       string
	ServerVersion string
	Databases     string
	Schemas       string
	Info          Host
	Extra         ExtraInfo
	Archived      bool
	CreatedAt     time.Time
}

HostData holds the whole information that will be sent to the server.

type License

type License struct {
	Name  string
	Count float32
}

License holds information about Oracle database license

type PSU

type PSU struct {
	Date        string
	Description string
}

type Patch

type Patch struct {
	Database    string
	Version     string
	PatchID     string
	Action      string
	Description string
	Date        string
}

Patch holds information about a Oracle patch

type Schema

type Schema struct {
	Database string
	User     string
	Total    int
	Tables   int
	Indexes  int
	LOB      int
}

Schema holds information about Oracle database schema.

type SegmentAdvisor

type SegmentAdvisor struct {
	SegmentOwner   string
	SegmentName    string
	SegmentType    string
	PartitionName  string
	Reclaimable    string
	Recommendation string
}

type Tablespace

type Tablespace struct {
	Database string
	Name     string
	MaxSize  string
	Total    string
	Used     string
	UsedPerc string
	Status   string
}

Tablespace holds the whole information about host and database.

type VMInfo

type VMInfo struct {
	Name        string
	ClusterName string
	Hostname    string //Hostname or IP address
	CappedCPU   int
}

VMInfo holds info about the vm

Jump to

Keyboard shortcuts

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