Movatterモバイル変換


[0]ホーム

URL:


metricscache

package
v2.23.1Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2025 License:AGPL-3.0Imports:14Imported by:0

Details

Repository

github.com/coder/coder

Links

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

typeCache

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 minuteon large deployments. Even in small deployments, aggregation queries cantake a few hundred milliseconds, which would ruin page load times anddatabase performance if in the hot path.

funcNew

func New(dbdatabase.Store, logslog.Logger, clockquartz.Clock, intervalsIntervals, usagebool) *Cache

func (*Cache)Close

func (c *Cache) Close()error

func (*Cache)DeploymentStats

func (c *Cache) DeploymentStats() (codersdk.DeploymentStats,bool)

func (*Cache)TemplateBuildTimeStats

func (c *Cache) TemplateBuildTimeStats(iduuid.UUID)codersdk.TemplateBuildTimeStats

func (*Cache)TemplateWorkspaceOwnersadded inv2.5.0

func (c *Cache) TemplateWorkspaceOwners(iduuid.UUID) (int,bool)

typeIntervals

type Intervals struct {TemplateBuildTimestime.DurationDeploymentStatstime.Duration}

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp