Package com.morpheusdata.core
Interface MorpheusStatsService
-
public interface MorpheusStatsService
Context methods for simulating performance stats on servers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description io.reactivex.Single<java.lang.Boolean>
updateServerStats(ComputeServerIdentityProjection server, java.lang.Long maxMemory, java.lang.Long maxUsedMemory, java.lang.Long maxStorage, java.lang.Long maxUsedStorage, java.lang.Float cpuPercent, java.lang.Boolean running)
Request to update the stats for a ComputeServer.io.reactivex.Single<java.lang.Boolean>
updateWorkloadStats(WorkloadIdentityProjection workload, java.lang.Long maxMemory, java.lang.Long maxUsedMemory, java.lang.Long maxStorage, java.lang.Long maxUsedStorage, java.lang.Float cpuPercent, java.lang.Boolean running)
Request to update the performance stats for a Workload.
-
-
-
Method Detail
-
updateWorkloadStats
io.reactivex.Single<java.lang.Boolean> updateWorkloadStats(WorkloadIdentityProjection workload, java.lang.Long maxMemory, java.lang.Long maxUsedMemory, java.lang.Long maxStorage, java.lang.Long maxUsedStorage, java.lang.Float cpuPercent, java.lang.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.Single<java.lang.Boolean> updateServerStats(ComputeServerIdentityProjection server, java.lang.Long maxMemory, java.lang.Long maxUsedMemory, java.lang.Long maxStorage, java.lang.Long maxUsedStorage, java.lang.Float cpuPercent, java.lang.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
-
-