metrics

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package metrics is a generated protocol buffer package.

It is generated from these files:

server/pkg/metrics/metrics.proto

It has these top-level messages:

Metrics

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddBytes

func AddBytes(num int64)

AddBytes atomically adds a number of bytes to metrics.

func AddCommits

func AddCommits(num int64)

AddCommits atomically adds a number of commits to metrics.

func AddFiles

func AddFiles(num int64)

AddFiles atomically adds a number of files to metrics.

func AddJobs

func AddJobs(num int64)

AddJobs atomically adds a number of jobs to metrics.

func AddPipelines

func AddPipelines(num int64)

AddPipelines atomically adds a number of pipelines to metrics.

func AddRepos

func AddRepos(num int64)

AddRepos atomically adds a number of repos to metrics.

func ReportMetrics

func ReportMetrics(clusterID string, kubeClient *kube.Client)

ReportMetrics blocks and reports metrics, if modified, to the given kubernetes client every 15 seconds.

Types

type Metrics

type Metrics struct {
	ID        string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
	PodID     string `protobuf:"bytes,2,opt,name=pod_id,json=podId" json:"pod_id,omitempty"`
	Nodes     int64  `protobuf:"varint,3,opt,name=nodes" json:"nodes,omitempty"`
	Version   string `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"`
	Repos     int64  `protobuf:"varint,5,opt,name=repos" json:"repos,omitempty"`
	Commits   int64  `protobuf:"varint,6,opt,name=commits" json:"commits,omitempty"`
	Files     int64  `protobuf:"varint,7,opt,name=files" json:"files,omitempty"`
	Bytes     int64  `protobuf:"varint,8,opt,name=bytes" json:"bytes,omitempty"`
	Jobs      int64  `protobuf:"varint,9,opt,name=jobs" json:"jobs,omitempty"`
	Pipelines int64  `protobuf:"varint,10,opt,name=pipelines" json:"pipelines,omitempty"`
}

func (*Metrics) Descriptor

func (*Metrics) Descriptor() ([]byte, []int)

func (*Metrics) ProtoMessage

func (*Metrics) ProtoMessage()

func (*Metrics) Reset

func (m *Metrics) Reset()

func (*Metrics) String

func (m *Metrics) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL