azuremonitor

package
v0.0.0-...-fb5a1ab Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Mockoon = "mockoon"
	Port    = 3000

	AzureDomain     = "acme.com"
	AzureSecretName = "azure-secret"
)

Variables

View Source
var AzureHttpDataCollectorApi string

Functions

func NewMockoonVisitor

func NewMockoonVisitor(pb *runtime.PodBuilder, azureAltHost string, framework *functional.CollectorFunctionalFramework) error

func ReadApplicationLogFromMockoon

func ReadApplicationLogFromMockoon(framework *functional.CollectorFunctionalFramework) ([]types.ApplicationLog, error)

Types

type Headers

type Headers struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

type MockoonLog

type MockoonLog struct {
	App             string      `json:"app,omitempty"`
	EnvironmentName string      `json:"environmentName,omitempty"`
	EnvironmentUUID string      `json:"environmentUUID,omitempty"`
	Level           string      `json:"level,omitempty"`
	Message         string      `json:"message,omitempty"`
	RequestMethod   string      `json:"requestMethod,omitempty"`
	RequestPath     string      `json:"requestPath,omitempty"`
	RequestProxied  bool        `json:"requestProxied,omitempty"`
	ResponseStatus  int         `json:"responseStatus,omitempty"`
	Timestamp       time.Time   `json:"timestamp,omitempty"`
	Transaction     Transaction `json:"transaction,omitempty"`
}

type QueryParams

type QueryParams struct {
	APIVersion string `json:"api-version,omitempty"`
}

type Request

type Request struct {
	Body        string      `json:"body,omitempty"`
	Headers     []Headers   `json:"headers,omitempty"`
	Method      string      `json:"method,omitempty"`
	Params      []any       `json:"params,omitempty"`
	Query       string      `json:"query,omitempty"`
	QueryParams QueryParams `json:"queryParams,omitempty"`
	Route       string      `json:"route,omitempty"`
	URLPath     string      `json:"urlPath,omitempty"`
}

type Response

type Response struct {
	Body          string    `json:"body,omitempty"`
	Headers       []Headers `json:"headers,omitempty"`
	StatusCode    int       `json:"statusCode,omitempty"`
	StatusMessage string    `json:"statusMessage,omitempty"`
}

type Transaction

type Transaction struct {
	Proxied           bool     `json:"proxied,omitempty"`
	Request           Request  `json:"request,omitempty"`
	Response          Response `json:"response,omitempty"`
	RouteResponseUUID string   `json:"routeResponseUUID,omitempty"`
	RouteUUID         string   `json:"routeUUID,omitempty"`
}

Jump to

Keyboard shortcuts

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