customservices

package
v1.70.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClassNameMatchers = struct {
	EndsWith   ClassNameMatcher
	Equals     ClassNameMatcher
	StartsWith ClassNameMatcher
}{
	"ENDS_WITH",
	"EQUALS",
	"STARTS_WITH",
}

ClassNameMatchers offers the known enum values

View Source
var FileNameMatchers = struct {
	EndsWith   FileNameMatcher
	Equals     FileNameMatcher
	StartsWith FileNameMatcher
}{
	"ENDS_WITH",
	"EQUALS",
	"STARTS_WITH",
}

FileNameMatchers offers the known enum values

View Source
var Modifiers = struct {
	Abstract Modifier
	Extern   Modifier
	Final    Modifier
	Native   Modifier
	Static   Modifier
}{
	"ABSTRACT",
	"EXTERN",
	"FINAL",
	"NATIVE",
	"STATIC",
}

Modifiers offers the known enum values

View Source
var QueueEntryPointTypes = struct {
	AWSSQS          QueueEntryPointType
	IBMMQ           QueueEntryPointType
	Jms             QueueEntryPointType
	Kafka           QueueEntryPointType
	MSMQ            QueueEntryPointType
	RabbitMQ        QueueEntryPointType
	AzureServiceBus QueueEntryPointType
	Values          func() []string
}{
	"AWS_SQS",
	"IBM_MQ",
	"JMS",
	"KAFKA",
	"MSMQ",
	"RABBIT_MQ",
	"AZURE_SERVICE_BUS",
	func() []string {
		return []string{"IBM_MQ", "JMS", "KAFKA", "MSMQ", "RABBIT_MQ", "AZURE_SERVICE_BUS"}
	},
}

QueueEntryPointTypes offers the known enum values

View Source
var Technologies = struct {
	DotNet Technology
	Go     Technology
	Java   Technology
	NodeJS Technology
	PHP    Technology
}{
	"dotNet",
	"go",
	"java",
	"nodeJS",
	"php",
}

Technologies offers the known enum values

View Source
var Visibilities = struct {
	Internal         Visibility
	PackageProtected Visibility
	Private          Visibility
	Protected        Visibility
	Public           Visibility
}{
	"INTERNAL",
	"PACKAGE_PROTECTED",
	"PRIVATE",
	"PROTECTED",
	"PUBLIC",
}

Visibilities offers the known enum values

Functions

This section is empty.

Types

type ClassNameMatcher

type ClassNameMatcher string

ClassNameMatcher has no documentation

func (ClassNameMatcher) Ref

type ClassSection

type ClassSection struct {
	Name  *string
	Match *ClassNameMatcher
}

func (*ClassSection) MarshalHCL

func (me *ClassSection) MarshalHCL(properties hcl.Properties) error

func (*ClassSection) Schema

func (me *ClassSection) Schema() map[string]*schema.Schema

func (*ClassSection) UnmarshalHCL

func (me *ClassSection) UnmarshalHCL(decoder hcl.Decoder) error

type CustomService

type CustomService struct {
	Name                string                     `json:"name"`                          // The name of the custom service, displayed in the UI
	Technology          Technology                 `json:"-"`                             // The technology of the custom service
	Order               *string                    `json:"order,omitempty"`               // The order string. Sorting custom services alphabetically by their order string determines their relative ordering. Typically this is managed by Dynatrace internally and will not be present in GET responses
	Enabled             bool                       `json:"enabled"`                       // Custom service enabled/disabled
	Rules               []*DetectionRule           `json:"rules,omitempty"`               // The list of rules defining the custom service
	QueueEntryPoint     *bool                      `json:"queueEntryPoint"`               // The queue entry point flag. Set to `true` for custom messaging services
	QueueEntryPointType *QueueEntryPointType       `json:"queueEntryPointType,omitempty"` // The queue entry point type
	ProcessGroups       []string                   `json:"processGroups,omitempty"`       // The list of process groups the custom service should belong to
	Unknowns            map[string]json.RawMessage `json:"-"`
}

CustomService has no documentation

func (*CustomService) Load

func (me *CustomService) Load(data []byte) error

func (*CustomService) MarshalHCL

func (me *CustomService) MarshalHCL(properties hcl.Properties) error

func (*CustomService) MarshalJSON

func (me *CustomService) MarshalJSON() ([]byte, error)

func (*CustomService) Schema

func (me *CustomService) Schema() map[string]*schema.Schema

func (*CustomService) Store

