wlm

package
v0.0.0-...-afd84b7 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package wlm provides a simple service interface for using the Data Warehouse WriteInsight API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataWarehouseService

type DataWarehouseService struct {
	BasePath string
	// contains filtered or unexported fields
}

DataWarehouseService implements the Data Warehouse service.

func NewService

func NewService(ctx context.Context, opts ...option.ClientOption) (*DataWarehouseService, error)

NewService creates a new Data Warehouse service.

func (*DataWarehouseService) WriteInsight

func (d *DataWarehouseService) WriteInsight(project, location string, req *dwpb.WriteInsightRequest) (*WriteInsightResponse, error)

WriteInsight sends the WriteInsightRequest to the Data Warehouse.

type WLM

type WLM struct {
	// contains filtered or unexported fields
}

WLM is a wrapper for Workload Manager API services.

func NewWLMClient

func NewWLMClient(ctx context.Context, basePath string) (*WLM, error)

NewWLMClient creates a new WLM service wrapper.

func (*WLM) WriteInsight

func (w *WLM) WriteInsight(project string, location string, writeInsightRequest *dwpb.WriteInsightRequest) error

WriteInsight wraps a call to the WLM insights:write API.

type WriteInsightResponse

type WriteInsightResponse struct {
	// ServerResponse contains the HTTP response code and headers from the server.
	googleapi.ServerResponse `json:"-"`
}

WriteInsightResponse is a wrapper for the response from a WriteInsight request.

Jump to

Keyboard shortcuts

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