Interface ResourceDatabaseClient

All Known Implementing Classes:
ResourceDatabaseClientMock

public interface ResourceDatabaseClient
Author:
olaa
  • Method Details

    • writeResourceSnapshots

      void writeResourceSnapshots(Collection<ResourceSnapshot> snapshots)
    • getResourceSnapshotsForPeriod

      List<ResourceUsage> getResourceSnapshotsForPeriod(com.yahoo.config.provision.TenantName tenantName, long startTimestamp, long endTimestamp)
    • refreshMaterializedView

      void refreshMaterializedView()
    • writeScalingEvents

      void writeScalingEvents(ClusterId clusterId, Collection<Cluster.ScalingEvent> scalingEvents)
    • scalingEvents

      List<Cluster.ScalingEvent> scalingEvents(Instant from, Instant to, Optional<com.yahoo.config.provision.ApplicationId> application)
    • getMonthsWithSnapshotsForTenant

      Set<YearMonth> getMonthsWithSnapshotsForTenant(com.yahoo.config.provision.TenantName tenantName)
    • getRawSnapshotHistoryForTenant

      List<ResourceSnapshot> getRawSnapshotHistoryForTenant(com.yahoo.config.provision.TenantName tenantName, YearMonth yearMonth)
    • getTenants

      Set<com.yahoo.config.provision.TenantName> getTenants()
    • getOldestSnapshotTimestamp

      Instant getOldestSnapshotTimestamp(Set<DeploymentId> deployments)
    • getResourceSnapshotsForMonth

      default List<ResourceUsage> getResourceSnapshotsForMonth(com.yahoo.config.provision.TenantName tenantName, YearMonth month)