Documentation
¶
Index ¶
- func ResolvePropValue(key string, props map[string]any) (any, bool)
- type EntityMap
- func (r *EntityMap) Get() map[coordinate.Coordinate]ResolvedEntity
- func (r *EntityMap) GetResolvedEntity(config coordinate.Coordinate) (ResolvedEntity, bool)
- func (r *EntityMap) GetResolvedProperty(coordinate coordinate.Coordinate, propertyName string) (any, bool)
- func (r *EntityMap) Put(resolvedEntity ResolvedEntity)
- type ResolvedEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolvePropValue ¶
The ResolvePropValue function is designed to work with nested maps where keys are structured using dots to represent nested levels. It recursively traverses the nested maps to find the value associated with the specified key.
If the key is found, the function returns the associated value and true. If the key is not found, it returns nil and false.
Types ¶
type EntityMap ¶
type EntityMap struct {
// contains filtered or unexported fields
}
func (*EntityMap) Get ¶
func (r *EntityMap) Get() map[coordinate.Coordinate]ResolvedEntity
func (*EntityMap) GetResolvedEntity ¶
func (r *EntityMap) GetResolvedEntity(config coordinate.Coordinate) (ResolvedEntity, bool)
func (*EntityMap) GetResolvedProperty ¶
func (r *EntityMap) GetResolvedProperty(coordinate coordinate.Coordinate, propertyName string) (any, bool)
func (*EntityMap) Put ¶
func (r *EntityMap) Put(resolvedEntity ResolvedEntity)
type ResolvedEntity ¶
type ResolvedEntity struct {
// Coordinate of the config.Config this entity represents
Coordinate coordinate.Coordinate
// Properties defines a map of all already resolved parameters
Properties parameter.Properties
// Skip flag indicating that this entity was skipped
// if an entity is skipped, there will be no properties
Skip bool
}
ResolvedEntity represents the Dynatrace configuration entity of a config.Config
Click to show internal directories.
Click to hide internal directories.