Interface MorpheusStatsService


public interface MorpheusStatsService
Context methods for simulating performance stats on servers
  • 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 on
      maxMemory - the maximum memory in bytes
      maxUsedMemory - the used memory in bytes
      maxStorage - the maximum storage in bytes
      maxUsedStorage - the used storage in bytes
      cpuPercent - the percent of the cpu used
      running - 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 on
      maxMemory - the maximum memory in bytes
      maxUsedMemory - the used memory in bytes
      maxStorage - the maximum storage in bytes
      maxUsedStorage - the used storage in bytes
      cpuPercent - the percent of the cpu used
      running - whether the server is running
      Returns:
      success