Class LegacyPowerImpl

java.lang.Object
com.eqixiac.equinix.ibxsmartview.client.implementation.LegacyPowerImpl
All Implemented Interfaces:
LegacyPower

public class LegacyPowerImpl extends Object implements LegacyPower
  • Constructor Details

    • LegacyPowerImpl

      public LegacyPowerImpl()
  • Method Details

    • getCurrent

      public PowerData getCurrent(String accountNo, String ibx, String levelType, String levelValue)
      Description copied from interface: LegacyPower
      Retrieves the current power data for a specific hierarchy level and value.
      Specified by:
      getCurrent in interface LegacyPower
      Parameters:
      accountNo - the Equinix account number (required; the service answers HTTP 400 without it)
      ibx - the IBX code identifying the data center
      levelType - the hierarchy level type (e.g., cage, cabinet)
      levelValue - the specific value for the hierarchy level
      Returns:
      the current power data
    • postCurrent

      public List<PowerDataIBX> postCurrent(PowerCurrentPostRequest requestBody)
      Description copied from interface: LegacyPower
      Retrieves current power data for all values at the given level type using a typed request body.
      Specified by:
      postCurrent in interface LegacyPower
      Parameters:
      requestBody - the typed request body specifying the account, IBX and level type to query
      Returns:
      a list of current power data entries
    • getTrending

      public TrendingPowerData getTrending(String accountNo, String ibx, String levelType, String levelValue, String interval, String fromDate, String toDate)
      Description copied from interface: LegacyPower
      Retrieves trending power data over a specified time range and interval.
      Specified by:
      getTrending in interface LegacyPower
      Parameters:
      accountNo - the Equinix account number (required; the service answers HTTP 400 without it)
      ibx - the IBX code identifying the data center
      levelType - the hierarchy level type (e.g., cage, cabinet)
      levelValue - the specific value for the hierarchy level
      interval - the aggregation interval for trend data
      fromDate - the start date of the trend range
      toDate - the end date of the trend range
      Returns:
      the trending power data