infrastructure

package
v0.20.1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package infrastructure provides metadata about the underlying Infrastructure API, which is only used to provision Infrastructure alert conditions. The programmatic API for working with these resources can be found in the `alerts` package.

Package infrastructure provides metadata about the underlying Infrastructure API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorDetail

type ErrorDetail struct {
	Status string `json:"status,omitempty"`
	Detail string `json:"detail,omitempty"`
}

ErrorDetail represents the details of an error response from New Relic Infrastructure.

type ErrorResponse

type ErrorResponse struct {
	Errors  []*ErrorDetail `json:"errors,omitempty"`
	Message string         `json:"description,omitempty"`
}

ErrorResponse represents an error response from New Relic Infrastructure.

func (*ErrorResponse) Error

func (e *ErrorResponse) Error() string

Error surfaces an error message from the Infrastructure error response.

func (*ErrorResponse) New added in v0.13.0

func (e *ErrorResponse) New() http.ErrorResponse

New creates a new instance of ErrorResponse.

Jump to

Keyboard shortcuts

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