public class MeteringStats extends Object
Constructor and Description |
---|
MeteringStats(String serviceId,
Role meteringRole,
String meteringServiceDestinationName) |
Modifier and Type | Method and Description |
---|---|
long |
getApiCountsFor(TenantMetricKeyPair key) |
long |
getDistinctApiCounts() |
long |
getSumOfApiCounts() |
long |
record(TenantMetricKeyPair key) |
long |
record(TenantMetricKeyPair key,
long increment) |
void |
sendToMeteringService() |
public long record(TenantMetricKeyPair key)
public long record(TenantMetricKeyPair key, long increment)
public long getApiCountsFor(TenantMetricKeyPair key)
public long getSumOfApiCounts()
public long getDistinctApiCounts()
public void sendToMeteringService() throws TenantNotFoundException
TenantNotFoundException
Copyright © 2017 SAP SE. All rights reserved.