Interface ResourceDatabaseClient
- All Known Implementing Classes:
ResourceDatabaseClientMock
public interface ResourceDatabaseClient
- Author:
- olaa
-
Method Summary
Modifier and TypeMethodDescriptiongetMonthsWithSnapshotsForTenant(com.yahoo.config.provision.TenantName tenantName) getOldestSnapshotTimestamp(Set<DeploymentId> deployments) getRawSnapshotHistoryForTenant(com.yahoo.config.provision.TenantName tenantName, YearMonth yearMonth) default List<ResourceUsage>getResourceSnapshotsForMonth(com.yahoo.config.provision.TenantName tenantName, YearMonth month) getResourceSnapshotsForPeriod(com.yahoo.config.provision.TenantName tenantName, long startTimestamp, long endTimestamp) Set<com.yahoo.config.provision.TenantName>voidscalingEvents(Instant from, Instant to, Optional<com.yahoo.config.provision.ApplicationId> application) voidwriteResourceSnapshots(Collection<ResourceSnapshot> snapshots) voidwriteScalingEvents(ClusterId clusterId, Collection<Cluster.ScalingEvent> scalingEvents)
-
Method Details
-
writeResourceSnapshots
-
getResourceSnapshotsForPeriod
List<ResourceUsage> getResourceSnapshotsForPeriod(com.yahoo.config.provision.TenantName tenantName, long startTimestamp, long endTimestamp) -
refreshMaterializedView
void refreshMaterializedView() -
writeScalingEvents
-
scalingEvents
List<Cluster.ScalingEvent> scalingEvents(Instant from, Instant to, Optional<com.yahoo.config.provision.ApplicationId> application) -
getMonthsWithSnapshotsForTenant
-
getRawSnapshotHistoryForTenant
List<ResourceSnapshot> getRawSnapshotHistoryForTenant(com.yahoo.config.provision.TenantName tenantName, YearMonth yearMonth) -
getTenants
Set<com.yahoo.config.provision.TenantName> getTenants() -
getOldestSnapshotTimestamp
-
getResourceSnapshotsForMonth
default List<ResourceUsage> getResourceSnapshotsForMonth(com.yahoo.config.provision.TenantName tenantName, YearMonth month)
-