api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 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
	GetId() string
}

func NewApi

func NewApi(id string, apiPath string) Api

type DashboardResponse

type DashboardResponse struct {
	Dashboards []Value `json:"dashboards"`
}

type DynatraceEntity

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

type ExtensionsResponse

type ExtensionsResponse struct {
	Values []Value `json:"extensions"`
}

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