@Path(value="profiles") @RolesAllowed(value="operator") @Singleton public class ProfilesResource extends Object
| Constructor and Description |
|---|
ProfilesResource(LogsResource logsResource,
LogFilesResource logFilesResource,
org.spf4j.stackmonitor.Sampler sampler,
String hostName) |
| Modifier and Type | Method and Description |
|---|---|
org.spf4j.stackmonitor.SampleNode |
getLabeledSamples(String label,
Instant from,
Instant to) |
Set<String> |
getSampleLabels() |
org.spf4j.stackmonitor.SampleNode |
getSamples(String traceId) |
FlameGraphTemplate |
getVisualizePage() |
String |
toString() |
javax.ws.rs.core.StreamingOutput |
visualizeGroups(String label,
Instant from,
Instant to) |
javax.ws.rs.core.StreamingOutput |
visualizeTraces(String traceId) |
@Inject public ProfilesResource(LogsResource logsResource, LogFilesResource logFilesResource, org.spf4j.stackmonitor.Sampler sampler, String hostName) throws IOException
IOExceptionpublic FlameGraphTemplate getVisualizePage()
@Path(value="local/traces/{trId}")
@GET
@Produces(value={"application/stack.samples+json","application/stack.samples.d3+json"})
@Nullable
public org.spf4j.stackmonitor.SampleNode getSamples(@PathParam(value="trId")
String traceId)
throws IOException
IOException@Path(value="local/groups")
@GET
@Produces(value={"application/json","application/avro"})
public Set<String> getSampleLabels()
throws IOException
IOException@Path(value="local/groups/{label}")
@GET
@Produces(value={"application/stack.samples+json","application/stack.samples.d3+json"})
public org.spf4j.stackmonitor.SampleNode getLabeledSamples(@PathParam(value="label")
String label,
@Nullable @QueryParam(value="from")
Instant from,
@Nullable @QueryParam(value="to")
Instant to)
throws IOException
IOException@Path(value="local/visualize/traces/{trId}")
@GET
@Produces(value="text/html")
public javax.ws.rs.core.StreamingOutput visualizeTraces(@PathParam(value="trId")
String traceId)
throws IOException
IOException@Path(value="local/visualize/groups/{label}")
@GET
@Produces(value="text/html")
public javax.ws.rs.core.StreamingOutput visualizeGroups(@PathParam(value="label")
String label,
@Nullable @QueryParam(value="from")
Instant from,
@Nullable @QueryParam(value="to")
Instant to)
throws IOException
IOExceptionCopyright © 2020 SPF4J. All rights reserved.