Documentation
¶
Index ¶
- type Bwc
- type CapacityStatistics
- type Client
- type DeviceStatistic
- type FaultSetStatistics
- type Instances
- type MockScaleIOAPIServer
- type ProtectionDomainStatistics
- type RFCacheDeviceStatistics
- type Sdc
- type SdcStatistics
- type SdsStatistics
- type SelectedObject
- type SelectedStatistics
- type SelectedStatisticsQuery
- type StoragePool
- type StoragePoolStatistics
- type SystemStatistics
- type VTreeStatistics
- type Version
- type VolumeStatistics
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CapacityStatistics ¶
type CapacityStatistics struct { CapacityAvailableForVolumeAllocationInKb int64 MaxCapacityInKb int64 CapacityLimitInKb int64 ProtectedCapacityInKb int64 DegradedFailedCapacityInKb int64 DegradedHealthyCapacityInKb int64 SpareCapacityInKb int64 FailedCapacityInKb int64 UnreachableUnusedCapacityInKb int64 InMaintenanceCapacityInKb int64 ThinCapacityAllocatedInKb int64 ThinCapacityInUseInKb int64 ThickCapacityInUseInKb int64 SnapCapacityInUseOccupiedInKb int64 CapacityInUseInKb int64 }
CapacityStatistics is System/StoragePool capacity statistics.
type Client ¶
Client represents ScaleIO client.
func (*Client) APIVersion ¶
APIVersion returns FxFlex Gateway API version.
func (*Client) Login ¶
Login connects to FxFlex Gateway to get the token that is used for later authentication for other requests.
func (*Client) SelectedStatistics ¶
func (c *Client) SelectedStatistics(query SelectedStatisticsQuery) (SelectedStatistics, error)
SelectedStatistics returns selected statistics.
type DeviceStatistic ¶
type DeviceStatistic struct { }
Those commented out structure fields are not deleted on purpose. We need them to see what other metrics can be collected.
type FaultSetStatistics ¶
type FaultSetStatistics struct { }
Those commented out structure fields are not deleted on purpose. We need them to see what other metrics can be collected.
type Instances ¶
type Instances struct { StoragePoolList []StoragePool SdcList []Sdc }
Instances represents '/api/instances' response.
type MockScaleIOAPIServer ¶
type MockScaleIOAPIServer struct { User string Password string Token string Version string Instances Instances Statistics SelectedStatistics }
MockScaleIOAPIServer represents VxFlex OS Gateway.
func (MockScaleIOAPIServer) ServeHTTP ¶
func (s MockScaleIOAPIServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ProtectionDomainStatistics ¶
type ProtectionDomainStatistics struct { }
Those commented out structure fields are not deleted on purpose. We need them to see what other metrics can be collected.
type RFCacheDeviceStatistics ¶
type RFCacheDeviceStatistics struct { }
Those commented out structure fields are not deleted on purpose. We need them to see what other metrics can be collected.
type SdcStatistics ¶
Those commented out structure fields are not deleted on purpose. We need them to see what other metrics can be collected.
type SdsStatistics ¶
type SdsStatistics struct { }
Those commented out structure fields are not deleted on purpose. We need them to see what other metrics can be collected.
type SelectedObject ¶
type SelectedObject struct { Type string `json:"type"` // object type (System, ProtectionDomain, Sds, StoragePool, Device, Volume, VTree, Sdc, FaultSet, RfcacheDevice). // the following parameters are not relevant to the System type and can be omitted: IDs []string `json:"ids,omitempty"` // list of objects ids AllIDs allIds `json:"allIds,omitempty"` // all available objects Properties []string `json:"properties"` // list of properties to fetch }
SelectedObject represents '/api/instances/querySelectedStatistics' query object.
type SelectedStatistics ¶
type SelectedStatistics struct { System SystemStatistics Sdc map[string]SdcStatistics StoragePool map[string]StoragePoolStatistics }
SelectedStatistics represents '/api/instances/querySelectedStatistics' response.
type SelectedStatisticsQuery ¶
type SelectedStatisticsQuery struct {
List []SelectedObject `json:"selectedStatisticsList"`
}
SelectedStatisticsQuery represents '/api/instances/querySelectedStatistics' query.
type StoragePool ¶
type StoragePool struct { ID string Name string SparePercentage int64 CapacityAlertCriticalThreshold int64 CapacityAlertHighThreshold int64 }
StoragePool represents ScaleIO Storage Pool.
type StoragePoolStatistics ¶
type StoragePoolStatistics struct { CapacityStatistics NumOfDevices int64 NumOfVolumes int64 NumOfVtrees int64 NumOfSnapshots int64 }
Those commented out structure fields are not deleted on purpose. We need them to see what other metrics can be collected.
type SystemStatistics ¶
type SystemStatistics struct { CapacityStatistics NumOfDevices int64 NumOfFaultSets int64 NumOfProtectionDomains int64 NumOfRfcacheDevices int64 NumOfSdc int64 NumOfSds int64 NumOfSnapshots int64 NumOfStoragePools int64 NumOfVolumes int64 NumOfVtrees int64 NumOfThickBaseVolumes int64 NumOfThinBaseVolumes int64 NumOfMappedToAllVolumes int64 NumOfUnmappedVolumes int64 RebalanceReadBwc Bwc RebalanceWriteBwc Bwc PendingRebalanceCapacityInKb int64 PendingNormRebuildCapacityInKb int64 PendingBckRebuildCapacityInKb int64 PendingFwdRebuildCapacityInKb int64 NormRebuildReadBwc Bwc // TODO: ??? NormRebuildWriteBwc Bwc // TODO: ??? BckRebuildReadBwc Bwc // failed node/disk is back alive BckRebuildWriteBwc Bwc // failed node/disk is back alive FwdRebuildReadBwc Bwc // node/disk fails FwdRebuildWriteBwc Bwc // node/disk fails PrimaryReadBwc Bwc // Backend (SDSs + Devices) Primary - Mater MDM PrimaryWriteBwc Bwc // Backend (SDSs + Devices) Primary - Mater MDM SecondaryReadBwc Bwc // Backend (SDSs + Devices, 2nd) Secondary - Slave MDM SecondaryWriteBwc Bwc // Backend (SDSs + Devices, 2nd) Secondary - Slave MDM UserDataReadBwc Bwc // Frontend (Volumes + SDCs) UserDataWriteBwc Bwc // Frontend (Volumes + SDCs) TotalReadBwc Bwc // *ReadBwc TotalWriteBwc Bwc // *WriteBwc }
Those commented out structure fields are not deleted on purpose. We need them to see what other metrics can be collected.
type VTreeStatistics ¶
type VTreeStatistics struct { }
Those commented out structure fields are not deleted on purpose. We need them to see what other metrics can be collected.
type VolumeStatistics ¶
type VolumeStatistics struct { }
Those commented out structure fields are not deleted on purpose. We need them to see what other metrics can be collected.