Interface ResourceDatabaseClient
-
- All Known Implementing Classes:
ResourceDatabaseClientMock
public interface ResourceDatabaseClient- Author:
- olaa
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Set<YearMonth>getMonthsWithSnapshotsForTenant(com.yahoo.config.provision.TenantName tenantName)List<ResourceSnapshot>getRawSnapshotHistoryForTenant(com.yahoo.config.provision.TenantName tenantName, YearMonth yearMonth)List<ResourceSnapshot>getResourceSnapshotsForMonth(com.yahoo.config.provision.TenantName tenantName, com.yahoo.config.provision.ApplicationName applicationName, YearMonth month)default List<ResourceUsage>getResourceSnapshotsForMonth(com.yahoo.config.provision.TenantName tenantName, YearMonth month)List<ResourceUsage>getResourceSnapshotsForPeriod(com.yahoo.config.provision.TenantName tenantName, long startTimestamp, long endTimestamp)Set<com.yahoo.config.provision.TenantName>getTenants()voidrefreshMaterializedView()voidwriteResourceSnapshots(Collection<ResourceSnapshot> snapshots)
-
-
-
Method Detail
-
writeResourceSnapshots
void writeResourceSnapshots(Collection<ResourceSnapshot> snapshots)
-
getResourceSnapshotsForMonth
List<ResourceSnapshot> getResourceSnapshotsForMonth(com.yahoo.config.provision.TenantName tenantName, com.yahoo.config.provision.ApplicationName applicationName, YearMonth month)
-
getResourceSnapshotsForPeriod
List<ResourceUsage> getResourceSnapshotsForPeriod(com.yahoo.config.provision.TenantName tenantName, long startTimestamp, long endTimestamp)
-
refreshMaterializedView
void refreshMaterializedView()
-
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()
-
getResourceSnapshotsForMonth
default List<ResourceUsage> getResourceSnapshotsForMonth(com.yahoo.config.provision.TenantName tenantName, YearMonth month)
-
-