com.palantir.atlasdb.timelock.lock.watch.DialogueConjureLockWatchDiagnosticsEndpoints Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of timelock-api-dialogue Show documentation
Show all versions of timelock-api-dialogue Show documentation
Palantir open source project
package com.palantir.atlasdb.timelock.lock.watch;
import com.google.common.collect.ImmutableSet;
import com.google.common.collect.ListMultimap;
import com.palantir.dialogue.Endpoint;
import com.palantir.dialogue.HttpMethod;
import com.palantir.dialogue.PathTemplate;
import com.palantir.dialogue.UrlBuilder;
import java.lang.Override;
import java.lang.String;
import java.util.Optional;
import java.util.Set;
import javax.annotation.processing.Generated;
@Generated("com.palantir.conjure.java.services.dialogue.DialogueEndpointsGenerator")
enum DialogueConjureLockWatchDiagnosticsEndpoints implements Endpoint {
logState {
private final PathTemplate pathTemplate = PathTemplate.builder()
.fixed("lw")
.fixed("diagnostics")
.fixed("logState")
.variable("namespace")
.build();
private final ImmutableSet tags = ImmutableSet.of("server-request-context");
@Override
public void renderPath(ListMultimap params, UrlBuilder url) {
pathTemplate.fill(params, url);
}
@Override
public HttpMethod httpMethod() {
return HttpMethod.POST;
}
@Override
public String serviceName() {
return "ConjureLockWatchDiagnosticsService";
}
@Override
public String endpointName() {
return "logState";
}
@Override
public String version() {
return VERSION;
}
@Override
public Set tags() {
return tags;
}
};
private static final String VERSION = Optional.ofNullable(DialogueConjureLockWatchDiagnosticsEndpoints.class
.getPackage()
.getImplementationVersion())
.orElse("0.0.0");
}