func (me *CustomService) Store() ([]byte, error)

func (*CustomService) UnmarshalHCL

func (me *CustomService) UnmarshalHCL(decoder hcl.Decoder) error

func (*CustomService) UnmarshalJSON

func (me *CustomService) UnmarshalJSON(data []byte) error

type DetectionRule

type DetectionRule struct {
	Enabled          bool                       `json:"enabled"`                   // Rule enabled/disabled
	FileName         *string                    `json:"fileName,omitempty"`        // The PHP file containing the class or methods to instrument. Required for PHP custom service. Not applicable to Java and .NET
	FileNameMatcher  *FileNameMatcher           `json:"fileNameMatcher,omitempty"` // Matcher applying to the file name. Default value is `ENDS_WITH` (if applicable)
	ClassName        *string                    `json:"className,omitempty"`       // The fully qualified class or interface to instrument. Required for Java and .NET custom services. Not applicable to PHP
	ClassNameMatcher *ClassNameMatcher          `json:"matcher,omitempty"`         // Matcher applying to the class name. `STARTS_WITH` can only be used if there is at least one annotation defined. Default value is `EQUALS`
	MethodRules      []*MethodRule              `json:"methodRules"`               // List of methods to instrument
	Annotations      []string                   `json:"annotations"`               // Additional annotations filter of the rule. Only classes where all listed annotations are available in the class itself or any of its superclasses are instrumented. nNot applicable to PHP
	Unknowns         map[string]json.RawMessage `json:"-"`
}

DetectionRule the defining rules for a CustomService

func (*DetectionRule) MarshalHCL

func (me *DetectionRule) MarshalHCL(properties hcl.Properties) error

func (*DetectionRule) MarshalJSON

func (me *DetectionRule) MarshalJSON() ([]byte, error)

func (*DetectionRule) Schema

func (me *DetectionRule) Schema() map[string]*schema.Schema

func (*DetectionRule) UnmarshalHCL

func (me *DetectionRule) UnmarshalHCL(decoder hcl.Decoder) error

func (*DetectionRule) UnmarshalJSON

func (me *DetectionRule) UnmarshalJSON(data []byte) error

type FileNameMatcher

type FileNameMatcher string

FileNameMatcher has no documentation

func (FileNameMatcher) Ref

func (me FileNameMatcher) Ref() *FileNameMatcher

type FileSection

type FileSection struct {
	Name  *string
	Match *FileNameMatcher
}

func (*FileSection) IsEmpty

func (me *FileSection) IsEmpty() bool

func (*FileSection) MarshalHCL

func (me *FileSection) MarshalHCL(properties hcl.Properties) error

func (*FileSection) Schema

func (me *FileSection) Schema() map[string]*schema.Schema

func (*FileSection) UnmarshalHCL

func (me *FileSection) UnmarshalHCL(decoder hcl.Decoder) error

type MethodRule

type MethodRule struct {
	MethodName    string                     `json:"methodName"`           // The method to instrument
	ArgumentTypes []string                   `json:"argumentTypes"`        // Fully qualified types of argument the method expects
	ReturnType    string                     `json:"returnType"`           // Fully qualified type the method returns
	Visibility    *Visibility                `json:"visibility,omitempty"` // The visibility of the method rule
	Modifiers     []Modifier                 `json:"modifiers,omitempty"`  // The modifiers of the method rule
	Unknowns      map[string]json.RawMessage `json:"-"`
}

MethodRule TODO: documentation

func (*MethodRule) MarshalHCL

func (me *MethodRule) MarshalHCL(properties hcl.Properties) error

func (*MethodRule) MarshalJSON

func (me *MethodRule) MarshalJSON() ([]byte, error)

func (*MethodRule) Schema

func (me *MethodRule) Schema() map[string]*schema.Schema

func (*MethodRule) UnmarshalHCL

func (me *MethodRule) UnmarshalHCL(decoder hcl.Decoder) error

func (*MethodRule) UnmarshalJSON

func (me *MethodRule) UnmarshalJSON(data []byte) error

type Modifier

type Modifier string

Modifier has no documentation

type QueueEntryPointType

type QueueEntryPointType string

QueueEntryPointType has no documentation

func (QueueEntryPointType) Ref

type Technology

type Technology string

Technology has no documentation

type Visibility

type Visibility string

Visibility has no documentation

func (Visibility) Ref

func (me Visibility) Ref() *Visibility

Jump to

Keyboard shortcuts

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