package
0.0.0-20241206140335-11ca37547f78
Repository: https://github.com/googlecloudplatform/sql-server-agent.git
Documentation: pkg.go.dev

# Packages

Package activation contains functionalities for activating sql server client.
Package agentstatus provides functions that log SQL Server Agent status.
Package configuration contains functionalities for agent configuration operations.
Package daemon uses kardianos service to make the app run as service / daemon on windows / linux.
Package flags defines the flags in the command line.
No description provided by the author
Package instanceinfo provides functionality for interfacing with the compute API.
Package remote ssh'es into remote machines and runs a command.
Package secretmanager is the wrapper of google cloud secretmanager api.
Package sqlcollector contains modules that collects rules from Sql server.
Package sqlservermetrics run SQL and OS collections and sends metrics to workload manager.
Package wlm contains types and functions to interact with WorkloadManager cloud APIs.

# Functions

CommandLineExecutorWrapper executes a windows or linux command with arguments given.
GetPhysicalDriveFromPath gets the physical drive associated with a file path for linux and windows env.
HandleNilBool converts generic bool to desired string output, or returns 'unknown' if desired type if nil.
HandleNilFloat64 converts generic float64 to desired string output, or returns 'unknown' if desired type if nil.
HandleNilInt converts generic int64 to desired string output, or returns 'unknown' if desired type if nil.
HandleNilString converts generic string to the desired string output, or returns 'unknown' if desired type if nil.
PrettyStruct converts the passed in struct into a pretty json format.
SaveToFile saves data to given path.

# Constants

AgentUsageLogPrefix .
AgentVersion is the version of the agent.
DataDiskAllocationUnitsRule used to see blocksize of a physical drive.
ExperimentalMode .
GCBDRAgentRunning used for checking if GCBDRAgentRunning is running on the target.
LocalSSD - local disk.
LocalSSDRule used to connect physical drive to disk type.
LogicalDiskToPartition info used for windows os collection.
Other - not local or persistent disk but still a valid disk type.
PersistentSSD - persistent disk.
PhysicalDiskToType info used for windows os collection.
PowerProfileSettingRule used for power profile of machine.
ServiceName .

# Variables

MasterRules defines the rules the agent will collect from sql server.

# Structs

Details represents collected details results.
MasterRuleStruct defines the data struct of sql server master rules.

# Type aliases

DiskTypeEnum enum used for disktypes to keep linux and windows collection consistent .