Interface LegacyPower
- All Known Implementing Classes:
LegacyPowerImpl
public interface LegacyPower
Client interface for accessing legacy IBX SmartView power data. Provides methods to
retrieve current and trending power consumption measurements at various hierarchy
levels within an IBX.
-
Method Summary
Modifier and TypeMethodDescriptiongetCurrent(String accountNo, String ibx, String levelType, String levelValue) Retrieves the current power data for a specific hierarchy level and value.getTrending(String accountNo, String ibx, String levelType, String levelValue, String interval, String fromDate, String toDate) Retrieves trending power data over a specified time range and interval.postCurrent(PowerCurrentPostRequest requestBody) Retrieves current power data for all values at the given level type using a typed request body.
-
Method Details
-
getCurrent
Retrieves the current power data for a specific hierarchy level and value.- Parameters:
accountNo- the Equinix account number (required; the service answers HTTP 400 without it)ibx- the IBX code identifying the data centerlevelType- the hierarchy level type (e.g., cage, cabinet)levelValue- the specific value for the hierarchy level- Returns:
- the current power data
- Throws:
IllegalArgumentException- if a parameter the spec marks required is null or blank
-
postCurrent
Retrieves current power data for all values at the given level type using a typed request body.- Parameters:
requestBody- the typed request body specifying the account, IBX and level type to query- Returns:
- a list of current power data entries
-
getTrending
TrendingPowerData getTrending(String accountNo, String ibx, String levelType, String levelValue, String interval, String fromDate, String toDate) Retrieves trending power data over a specified time range and interval.- Parameters:
accountNo- the Equinix account number (required; the service answers HTTP 400 without it)ibx- the IBX code identifying the data centerlevelType- the hierarchy level type (e.g., cage, cabinet)levelValue- the specific value for the hierarchy levelinterval- the aggregation interval for trend datafromDate- the start date of the trend rangetoDate- the end date of the trend range- Returns:
- the trending power data
- Throws:
IllegalArgumentException- if a parameter the spec marks required is null or blank
-