report

package
v1.6.65 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var URL = "https://usage.deepflow.yunshan.net/api/v1/report"

Functions

func SetServerInfo

func SetServerInfo(branch string, revCount string, commitID string)

Types

type AgentData

type AgentData struct {
	Type     string `json:"type"`
	RevCount string `json:"revCount"`
	CommitID string `json:"commitId"`
	Branch   string `json:"branch"`
	Count    int    `json:"count"`
}

type AgentDataKey

type AgentDataKey struct {
	Type    int
	Version string
}

type ReportData

type ReportData struct {
	DFUUID         string      `json:"deepflowDeploymentUUID"`
	ServerRevCount string      `json:"serverRevCount"`
	ServerCommitID string      `json:"serverCommitId"`
	ServerBranch   string      `json:"serverBranch"`
	ReportTime     string      `json:"reportTime"`
	ServerReplicas int64       `json:"serverReplicas"`
	Agents         []AgentData `json:"agents"`
}

type ReportServer

type ReportServer struct {
	ReportData
	// contains filtered or unexported fields
}

func NewReportServer

func NewReportServer(db *gorm.DB) *ReportServer

func (*ReportServer) StartReporting

func (r *ReportServer) StartReporting()

Jump to

Keyboard shortcuts

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