Documentation ¶
Index ¶
- Constants
- func NewSoapClient(config *viper.Viper) *soap.Client
- func StateColorToFloat(statecolor STATECOLOR) (float64, error)
- type CurrentSapInstance
- type EnqGetStatistic
- type EnqGetStatisticResponse
- type GetInstanceProperties
- type GetInstancePropertiesResponse
- type GetProcessList
- type GetProcessListResponse
- type GetQueueStatistic
- type GetQueueStatisticResponse
- type GetSystemInstanceList
- type GetSystemInstanceListResponse
- type InstanceProperty
- type OSProcess
- type SAPInstance
- type STATECOLOR
- type STATECOLOR_CODE
- type TaskHandlerQueue
- type WebService
Constants ¶
View Source
const ( STATECOLOR_GRAY STATECOLOR = "SAPControl-GRAY" STATECOLOR_GREEN STATECOLOR = "SAPControl-GREEN" STATECOLOR_YELLOW STATECOLOR = "SAPControl-YELLOW" STATECOLOR_RED STATECOLOR = "SAPControl-RED" STATECOLOR_CODE_GRAY STATECOLOR_CODE = 1 STATECOLOR_CODE_GREEN STATECOLOR_CODE = 2 STATECOLOR_CODE_YELLOW STATECOLOR_CODE = 3 STATECOLOR_CODE_RED STATECOLOR_CODE = 4 )
Variables ¶
This section is empty.
Functions ¶
func StateColorToFloat ¶
func StateColorToFloat(statecolor STATECOLOR) (float64, error)
makes the STATECOLOR values more metric friendly
Types ¶
type CurrentSapInstance ¶
this structure will be used for static labels, common to all the metrics
func (*CurrentSapInstance) String ¶
func (i *CurrentSapInstance) String() string
type EnqGetStatistic ¶
type EnqGetStatisticResponse ¶
type EnqGetStatisticResponse struct { XMLName xml.Name `xml:"urn:SAPControl EnqStatistic"` OwnerNow int32 `xml:"owner-now,omitempty" json:"owner-now,omitempty"` OwnerHigh int32 `xml:"owner-high,omitempty" json:"owner-high,omitempty"` OwnerMax int32 `xml:"owner-max,omitempty" json:"owner-max,omitempty"` OwnerState STATECOLOR `xml:"owner-state,omitempty" json:"owner-state,omitempty"` ArgumentsNow int32 `xml:"arguments-now,omitempty" json:"arguments-now,omitempty"` ArgumentsHigh int32 `xml:"arguments-high,omitempty" json:"arguments-high,omitempty"` ArgumentsMax int32 `xml:"arguments-max,omitempty" json:"arguments-max,omitempty"` ArgumentsState STATECOLOR `xml:"arguments-state,omitempty" json:"arguments-state,omitempty"` LocksNow int32 `xml:"locks-now,omitempty" json:"locks-now,omitempty"` LocksHigh int32 `xml:"locks-high,omitempty" json:"locks-high,omitempty"` LocksMax int32 `xml:"locks-max,omitempty" json:"locks-max,omitempty"` LocksState STATECOLOR `xml:"locks-state,omitempty" json:"locks-state,omitempty"` EnqueueRequests int64 `xml:"enqueue-requests,omitempty" json:"enqueue-requests,omitempty"` EnqueueRejects int64 `xml:"enqueue-rejects,omitempty" json:"enqueue-rejects,omitempty"` EnqueueErrors int64 `xml:"enqueue-errors,omitempty" json:"enqueue-errors,omitempty"` DequeueRequests int64 `xml:"dequeue-requests,omitempty" json:"dequeue-requests,omitempty"` DequeueErrors int64 `xml:"dequeue-errors,omitempty" json:"dequeue-errors,omitempty"` DequeueAllRequests int64 `xml:"dequeue-all-requests,omitempty" json:"dequeue-all-requests,omitempty"` CleanupRequests int64 `xml:"cleanup-requests,omitempty" json:"cleanup-requests,omitempty"` BackupRequests int64 `xml:"backup-requests,omitempty" json:"backup-requests,omitempty"` ReportingRequests int64 `xml:"reporting-requests,omitempty" json:"reporting-requests,omitempty"` CompressRequests int64 `xml:"compress-requests,omitempty" json:"compress-requests,omitempty"` VerifyRequests int64 `xml:"verify-requests,omitempty" json:"verify-requests,omitempty"` LockTime float64 `xml:"lock-time,omitempty" json:"lock-time,omitempty"` LockWaitTime float64 `xml:"lock-wait-time,omitempty" json:"lock-wait-time,omitempty"` ServerTime float64 `xml:"server-time,omitempty" json:"server-time,omitempty"` ReplicationState STATECOLOR `xml:"replication-state,omitempty" json:"replication-state,omitempty"` }
type GetInstanceProperties ¶
type GetInstancePropertiesResponse ¶
type GetInstancePropertiesResponse struct { XMLName xml.Name `xml:"urn:SAPControl GetInstancePropertiesResponse"` Properties []*InstanceProperty `xml:"properties>item,omitempty" json:"properties>item,omitempty"` }
type GetProcessList ¶
type GetProcessListResponse ¶
type GetQueueStatistic ¶
type GetQueueStatisticResponse ¶
type GetQueueStatisticResponse struct { XMLName xml.Name `xml:"urn:SAPControl GetQueueStatisticResponse"` Queues []*TaskHandlerQueue `xml:"queue>item,omitempty" json:"queue>item,omitempty"` }
type GetSystemInstanceList ¶
type GetSystemInstanceListResponse ¶
type GetSystemInstanceListResponse struct { XMLName xml.Name `xml:"urn:SAPControl GetSystemInstanceListResponse"` Instances []*SAPInstance `xml:"instance>item,omitempty" json:"instance>item,omitempty"` }
type InstanceProperty ¶
type OSProcess ¶
type OSProcess struct { Name string `xml:"name,omitempty" json:"name,omitempty"` Description string `xml:"description,omitempty" json:"description,omitempty"` Dispstatus STATECOLOR `xml:"dispstatus,omitempty" json:"dispstatus,omitempty"` Textstatus string `xml:"textstatus,omitempty" json:"textstatus,omitempty"` Starttime string `xml:"starttime,omitempty" json:"starttime,omitempty"` Elapsedtime string `xml:"elapsedtime,omitempty" json:"elapsedtime,omitempty"` Pid int32 `xml:"pid,omitempty" json:"pid,omitempty"` }
type SAPInstance ¶
type SAPInstance struct { Hostname string `xml:"hostname,omitempty" json:"hostname,omitempty"` InstanceNr int32 `xml:"instanceNr,omitempty" json:"instanceNr,omitempty"` HttpPort int32 `xml:"httpPort,omitempty" json:"httpPort,omitempty"` HttpsPort int32 `xml:"httpsPort,omitempty" json:"httpsPort,omitempty"` StartPriority string `xml:"startPriority,omitempty" json:"startPriority,omitempty"` Features string `xml:"features,omitempty" json:"features,omitempty"` Dispstatus STATECOLOR `xml:"dispstatus,omitempty" json:"dispstatus,omitempty"` }
type STATECOLOR ¶
type STATECOLOR string
type STATECOLOR_CODE ¶
type STATECOLOR_CODE int
type TaskHandlerQueue ¶
type TaskHandlerQueue struct { Type string `xml:"Typ,omitempty" json:"Typ,omitempty"` Now int32 `xml:"Now,omitempty" json:"Now,omitempty"` High int32 `xml:"High,omitempty" json:"High,omitempty"` Max int32 `xml:"Max,omitempty" json:"Max,omitempty"` Writes int32 `xml:"Writes,omitempty" json:"Writes,omitempty"` Reads int32 `xml:"Reads,omitempty" json:"Reads,omitempty"` }
type WebService ¶
type WebService interface { /* Returns a list of all processes directly started by the webservice according to the SAP start profile. */ GetProcessList() (*GetProcessListResponse, error) /* Returns enque statistic. */ EnqGetStatistic() (*EnqGetStatisticResponse, error) /* Returns a list of queue information of work processes and icm (similar to dpmon). */ GetQueueStatistic() (*GetQueueStatisticResponse, error) /* Returns a list of SAP instances of the SAP system. */ GetSystemInstanceList() (*GetSystemInstanceListResponse, error) /* Returns a list of available instance features and information how to get it. */ GetInstanceProperties() (*GetInstancePropertiesResponse, error) /* Custom method to get the current instance data. This is not something natively exposed by the webservice. */ GetCurrentInstance() (*CurrentSapInstance, error) }
the main interface exposed by this package
func NewWebService ¶
func NewWebService(client *soap.Client) WebService
constructor of a WebService interface
Click to show internal directories.
Click to hide internal directories.