Package com.morpheusdata.core
Interface MorpheusStatsService
public interface MorpheusStatsService
Context methods for simulating performance stats on servers
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Boolean>updateServerStats(ComputeServerIdentityProjection server, Long maxMemory, Long maxUsedMemory, Long maxStorage, Long maxUsedStorage, Float cpuPercent, Boolean running) Request to update the stats for a ComputeServer.io.reactivex.rxjava3.core.Single<Boolean>updateWorkloadStats(WorkloadIdentityProjection workload, Long maxMemory, Long maxUsedMemory, Long maxStorage, Long maxUsedStorage, Float cpuPercent, Boolean running) Request to update the performance stats for a Workload.
-
Method Details
-
updateWorkloadStats
io.reactivex.rxjava3.core.Single<Boolean> updateWorkloadStats(WorkloadIdentityProjection workload, Long maxMemory, Long maxUsedMemory, Long maxStorage, Long maxUsedStorage, Float cpuPercent, Boolean running) Request to update the performance stats for a Workload. This is often useful when an agent is not installed and stats need to be explicitly specified during a sync operation- Parameters:
workload- workload to set stats onmaxMemory- the maximum memory in bytesmaxUsedMemory- the used memory in bytesmaxStorage- the maximum storage in bytesmaxUsedStorage- the used storage in bytescpuPercent- the percent of the cpu usedrunning- whether the workload is running- Returns:
- success
-
updateServerStats
io.reactivex.rxjava3.core.Single<Boolean> updateServerStats(ComputeServerIdentityProjection server, Long maxMemory, Long maxUsedMemory, Long maxStorage, Long maxUsedStorage, Float cpuPercent, Boolean running) Request to update the stats for a ComputeServer. This is often useful when an agent is not installed and stats need to be explicitly specified during a sync operation. This will not set the corresponding memory, storage, cpu, etc values on the ComputeServer but will be used for charting- Parameters:
server- server to set stats onmaxMemory- the maximum memory in bytesmaxUsedMemory- the used memory in bytesmaxStorage- the maximum storage in bytesmaxUsedStorage- the used storage in bytescpuPercent- the percent of the cpu usedrunning- whether the server is running- Returns:
- success
-