api

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsApiName

func ContainsApiName(path string) bool

tests if part of project folder path contains an API folders with API in path are not valid projects

func IsApi

func IsApi(dir string) bool

func NewApis

func NewApis() map[string]Api

Types

type Api

type Api interface {
	GetUrl(environment environment.Environment) string
	GetUrlFromEnvironmentUrl(environmentUrl string) string
	GetId() string
	GetApiPath() string
	GetPropertyNameOfGetAllResponse() string
	IsStandardApi() bool
}

func NewApi

func NewApi(id string, apiPath string, propertyNameOfGetAllResponse string) Api

func NewStandardApi added in v1.3.0

func NewStandardApi(id string, apiPath string) Api

NewStandardApi creates an API with propertyNameOfGetAllResponse set to "values"

type DynatraceEntity

type DynatraceEntity struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
}

type SyntheticEntity

type SyntheticEntity struct {
	EntityId string `json:"entityId"`
}

type SyntheticLocationResponse

type SyntheticLocationResponse struct {
	Locations []SyntheticValue `json:"locations"`
}

type SyntheticMonitorsResponse

type SyntheticMonitorsResponse struct {
	Monitors []SyntheticValue `json:"monitors"`
}

type SyntheticValue

type SyntheticValue struct {
	Name          string    `json:"name"`
	EntityId      string    `json:"entityId"`
	Type          string    `json:"type"`
	CloudPlatform *string   `json:"cloudPlatform"`
	Ips           *[]string `json:"ips"`
	Stage         *string   `json:"stage"`
	Enabled       *bool     `json:"enabled"`
}

type Value

type Value struct {
	Id    string  `json:"id"`
	Name  string  `json:"name"`
	Owner *string `json:"owner,omitempty"`
}

type ValuesResponse

type ValuesResponse struct {
	Values []Value `json:"values"`
}

Jump to

Keyboard shortcuts

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