models

package
v1.71.2 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package models contain request and response structures used for the SAPControl Web Service Interface

Package models contain request and response structures used for the SAPControl Web Service Interface

Index

Constants

View Source
const (
	StateColorGray       StateColor     = "SAPControl-GRAY"
	StateColorGreen      StateColor     = "SAPControl-GREEN"
	StateColorYellow     StateColor     = "SAPControl-YELLOW"
	StateColorRed        StateColor     = "SAPControl-RED"
	StateColorCodeGray   StateColorCode = 1
	StateColorCodeGreen  StateColorCode = 2
	StateColorCodeYellow StateColorCode = 3
	StateColorCodeRed    StateColorCode = 4
)

StateColor constant values

Variables

This section is empty.

Functions

This section is empty.

Types

type ABAPGetSystemWPTable

type ABAPGetSystemWPTable struct {
	XMLName    xml.Name `xml:"urn:SAPControl ABAPGetSystemWPTable"`
	Activeonly bool     `xml:"activeonly" json:"activeonly"`
}

ABAPGetSystemWPTable is an xml request struct used to return a response struct

type ABAPGetSystemWPTableResponse

type ABAPGetSystemWPTableResponse struct {
	XMLName     xml.Name                  `xml:"urn:SAPControl ABAPGetSystemWPTableResponse"`
	Workprocess *ArrayOfSystemWorkProcess `xml:"workprocess" json:"workprocess"`
}

ABAPGetSystemWPTableResponse is an xml response struct

type AlertNode

type AlertNode struct {
	Name        string     `xml:"name" json:"name"`
	ActualValue StateColor `xml:"ActualValue" json:"ActualValue"`
	Description string     `xml:"description" json:"description"`
}

AlertNode is an xml response struct

type ArrayOfOSProcess

type ArrayOfOSProcess struct {
	Item []*OSProcess `xml:"item" json:"item"`
}

ArrayOfOSProcess is an xml response struct

type ArrayOfSAPInstance

type ArrayOfSAPInstance struct {
	Item []*SAPInstance `xml:"item" json:"item"`
}

ArrayOfSAPInstance is an xml response struct

type ArrayOfSystemWorkProcess

type ArrayOfSystemWorkProcess struct {
	Item []*SystemWorkProcess `xml:"item" json:"item"`
}

ArrayOfSystemWorkProcess is an xml response struct

type ArrayOfTaskHandlerQueue

type ArrayOfTaskHandlerQueue struct {
	Item []*TaskHandlerQueue `xml:"item" json:"item"`
}

ArrayOfTaskHandlerQueue is an xml response struct

type CurrentSapInstance

type CurrentSapInstance struct {
	SID      string
	Number   int32
	Name     string
	Hostname string
}

CurrentSapInstance is a struct to hold the instance xml instant property response values

type EnqGetStatistic

type EnqGetStatistic struct {
	XMLName xml.Name `xml:"urn:SAPControl EnqGetStatistic"`
}

EnqGetStatistic is an xml request struct used to return a response struct

type EnqGetStatisticResponse

type EnqGetStatisticResponse struct {
	XMLName       xml.Name `xml:"urn:SAPControl EnqStatistic"`
	LocksNow      *int32   `xml:"locks-now" json:"locks-now"`
	LocksHigh     *int32   `xml:"locks-high" json:"locks-high"`
	LocksMax      *int32   `xml:"locks-max" json:"locks-max"`
	EnqueueErrors *int64   `xml:"enqueue-errors" json:"enqueue-errors"`
	DequeueErrors *int64   `xml:"dequeue-errors" json:"dequeue-errors"`
	LockTime      *float64 `xml:"lock-time" json:"lock-time"`
	LockWaitTime  *float64 `xml:"lock-wait-time" json:"lock-wait-time"`
}

EnqGetStatisticResponse is an xml response struct

type GetAlertTree

type GetAlertTree struct {
	XMLName xml.Name `xml:"urn:SAPControl GetAlertTree"`
}

GetAlertTree is an xml request struct used to return a response struct

type GetAlertTreeResponse

type GetAlertTreeResponse struct {
	XMLName   xml.Name     `xml:"urn:SAPControl GetAlertTreeResponse"`
	AlertNode []*AlertNode `xml:"tree>item" json:"tree>item"`
}

GetAlertTreeResponse is an xml response struct

type GetInstanceProperties

type GetInstanceProperties struct {
	XMLName xml.Name `xml:"urn:SAPControl GetInstanceProperties"`
}

GetInstanceProperties is an xml request struct used to return a response struct

type GetInstancePropertiesResponse

