Documentation
¶
Index ¶
- func GetSystemReport(client newclient.Client) (io.ReadCloser, error)
- type DocumentCounts
- type GlobalDocumentCounts
- type InfrastructureDocumentCounts
- type LibraryDocumentCounts
- type LogEntry
- type LogsQuery
- type ProjectDocumentCounts
- type ServerHealthStatus
- type ServerStatus
- type ServerStatusService
- type SystemInfo
- type Timezone
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSystemReport ¶ added in v2.116.0
func GetSystemReport(client newclient.Client) (io.ReadCloser, error)
GetSystemReport returns the server's diagnostic report, a zip archive. The caller is responsible for closing the returned reader. Requires the AdministerSystem permission.
Types ¶
type DocumentCounts ¶ added in v2.116.0
type DocumentCounts struct {
Global GlobalDocumentCounts `json:"Global"`
Infrastructure InfrastructureDocumentCounts `json:"Infrastructure"`
Library LibraryDocumentCounts `json:"Library"`
Project ProjectDocumentCounts `json:"Project"`
}
func GetDocumentCounts ¶ added in v2.116.0
func GetDocumentCounts(client newclient.Client) (*DocumentCounts, error)
GetDocumentCounts returns the number of documents held by the server, grouped by area.
type GlobalDocumentCounts ¶ added in v2.116.0
type InfrastructureDocumentCounts ¶ added in v2.116.0
type LibraryDocumentCounts ¶ added in v2.116.0
type LogEntry ¶ added in v2.116.0
type LogsQuery ¶ added in v2.116.0
type LogsQuery struct {
IncludeDetail bool `uri:"includeDetail,omitempty" url:"includeDetail,omitempty"`
Skip int `uri:"skip,omitempty" url:"skip,omitempty"`
Take int `uri:"take,omitempty" url:"take,omitempty"`
}
LogsQuery represents parameters to query the recent server logs.
type ProjectDocumentCounts ¶ added in v2.116.0
type ServerHealthStatus ¶ added in v2.116.0
type ServerHealthStatus struct {
Description string `json:"Description,omitempty"`
IsCompliantWithLicense bool `json:"IsCompliantWithLicense"`
IsEntireClusterDrainingTasks bool `json:"IsEntireClusterDrainingTasks"`
IsEntireClusterReadOnly bool `json:"IsEntireClusterReadOnly"`
IsOperatingNormally bool `json:"IsOperatingNormally"`
resources.Resource
}
func GetHealthStatus ¶ added in v2.116.0
func GetHealthStatus(client newclient.Client) (*ServerHealthStatus, error)
GetHealthStatus returns the health of the server cluster.
type ServerStatus ¶
type ServerStatus struct {
IsDatabaseEncrypted bool `json:"IsDatabaseEncrypted"`
IsMajorMinorUpgrade bool `json:"IsMajorMinorUpgrade"`
IsInMaintenanceMode bool `json:"IsInMaintenanceMode"`
IsPotentialClone bool `json:"IsPotentialClone"`
IsUpgradeAvailable bool `json:"IsUpgradeAvailable"`
MaintenanceExpires string `json:"MaintenanceExpires,omitempty"`
MaximumAvailableVersion string `json:"MaximumAvailableVersion,omitempty"`
MaximumAvailableVersionCoveredByLicense string `json:"MaximumAvailableVersionCoveredByLicense,omitempty"`
resources.Resource
}
func GetServerStatus ¶ added in v2.116.0
func GetServerStatus(client newclient.Client) (*ServerStatus, error)
GetServerStatus returns the status of the server.
type ServerStatusService ¶
func NewServerStatusService ¶
func (*ServerStatusService) Get ¶
func (s *ServerStatusService) Get() (*ServerStatus, error)
Get returns the status of the server.
type SystemInfo ¶ added in v2.116.0
type SystemInfo struct {
ClrVersion string `json:"ClrVersion,omitempty"`
MinThreadPoolCount int `json:"MinThreadPoolCount"`
OSVersion string `json:"OSVersion,omitempty"`
ThreadCount int `json:"ThreadCount"`
// Uptime is a .NET time span, "[d.]hh:mm:ss[.fffffff]", as sent by the server.
Uptime string `json:"Uptime,omitempty"`
Version string `json:"Version,omitempty"`
WorkingSetBytes int64 `json:"WorkingSetBytes"`
resources.Resource
}
func GetSystemInfo ¶ added in v2.116.0
func GetSystemInfo(client newclient.Client) (*SystemInfo, error)
GetSystemInfo returns diagnostic information about the running server. Requires the AdministerSystem permission.
Click to show internal directories.
Click to hide internal directories.