Class PortsImpl
java.lang.Object
api.equinix.javasdk.fabric.client.implementation.PortsImpl
-
Constructor Summary
ConstructorsConstructorDescriptionPortsImpl(PortClient<Port> serviceClient, PortStatisticClient<PortStatistic> statisticServiceClient, Fabric serviceManager) Constructor for PortsImpl. -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a single port by its unique identifier.getStatistics(String uuid, LocalDateTime startDateTime, LocalDateTime endDateTime) Retrieves bandwidth statistics for a port over the specified time range.getTopStatistics(StatisticDuration duration, Sortable sortable) Retrieves top port statistics ranked by bandwidth usage for the specified duration.getTopStatistics(StatisticDuration duration, Sortable sortable, RequestBuilder.TopPortStatistics requestBuilder) Retrieves top port statistics ranked by bandwidth usage with additional request options.list()list.
-
Constructor Details
-
PortsImpl
public PortsImpl(PortClient<Port> serviceClient, PortStatisticClient<PortStatistic> statisticServiceClient, Fabric serviceManager) Constructor for PortsImpl.
- Parameters:
serviceClient- aPortClientobject.statisticServiceClient- aPortStatisticClientobject.serviceManager- aFabricobject.
-
-
Method Details
-
list
list.
- Specified by:
listin interfacePorts- Returns:
- a
PaginatedListobject.
-
getByUuid
-
getStatistics
public PortStatistic getStatistics(String uuid, LocalDateTime startDateTime, LocalDateTime endDateTime) Retrieves bandwidth statistics for a port over the specified time range.- Specified by:
getStatisticsin interfacePorts- Parameters:
uuid- the unique identifier of the portstartDateTime- the start of the statistics time rangeendDateTime- the end of the statistics time range- Returns:
- the port statistics for the specified time range
-
getTopStatistics
Retrieves top port statistics ranked by bandwidth usage for the specified duration.- Specified by:
getTopStatisticsin interfacePorts- Parameters:
duration- the time duration to aggregate statistics oversortable- the sort configuration for ranking results- Returns:
- a paginated list of top port statistics
-
getTopStatistics
public PaginatedList<PortStatistic> getTopStatistics(StatisticDuration duration, Sortable sortable, RequestBuilder.TopPortStatistics requestBuilder) Retrieves top port statistics ranked by bandwidth usage with additional request options.getTopStatistics.
- Specified by:
getTopStatisticsin interfacePorts- Parameters:
duration- the time duration to aggregate statistics oversortable- the sort configuration for ranking resultsrequestBuilder- additional request parameters for filtering top statistics- Returns:
- a paginated list of top port statistics
-