Documentation ¶
Overview ¶
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type AllocationDAOInfo
- type ApplicationDAOInfo
- type ApplicationHistoryDAOInfo
- type ApplicationsDAOInfo
- type ClusterDAOInfo
- type ClusterUtilDAOInfo
- type ClustersUtilDAOInfo
- type ContainerHistoryDAOInfo
- type HealthCheckInfo
- type NodeDAOInfo
- type NodeInfo
- type NodeSortingPolicy
- type NodeUtilDAOInfo
- type NodesDAOInfo
- type NodesUtilDAOInfo
- type PartitionCapacity
- type PartitionDAOInfo
- type PartitionInfo
- type PartitionQueueDAOInfo
- type PlaceholderDAOInfo
- type QueueCapacity
- type QueueDAOInfo
- type SchedulerHealthDAOInfo
- type StateDAOInfo
- type TemplateInfo
- type ValidateConfResponse
- type YAPIError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocationDAOInfo ¶
type AllocationDAOInfo struct { AllocationKey string `json:"allocationKey"` AllocationTags map[string]string `json:"allocationTags"` RequestTime int64 `json:"requestTime"` // Allocation ask's createTime if PlaceholderUsed is false, otherwise equivalent to placeholder allocation's createTime AllocationTime int64 `json:"allocationTime"` // Allocation's createTime AllocationDelay int64 `json:"allocationDelay"` // Difference between AllocationTime and RequestTime UUID string `json:"uuid"` ResourcePerAlloc map[string]int64 `json:"resource"` Priority string `json:"priority"` QueueName string `json:"queueName"` NodeID string `json:"nodeId"` ApplicationID string `json:"applicationId"` Partition string `json:"partition"` Placeholder bool `json:"placeholder"` PlaceholderUsed bool `json:"placeholderUsed"` TaskGroupName string `json:"taskGroupName"` }
type ApplicationDAOInfo ¶
type ApplicationDAOInfo struct { ApplicationID string `json:"applicationID"` UsedResource map[string]int64 `json:"usedResource"` MaxUsedResource map[string]int64 `json:"maxUsedResource"` Partition string `json:"partition"` QueueName string `json:"queueName"` SubmissionTime int64 `json:"submissionTime"` FinishedTime *int64 `json:"finishedTime"` Allocations []AllocationDAOInfo `json:"allocations"` State string `json:"applicationState"` User string `json:"user"` RejectedMessage string `json:"rejectedMessage"` StateLog []StateDAOInfo `json:"stateLog"` PlaceholderData []PlaceholderDAOInfo `json:"placeholderData"` }
type ApplicationsDAOInfo ¶
type ApplicationsDAOInfo struct {
Applications []ApplicationDAOInfo `json:"applications"`
}
type ClusterDAOInfo ¶
type ClusterDAOInfo struct { StartTime int64 `json:"startTime"` RMBuildInformation []map[string]string `json:"rmBuildInformation"` PartitionName string `json:"partition"` ClusterName string `json:"clusterName"` TotalApplications string `json:"totalApplications"` FailedApplications string `json:"failedApplications"` PendingApplications string `json:"pendingApplications"` RunningApplications string `json:"runningApplications"` CompletedApplications string `json:"completedApplications"` TotalContainers string `json:"totalContainers"` FailedContainers string `json:"failedContainers"` PendingContainers string `json:"pendingContainers"` RunningContainers string `json:"runningContainers"` ActiveNodes string `json:"activeNodes"` TotalNodes string `json:"totalNodes"` FailedNodes string `json:"failedNodes"` }
type ClusterUtilDAOInfo ¶
type ClustersUtilDAOInfo ¶
type ClustersUtilDAOInfo struct { PartitionName string `json:"partition"` ClustersUtil []*ClusterUtilDAOInfo `json:"utilization"` }
type ContainerHistoryDAOInfo ¶
type HealthCheckInfo ¶
type NodeDAOInfo ¶
type NodeDAOInfo struct { NodeID string `json:"nodeID"` HostName string `json:"hostName"` RackName string `json:"rackName"` Capacity map[string]int64 `json:"capacity"` Allocated map[string]int64 `json:"allocated"` Occupied map[string]int64 `json:"occupied"` Available map[string]int64 `json:"available"` Utilized map[string]int64 `json:"utilized"` Allocations []*AllocationDAOInfo `json:"allocations"` Schedulable bool `json:"schedulable"` }
type NodeSortingPolicy ¶
type NodeUtilDAOInfo ¶
type NodesDAOInfo ¶
type NodesDAOInfo struct { PartitionName string `json:"partitionName"` Nodes []*NodeDAOInfo `json:"nodesInfo"` }
type NodesUtilDAOInfo ¶
type NodesUtilDAOInfo struct { ResourceType string `json:"type"` NodesUtil []*NodeUtilDAOInfo `json:"utilization"` }
type PartitionCapacity ¶
type PartitionDAOInfo ¶
type PartitionDAOInfo struct { PartitionName string `json:"partitionName"` Capacity PartitionCapacity `json:"capacity"` Nodes []NodeInfo `json:"nodes"` Queues QueueDAOInfo `json:"queues"` }
type PartitionInfo ¶
type PartitionInfo struct { ClusterID string `json:"clusterId"` Name string `json:"name"` Capacity PartitionCapacity `json:"capacity"` NodeSortingPolicy NodeSortingPolicy `json:"nodeSortingPolicy"` Applications map[string]int `json:"applications"` State string `json:"state"` LastStateTransitionTime int64 `json:"lastStateTransitionTime"` }
type PartitionQueueDAOInfo ¶
type PartitionQueueDAOInfo struct { QueueName string `json:"queuename"` Status string `json:"status"` Partition string `json:"partition"` MaxResource map[string]int64 `json:"maxResource"` GuaranteedResource map[string]int64 `json:"guaranteedResource"` AllocatedResource map[string]int64 `json:"allocatedResource"` IsLeaf bool `json:"isLeaf"` IsManaged bool `json:"isManaged"` Properties map[string]string `json:"properties"` Parent string `json:"parent"` TemplateInfo *TemplateInfo `json:"template"` Children []PartitionQueueDAOInfo `json:"children"` AbsUsedCapacity map[string]int64 `json:"absUsedCapacity"` }
type PlaceholderDAOInfo ¶
type QueueCapacity ¶
type QueueDAOInfo ¶
type QueueDAOInfo struct { QueueName string `json:"queuename"` Status string `json:"status"` Capacities QueueCapacity `json:"capacities"` ChildQueues []QueueDAOInfo `json:"queues"` Properties map[string]string `json:"properties"` }
type SchedulerHealthDAOInfo ¶
type SchedulerHealthDAOInfo struct { Healthy bool HealthChecks []HealthCheckInfo }
func (*SchedulerHealthDAOInfo) AddHealthCheckInfo ¶
func (s *SchedulerHealthDAOInfo) AddHealthCheckInfo(succeeded bool, name, description, diagnosis string)
func (*SchedulerHealthDAOInfo) SetHealthStatus ¶
func (s *SchedulerHealthDAOInfo) SetHealthStatus()