Documentation ¶
Index ¶
- func GenerateExternalID(c coordinate.Coordinate) (string, error)
- func GenerateUUIDFromConfigId(projectUniqueId string, configId string) string
- func GenerateUUIDFromCoordinate(c coordinate.Coordinate) string
- func GenerateUUIDFromString(data string) string
- func GetNumericIDForObjectID(objectID string) (int, error)
- func IsMeId(id string) bool
- func IsUUID(configId string) bool
- type ExternalIDGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateExternalID ¶
func GenerateExternalID(c coordinate.Coordinate) (string, error)
GenerateExternalID generates a string that serves as an external ID for a Settings 2.0 object. It requires a [coordinate.Coordinate] as input and produces a string in the format "monaco:<BASE64_ENCODED_STR>" If Type or ConfigId of the passed [coordinate.Coordinate] is empty, an error is returned
func GenerateUUIDFromConfigId ¶
GenerateUUIDFromConfigId takes the unique project identifier within an environment, a config id and generates a valid UUID based on provided information
func GenerateUUIDFromCoordinate ¶
func GenerateUUIDFromCoordinate(c coordinate.Coordinate) string
GenerateUUIDFromCoordinate generates a UUID out of a configs coordinate. This uses GenerateUUIDFromString to generate a stable (same coordinate == same UUID) UUID v3 (MD5 hash based) with a "dynatrace.com" URL namespace UUID.
func GenerateUUIDFromString ¶
GenerateUUIDFromString generates a fixed UUID from a given string - usually a configuration name. This is used when dealing with select Dynatrace APIs that do not/or no longer support unique name properties. As a convention between monaco and such APIs, both monaco and Dynatrace will generate the same name-based UUID using UUID v3 (MD5 hash based) with a "dynatrace.com" URL namespace UUID.
func GetNumericIDForObjectID ¶
GetNumericIDForObjectID parses the Settings Object ID of a Dynatrace Management Zone (only object with numeric IDs) into a numeric identifier. To achieve this it replicates the en-/decoding logic used in Dynatrace as closely as possible.
Types ¶
type ExternalIDGenerator ¶
type ExternalIDGenerator func(coordinate.Coordinate) (string, error)