Documentation ¶
Index ¶
- type Server
- func (srv *Server) GetNodesUsageCount(ctx context.Context, in *stats.GetNodesUsageCountRequest) (*stats.GetNodesUsageCountResponse, error)
- func (srv *Server) ReadFailures(ctx context.Context, in *stats.Query) (*stats.Failures, error)
- func (srv *Server) ReadProfiles(ctx context.Context, in *stats.Query) (*stats.Profile, error)
- func (srv *Server) ReadSummary(ctx context.Context, in *stats.Query) (*stats.Summary, error)
- func (srv *Server) ReadTrend(ctx context.Context, in *stats.Query) (*stats.Trends, error)
- func (srv *Server) UpdateTelemetryReported(ctx context.Context, in *stats.UpdateTelemetryReportedRequest) (*stats.UpdateTelemetryReportedResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implementation for stats
func (*Server) GetNodesUsageCount ¶
func (srv *Server) GetNodesUsageCount(ctx context.Context, in *stats.GetNodesUsageCountRequest) (*stats.GetNodesUsageCountResponse, error)
GetNodesUsageCount returns the count of unique nodes with lastRun in a given time.
func (*Server) ReadFailures ¶
ReadFailures returns failures by platform, environment, etc
func (*Server) ReadProfiles ¶
ReadProfiles returns profile stats information (generalized and per profile-id)
func (*Server) ReadSummary ¶
ReadSummary returns summary, nodes-summary, or controls-summary information
func (*Server) UpdateTelemetryReported ¶
func (srv *Server) UpdateTelemetryReported(ctx context.Context, in *stats.UpdateTelemetryReportedRequest) (*stats.UpdateTelemetryReportedResponse, error)
UpdateTelemetryReported Updates the last compliance telemetry reported date in postgres after the telemetry data is sent
Click to show internal directories.
Click to hide internal directories.