@POST @Path("daemon/{sshDaemonId}/checkin") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) AgentConfiguration checkin(@PathParam("sshDaemonId") final UUID agentId, @QueryParam("hostname") String hostname, @QueryParam("token") String token, @QueryParam("version") String version, @QueryParam("currentMillis") final Long currentMillis, @QueryParam("local") Boolean localAgent, @GZIP JsonNode agentMetrics, @QueryParam("push") Boolean pushAgent, @QueryParam("ephemeral") Boolean ephemeral);
@POST @Path("daemon/{sshDaemonId}/checkin") @Consumes(MediaType.APPLICATION_JSON) @Produces(MediaType.APPLICATION_JSON) AgentConfiguration checkin(@PathParam("sshDaemonId") final UUID agentId, @QueryParam("hostname") String hostname, @QueryParam("token") String token, @QueryParam("version") String version, @QueryParam("currentMillis") final Long currentMillis, @QueryParam("local") Boolean localAgent, @GZIP JsonNode agentMetrics, @QueryParam("push") Boolean pushAgent, @QueryParam("ephemeral") Boolean ephemeral);
@GZIP @GET @Produces("text/csv") @ApiOperation(value = "Export the Suspect Metrics data as CSV") StreamingOutput suspectMetrics(@Context HttpServletRequest request);
@GZIP @GET @Produces("text/csv") @ApiOperation(value = "Export the drift compliance data") StreamingOutput generateReport( @Context HttpServletRequest request, @QueryParam("resourceTypeId") String resourceTypeId, @QueryParam("version") String version);
@GZIP @GET @Produces({"text/csv"}) @ApiOperation(value = "Export the Recent drift data as CSV") StreamingOutput recentDrift( @QueryParam("categories") String categories, @QueryParam("snapshot") Integer snapshot, @QueryParam("path") String path, @QueryParam("definition") String definitionName, @QueryParam("startTime") Long startTime, @QueryParam("endTime") Long endTime, @Context HttpServletRequest request);
@GZIP @GET @Produces({"text/csv"}) @ApiOperation(value = "Export the Configuration History data as CSV") StreamingOutput configurationHistory(@Context HttpServletRequest request);
@GZIP @GET @Produces({"text/csv"}) @ApiOperation(value = "Export the Recent Operations Data as CSV") StreamingOutput recentOperations( @QueryParam("status") @DefaultValue("inprogress,success,failure,canceled") String operationRequestStatus, @QueryParam("startTime") Long startTime, @QueryParam("endTime") Long endTime, @Context HttpServletRequest request);
/** * Post work unit results from an agent executing a particular work unit on a host machine. * * @param agentId Agent Id of the agent reporting the result. * @param workUnitId Work unit that the agent is reporting. * @param targetId The target that's reporting the result. * @param shellOutputDTO The output of running the work unit. */ @POST @Consumes(MediaType.APPLICATION_JSON) @Path("daemon/{agentId}/workunit/{workUnitId}/{hostId}") Response postWorkUnitResult(@PathParam("agentId") UUID agentId, @PathParam("workUnitId") UUID workUnitId, @PathParam("hostId") UUID targetId, @GZIP @Valid ShellOutputDTO shellOutputDTO);
@GZIP @GET @Produces({"text/csv"}) @ApiOperation(value = "Export the Platform utilization data as CSV") StreamingOutput generateReport(@Context HttpServletRequest request);
/** * Post work unit results from an agent executing a particular work unit on a host machine. * * @param agentId Agent Id of the agent reporting the result. * @param workUnitId Work unit that the agent is reporting. * @param targetId The target that's reporting the result. * @param shellOutputDTO The output of running the work unit. */ @POST @Consumes(MediaType.APPLICATION_JSON) @Path("daemon/{agentId}/workunit/{workUnitId}/{hostId}") Response postWorkUnitResult(@PathParam("agentId") UUID agentId, @PathParam("workUnitId") UUID workUnitId, @PathParam("hostId") UUID targetId, @GZIP @Valid ShellOutputDTO shellOutputDTO);
@GZIP @GET @Produces({"text/csv"}) @ApiOperation(value = "Export the Recent Alert data as CSV") StreamingOutput recentAlerts( @QueryParam("alertPriority") @DefaultValue("high,medium,low") String alertPriority, @QueryParam("startTime") Long startTime, @QueryParam("endTime") Long endTime, @Context HttpServletRequest request);
@GZIP @GET @Produces({"text/csv"}) @ApiOperation(value = "Export the AlertDefinitions as CSV") StreamingOutput alertDefinitions(@Context HttpServletRequest request);
/** * Post batched data from pushed data (graphitehead, statsd) that was proxied through the collector. * * @param agentId Agent Id of the agent reporting the result. * @param workUnitId Work unit that the agent is reporting. * @param currentMillis Current millis on the agent (to adjust for timing). * @param format The format of the data * @param pushData The batched push data */ @POST @Consumes(MediaType.TEXT_PLAIN) @Path("daemon/{agentId}/pushdata/{workUnitId}") Response postPushData(@PathParam("agentId") UUID agentId, @PathParam("workUnitId") UUID workUnitId, @Deprecated @QueryParam("currentMillis") Long currentMillis, @QueryParam("format") String format, @GZIP String pushData);
/** * Post batched data from pushed data (graphitehead, statsd) that was proxied through the collector. * * @param agentId Agent Id of the agent reporting the result. * @param workUnitId Work unit that the agent is reporting. * @param currentMillis Current millis on the agent (to adjust for timing). * @param format The format of the data * @param pushData The batched push data */ @POST @Consumes(MediaType.TEXT_PLAIN) @Path("daemon/{agentId}/pushdata/{workUnitId}") Response postPushData(@PathParam("agentId") UUID agentId, @PathParam("workUnitId") UUID workUnitId, @Deprecated @QueryParam("currentMillis") Long currentMillis, @QueryParam("format") String format, @GZIP String pushData);
@GZIP @GET @Path("recentAlerts") @ApiOperation(value = "Export the Recent Alert data as CSV", responseClass = "String", multiValueResponse = true) public StreamingOutput recentAlerts( @QueryParam("alertPriority") @DefaultValue("high,medium,low") String alertPriority, @QueryParam("startTime") Long startTime, @QueryParam("endTime") Long endTime, @Context HttpServletRequest request) { return recentAlertLocal.recentAlertsInternal(alertPriority, startTime, endTime, request, caller); }
@GZIP @GET @Path("inventorySummary") @ApiOperation(value = "Export the Inventory Summary data as CSV", responseClass = "String", multiValueResponse = true) public StreamingOutput generateInventorySummaryReport( @Context HttpServletRequest request, @QueryParam("resourceTypeId") String resourceTypeId, @QueryParam("version") String version) { return inventorySummaryLocal.generateReportInternal(request,resourceTypeId,version,caller); }
@GZIP @GET @Path("driftCompliance") @ApiOperation(value = "Export the drift compliance data", responseClass = "String", multiValueResponse = true) public StreamingOutput generateDriftComplianceReport( @Context HttpServletRequest request, @QueryParam("resourceTypeId") String resourceTypeId, @QueryParam("version") String version) { return driftComplianceLocal.generateReportInternal(request,resourceTypeId,version,caller); }
@GZIP @GET @Path("suspectMetrics") @ApiOperation(value = "Export the Suspect Metrics data as CSV", responseClass = "String", multiValueResponse = true) public StreamingOutput suspectMetrics(@Context HttpServletRequest request) { return suspectMetricLocal.suspectMetricsInternal(request,caller); }
@GZIP @GET @Path("configurationHistory") @ApiOperation(value = "Export the Configuration History data as CSV", responseClass = "String", multiValueResponse = true) public StreamingOutput configurationHistory(@Context HttpServletRequest request) { return configurationHistoryLocal.configurationHistoryInternal(request,caller); }
@GZIP @GET @Path("alertDefinitions") @ApiOperation(value = "Export the AlertDefinitions as CSV", responseClass = "String", multiValueResponse = true) public StreamingOutput alertDefinitions(@Context HttpServletRequest request) { return alertDefinitionLocal.alertDefinitionsInternal(request, caller); }