Documentation ¶
Index ¶
- type Cache
- func (c *Cache) Close() error
- func (c *Cache) DeploymentDAUs() (*codersdk.DeploymentDAUsResponse, bool)
- func (c *Cache) DeploymentStats() (codersdk.DeploymentStats, bool)
- func (c *Cache) TemplateBuildTimeStats(id uuid.UUID) codersdk.TemplateBuildTimeStats
- func (c *Cache) TemplateDAUs(id uuid.UUID) (*codersdk.TemplateDAUsResponse, bool)
- func (c *Cache) TemplateUniqueUsers(id uuid.UUID) (int, bool)
- type Intervals
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache holds the template metrics. The aggregation queries responsible for these values can take up to a minute on large deployments. Even in small deployments, aggregation queries can take a few hundred milliseconds, which would ruin page load times and database performance if in the hot path.
func (*Cache) DeploymentDAUs ¶ added in v0.15.3
func (c *Cache) DeploymentDAUs() (*codersdk.DeploymentDAUsResponse, bool)
func (*Cache) DeploymentStats ¶ added in v0.19.0
func (c *Cache) DeploymentStats() (codersdk.DeploymentStats, bool)
func (*Cache) TemplateBuildTimeStats ¶ added in v0.10.0
func (c *Cache) TemplateBuildTimeStats(id uuid.UUID) codersdk.TemplateBuildTimeStats
func (*Cache) TemplateDAUs ¶
TemplateDAUs returns an empty response if the template doesn't have users or is loading for the first time.
Click to show internal directories.
Click to hide internal directories.