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 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.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 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