type GetInstancePropertiesResponse struct {
	XMLName    xml.Name            `xml:"urn:SAPControl GetInstancePropertiesResponse"`
	Properties []*InstanceProperty `xml:"properties>item" json:"properties>item"`
}

GetInstancePropertiesResponse is an xml response struct

type GetProcessList

type GetProcessList struct {
	XMLName xml.Name `xml:"urn:SAPControl GetProcessList"`
}

GetProcessList is an xml request struct used to return a response struct

type GetProcessListResponse

type GetProcessListResponse struct {
	XMLName xml.Name          `xml:"urn:SAPControl GetProcessListResponse"`
	Process *ArrayOfOSProcess `xml:"process" json:"process"`
}

GetProcessListResponse is an xml response struct

type GetQueueStatistic

type GetQueueStatistic struct {
	XMLName xml.Name `xml:"urn:SAPControl GetQueueStatistic"`
}

GetQueueStatistic is an xml request struct used to return a response struct

type GetQueueStatisticResponse

type GetQueueStatisticResponse struct {
	XMLName xml.Name                 `xml:"urn:SAPControl GetQueueStatisticResponse"`
	Queue   *ArrayOfTaskHandlerQueue `xml:"queue" json:"queue"`
}

GetQueueStatisticResponse is an xml response struct

type GetSystemInstanceList

type GetSystemInstanceList struct {
	XMLName xml.Name `xml:"urn:SAPControl GetSystemInstanceList"`
	Timeout int32    `xml:"timeout" json:"timeout"`
}

GetSystemInstanceList is an xml request struct used to return a response struct

type GetSystemInstanceListResponse

type GetSystemInstanceListResponse struct {
	XMLName  xml.Name            `xml:"urn:SAPControl GetSystemInstanceListResponse"`
	Instance *ArrayOfSAPInstance `xml:"instance" json:"instance"`
}

GetSystemInstanceListResponse is an xml response struct

type InstanceProperty

type InstanceProperty struct {
	Property string `xml:"property" json:"property"`
	Value    string `xml:"value" json:"value"`
}

InstanceProperty is an xml response struct

type OSProcess

type OSProcess struct {
	Name        string      `xml:"name" json:"name"`
	Description string      `xml:"description" json:"description"`
	Dispstatus  *StateColor `xml:"dispstatus" json:"dispstatus"`
	Textstatus  string      `xml:"textstatus" json:"textstatus"`
	Starttime   string      `xml:"starttime" json:"starttime"`
	Elapsedtime string      `xml:"elapsedtime" json:"elapsedtime"`
	Pid         int32       `xml:"pid" json:"pid"`
}

OSProcess is an xml response struct

type SAPInstance

type SAPInstance struct {
	Hostname      string     `xml:"hostname" json:"hostname"`
	InstanceNr    int32      `xml:"instanceNr" json:"instanceNr"`
	StartPriority string     `xml:"startPriority" json:"startPriority"`
	Features      string     `xml:"features" json:"features"`
	Dispstatus    StateColor `xml:"dispstatus" json:"dispstatus"`
}

SAPInstance is an xml response struct

type StateColor

type StateColor string

StateColor holds the string state color value

type StateColorCode

type StateColorCode int

StateColorCode holds the numerical state color value

type SystemWorkProcess

type SystemWorkProcess struct {
	Instance string `xml:"Instance" json:"Instance"`
	No       int32  `xml:"No" json:"No"`
	Typ      string `xml:"Typ" json:"Typ"`
	Pid      int32  `xml:"Pid" json:"Pid"`
	Status   string `xml:"Status" json:"Status"`
	Reason   string `xml:"Reason" json:"Reason"`
	Start    string `xml:"Start" json:"Start"`
	Err      string `xml:"Err" json:"Err"`
	Sem      string `xml:"Sem" json:"Sem"`
	CPU      string `xml:"Cpu" json:"Cpu"`
	Time     string `xml:"Time" json:"Time"`
	Program  string `xml:"Program" json:"Program"`
	Client   string `xml:"Client" json:"Client"`
	User     string `xml:"User" json:"User"`
	Action   string `xml:"Action" json:"Action"`
	Table    string `xml:"Table" json:"Table"`
}

SystemWorkProcess is an xml response struct

type TaskHandlerQueue

type TaskHandlerQueue struct {
	Typ  string `xml:"Typ" json:"Typ"`
	Now  int32  `xml:"Now" json:"Now"`
	High int32  `xml:"High" json:"High"`
	Max  int32  `xml:"Max" json:"Max"`
}

TaskHandlerQueue is an xml response struct

Jump to

Keyboard shortcuts

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