class ZTSImpl implements KeyStore, ZTSHandler {

    public void recordMetrics(ResourceContext ctx, int httpStatus) {
        final String principalDomainName = getPrincipalDomain(ctx);
        final String domainName = getRequestDomainName(ctx);
        final Object timerMetric = getTimerMetric(ctx);
        final String httpMethod = (ctx != null) ? ctx.getHttpMethod() : null;
        final String apiName = (ctx != null) ? ctx.getApiName() : null;
        final String timerName = (apiName != null) ? apiName + "_timing" : null;
        metric.increment("zts_api", domainName, principalDomainName, httpMethod, httpStatus, apiName);
        metric.stopTiming(timerMetric, domainName, principalDomainName, httpMethod, httpStatus, timerName);
    }

    public  ZTSImpl();
    public  ZTSImpl(CloudStore implCloudStore, DataStore implDataStore);

}