requests

package
v0.0.0-...-def9dbb Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildCoverageRequest

func BuildCoverageRequest(input CoverageArgs) (*monitoringpb.CreateTimeSeriesRequest, error)

BuildCoverageRequest builds a new job result request object to submit to gcp cloud monitoring.

func BuildJobResultRequest

func BuildJobResultRequest(input JobResultArgs) (*monitoringpb.CreateTimeSeriesRequest, error)

BuildJobResultRequest builds a new job result request object to submit to gcp cloud monitoring.

func BuildLastPublishedRequest

func BuildLastPublishedRequest(input LastPublishedArgs) (*monitoringpb.CreateTimeSeriesRequest, error)

BuildLastPublishedRequest builds a new job result request object to submit to gcp cloud monitoring.

Types

type CoverageArgs

type CoverageArgs struct {
	EndTimestamp    *int64 // Optional - will default to now in ms.
	MetricPath      string
	PackageName     string
	CoveragePercent int64
	ProjectID       string
}

CoverageArgs defines the required and optional arguments for building a new coverage request (in the form of a cloud monitoring time series request).

type JobResultArgs

type JobResultArgs struct {
	EndTimestamp   *int64 // Optional - will default to now in ms.
	Job            string
	MetricPath     string
	Pipeline       string
	ProjectID      string
	ResultState    string
	StartTimestamp int64 // Epoch Milliseconds.
	Task           string
	Zone           string
}

JobResultArgs defines the required and optional arguments for building a new job result request (in the form of a cloud monitoring time series request).

type LastPublishedArgs

type LastPublishedArgs struct {
	MetricPath    string
	ProjectID     string
	PackageName   string
	LastPublished string
}

LastPublishedArgs defines the required and optional arguments for building a new last published request (in the form of a cloud monitoring time series request).

Jump to

Keyboard shortcuts

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