Documentation ¶
Index ¶
- Variables
- func Client(c rest.Client, schemaID string) rest.Client
- func DefaultClient(envURL string, apiToken string, schemaID string) rest.Client
- func EmptyList(schemaID string) rest.Request
- func Get(schemaID string, id string, serviceSchemaID string) rest.Request
- func List(schemaID string) rest.Request
- func Request(f Finisher) rest.Request
- type CredentialsVaultListLocal
- type Finisher
- type GetCredentialsVaultRequest
- func (me *GetCredentialsVaultRequest) Expect(codes ...int) rest.Request
- func (me *GetCredentialsVaultRequest) Finish(vs ...any) error
- func (me *GetCredentialsVaultRequest) OnResponse(func(resp *http.Response)) rest.Request
- func (me *GetCredentialsVaultRequest) Payload(any) rest.Request
- func (me *GetCredentialsVaultRequest) Raw() ([]byte, error)
- type GetSLORequest
- type GetSettings20Request
- func (me *GetSettings20Request) Expect(codes ...int) rest.Request
- func (me *GetSettings20Request) Finish(vs ...any) error
- func (me *GetSettings20Request) OnResponse(func(resp *http.Response)) rest.Request
- func (me *GetSettings20Request) Payload(any) rest.Request
- func (me *GetSettings20Request) Raw() ([]byte, error)
- type GetV1
- type ListCredentialsVaultRequest
- func (me *ListCredentialsVaultRequest) Expect(codes ...int) rest.Request
- func (me *ListCredentialsVaultRequest) Finish(vs ...any) error
- func (me *ListCredentialsVaultRequest) OnResponse(func(resp *http.Response)) rest.Request
- func (me *ListCredentialsVaultRequest) Payload(any) rest.Request
- func (me *ListCredentialsVaultRequest) Raw() ([]byte, error)
- type ListDashboardsV1
- type ListMonitorsV1
- type ListPrivateSyntheticLocationsV1
- type ListSLORequest
- type ListSettings20Request
- func (me *ListSettings20Request) Expect(codes ...int) rest.Request
- func (me *ListSettings20Request) Finish(vs ...any) error
- func (me *ListSettings20Request) OnResponse(func(resp *http.Response)) rest.Request
- func (me *ListSettings20Request) Payload(any) rest.Request
- func (me *ListSettings20Request) Raw() ([]byte, error)
- type ListV1
- type NonSupportedV1
- type SettingsObject
- type SettingsObjectList
- type SettingsObjectListItem
Constants ¶
This section is empty.
Variables ¶
View Source
var CACHE_FOLDER = os.Getenv("DYNATRACE_MIGRATION_CACHE_FOLDER")
View Source
var REGEX_APPLICATIONS_MOBILE_GET, _ = regexp.Compile(`\/api\/config\/v1\/applications\/mobile\/([^\/]*)$`)
View Source
var REGEX_APPLICATIONS_MOBILE_KEY_USER_ACTIONS_GET, _ = regexp.Compile(`\/api\/config\/v1\/applications\/mobile\/([^\/]*)\/keyUserActions$`)
View Source
var REGEX_APPLICATIONS_MOBILE_KEY_USER_ACTION_AND_SESSION_PROPERTIES_GET, _ = regexp.Compile(`\/api\/config\/v1\/applications\/mobile\/([^\/]*)\/userActionAndSessionProperties/([^\/]*)$`)
View Source
var REGEX_APPLICATIONS_MOBILE_KEY_USER_ACTION_AND_SESSION_PROPERTIES_LIST, _ = regexp.Compile(`\/api\/config\/v1\/applications\/mobile\/([^\/]*)\/userActionAndSessionProperties$`)
View Source
var REGEX_APPLICATIONS_MOBILE_LIST, _ = regexp.Compile(`\/api\/config\/v1\/applications\/mobile$`)
View Source
var REGEX_APPLICATIONS_WEB_ERROR_RULES_GET, _ = regexp.Compile(`\/api\/config\/v1\/applications\/web\/([^\/]*)\/errorRules$`)
View Source
var REGEX_APPLICATIONS_WEB_GET, _ = regexp.Compile(`\/api\/config\/v1\/applications\/web\/([^\/]*)$`)
View Source
var REGEX_APPLICATIONS_WEB_KEY_USER_ACTIONS_GET, _ = regexp.Compile(`\/api\/config\/v1\/applications\/web\/([^\/]*)\/keyUserActions$`)
View Source
var REGEX_APPLICATIONS_WEB_LIST, _ = regexp.Compile(`\/api\/config\/v1\/applications\/web$`)
View Source
var REGEX_APPLICATION_DETECTION_RULES_GET, _ = regexp.Compile(`\/api\/config\/v1\/applicationDetectionRules\/([^\/]*)$`)
View Source
var REGEX_APPLICATION_DETECTION_RULES_LIST, _ = regexp.Compile(`\/api\/config\/v1\/applicationDetectionRules$`)
View Source
var REGEX_AWS_CREDENTIALS_GET, _ = regexp.Compile(`\/api\/config\/v1\/aws\/credentials\/([^\/]*)$`)
View Source
var REGEX_AWS_CREDENTIALS_LIST, _ = regexp.Compile(`\/api\/config\/v1\/aws\/credentials$`)
View Source
var REGEX_AZURE_CREDENTIALS_GET, _ = regexp.Compile(`\/api\/config\/v1\/azure\/credentials\/([^\/]*)$`)
View Source
var REGEX_AZURE_CREDENTIALS_LIST, _ = regexp.Compile(`\/api\/config\/v1\/azure\/credentials$`)
View Source
var REGEX_BROWSER_MONITOR_LIST, _ = regexp.Compile(`\/api\/v1\/synthetic\/monitors\?type=BROWSER$`)
View Source
var REGEX_CALCULATED_METRICS_MOBILE_GET, _ = regexp.Compile(`\/api\/config\/v1\/calculatedMetrics\/mobile\/([^\/]*)$`)
View Source
var REGEX_CALCULATED_METRICS_MOBILE_LIST, _ = regexp.Compile(`\/api\/config\/v1\/calculatedMetrics\/mobile$`)
View Source
var REGEX_CALCULATED_METRICS_RUM_GET, _ = regexp.Compile(`\/api\/config\/v1\/calculatedMetrics\/rum\/([^\/]*)$`)
View Source
var REGEX_CALCULATED_METRICS_RUM_LIST, _ = regexp.Compile(`\/api\/config\/v1\/calculatedMetrics\/rum$`)
View Source
var REGEX_CALCULATED_METRICS_SERVICE_GET, _ = regexp.Compile(`\/api\/config\/v1\/calculatedMetrics\/service\/([^\/]*)$`)
View Source
var REGEX_CALCULATED_METRICS_SERVICE_LIST, _ = regexp.Compile(`\/api\/config\/v1\/calculatedMetrics\/service$`)
View Source
var REGEX_CALCULATED_METRICS_SYNTHETIC_GET, _ = regexp.Compile(`\/api\/config\/v1\/calculatedMetrics\/synthetic\/([^\/]*)$`)
View Source
var REGEX_CALCULATED_METRICS_SYNTHETIC_LIST, _ = regexp.Compile(`\/api\/config\/v1\/calculatedMetrics\/synthetic$`)
View Source
var REGEX_CONDITIONAL_NAMING_HOST_GET, _ = regexp.Compile(`\/api\/config\/v1\/conditionalNaming\/host\/([^\/]*)$`)
View Source
var REGEX_CONDITIONAL_NAMING_HOST_LIST, _ = regexp.Compile(`\/api\/config\/v1\/conditionalNaming\/host$`)
View Source
var REGEX_CONDITIONAL_NAMING_PG_GET, _ = regexp.Compile(`\/api\/config\/v1\/conditionalNaming\/processGroup\/([^\/]*)$`)
View Source
var REGEX_CONDITIONAL_NAMING_PG_LIST, _ = regexp.Compile(`\/api\/config\/v1\/conditionalNaming\/processGroup$`)
View Source
var REGEX_CONDITIONAL_NAMING_SERVICE_GET, _ = regexp.Compile(`\/api\/config\/v1\/conditionalNaming\/service\/([^\/]*)$`)
View Source
var REGEX_CONDITIONAL_NAMING_SERVICE_LIST, _ = regexp.Compile(`\/api\/config\/v1\/conditionalNaming\/service$`)
View Source
var REGEX_CREDENTIALS_LIST, _ = regexp.Compile(`\/api\/config\/v1\/credentials$`)
View Source
var REGEX_CREDENTIALS_VAULT_GET, _ = regexp.Compile(`\/api\/v2\/credentials\/([^\/]*)$`)
View Source
var REGEX_CREDENTIALS_VAULT_LIST, _ = regexp.Compile(`\/api\/v2\/credentials$`)
View Source
var REGEX_CUSTOM_SERVICE_DOTNET_GET, _ = regexp.Compile(`\/api\/config\/v1\/service\/customServices\/dotNet\/([^\/]*)$`)
View Source
var REGEX_CUSTOM_SERVICE_DOTNET_LIST, _ = regexp.Compile(`\/api\/config\/v1\/service\/customServices\/dotNet$`)
View Source
var REGEX_CUSTOM_SERVICE_GOLANG_GET, _ = regexp.Compile(`\/api\/config\/v1\/service\/customServices\/go\/([^\/]*)$`)
View Source
var REGEX_CUSTOM_SERVICE_GOLANG_LIST, _ = regexp.Compile(`\/api\/config\/v1\/service\/customServices\/go$`)
View Source
var REGEX_CUSTOM_SERVICE_JAVA_GET, _ = regexp.Compile(`\/api\/config\/v1\/service\/customServices\/java\/([^\/]*)$`)
View Source
var REGEX_CUSTOM_SERVICE_JAVA_LIST, _ = regexp.Compile(`\/api\/config\/v1\/service\/customServices\/java$`)
View Source
var REGEX_CUSTOM_SERVICE_NODEJS_GET, _ = regexp.Compile(`\/api\/config\/v1\/service\/customServices\/nodeJS\/([^\/]*)$`)
View Source
var REGEX_CUSTOM_SERVICE_NODEJS_LIST, _ = regexp.Compile(`\/api\/config\/v1\/service\/customServices\/nodeJS$`)
View Source
var REGEX_CUSTOM_SERVICE_PHP_GET, _ = regexp.Compile(`\/api\/config\/v1\/service\/customServices\/php\/([^\/]*)$`)
View Source
var REGEX_CUSTOM_SERVICE_PHP_LIST, _ = regexp.Compile(`\/api\/config\/v1\/service\/customServices\/php$`)
View Source
var REGEX_DASHBOARDS_GET, _ = regexp.Compile(`\/api\/config\/v1\/dashboards\/([^\/]*)$`)
View Source
var REGEX_DASHBOARDS_LIST, _ = regexp.Compile(`\/api\/config\/v1\/dashboards$`)
View Source
var REGEX_DASHBOARD_SHARING_GET, _ = regexp.Compile(`\/api\/config\/v1\/dashboards\/([^\/]*)\/shareSettings$`)
View Source
var REGEX_HTTP_MONITOR_LIST, _ = regexp.Compile(`\/api\/v1\/synthetic\/monitors\?type=HTTP$`)
View Source
var REGEX_MONITOR_GET, _ = regexp.Compile(`\/api\/v1\/synthetic\/monitors\/([^\/]*)$`)
View Source
var REGEX_NETWORK_ZONES_GET, _ = regexp.Compile(`\/api\/v2\/networkZones\/([^\/]*)$`)
View Source
var REGEX_NETWORK_ZONES_LIST, _ = regexp.Compile(`\/api\/v2\/networkZones`)
View Source
var REGEX_PRIVATE_SYNTHETIC_LOCATIONS_GET, _ = regexp.Compile(`\/api\/v1\/synthetic\/locations\/([^\/]*)$`)
View Source
var REGEX_PRIVATE_SYNTHETIC_LOCATIONS_LIST, _ = regexp.Compile(`\/api\/v1\/synthetic\/locations\?type=PRIVATE$`)
View Source
var REGEX_REQUEST_ATTRIBUTES_GET, _ = regexp.Compile(`\/api\/config\/v1\/service\/requestAttributes\/([^\/?]*)\?includeProcessGroupReferences=true$`)
View Source
var REGEX_REQUEST_ATTRIBUTES_LIST, _ = regexp.Compile(`\/api\/config\/v1\/service\/requestAttributes$`)
View Source
var REGEX_REQUEST_NAMING_GET, _ = regexp.Compile(`\/api\/config\/v1\/service\/requestNaming\/([^\/]*)$`)
View Source
var REGEX_REQUEST_NAMING_LIST, _ = regexp.Compile(`\/api\/config\/v1\/service\/requestNaming$`)
View Source
var REGEX_REQUEST_SLO_GET, _ = regexp.Compile(`\/api\/v2\/slo\/([^\/]*)$`)
View Source
var REGEX_REQUEST_SLO_LIST, _ = regexp.Compile(`\/api\/v2\/slo\?pageSize`)
View Source
var REGEX_SETTINGS_20_GET, _ = regexp.Compile(`\/api\/v2\/settings\/objects\/(.*)`)
View Source
var REGEX_SETTINGS_20_LIST, _ = regexp.Compile(`\/api\/v2\/settings\/objects\?schemaIds=([^\&]*)&`)
View Source
var STRICT_CACHE = os.Getenv("DYNATRACE_MIGRATION_CACHE_STRICT") == "true"
Functions ¶
func DefaultClient ¶
Types ¶
type CredentialsVaultListLocal ¶ added in v1.52.0
type CredentialsVaultListLocal struct { Credentials []vault.CredentialsResponseElement `json:"credentials"` // A list of credentials sets for Synthetic monitors. PageSize *int32 `json:"pageSize"` NextPageKey *string `json:"nextPageKey,omitempty"` TotalCount *int64 `json:"totalCount"` }
type GetCredentialsVaultRequest ¶ added in v1.52.0
func (*GetCredentialsVaultRequest) Expect ¶ added in v1.52.0
func (me *GetCredentialsVaultRequest) Expect(codes ...int) rest.Request
func (*GetCredentialsVaultRequest) Finish ¶ added in v1.52.0
func (me *GetCredentialsVaultRequest) Finish(vs ...any) error
func (*GetCredentialsVaultRequest) OnResponse ¶ added in v1.52.0
func (me *GetCredentialsVaultRequest) OnResponse(func(resp *http.Response)) rest.Request
func (*GetCredentialsVaultRequest) Payload ¶ added in v1.52.0
func (me *GetCredentialsVaultRequest) Payload(any) rest.Request
func (*GetCredentialsVaultRequest) Raw ¶ added in v1.52.0
func (me *GetCredentialsVaultRequest) Raw() ([]byte, error)
type GetSLORequest ¶
func (*GetSLORequest) Finish ¶
func (me *GetSLORequest) Finish(vs ...any) error
func (*GetSLORequest) OnResponse ¶
func (me *GetSLORequest) OnResponse(func(resp *http.Response)) rest.Request
func (*GetSLORequest) Raw ¶
func (me *GetSLORequest) Raw() ([]byte, error)
type GetSettings20Request ¶
func (*GetSettings20Request) Expect ¶
func (me *GetSettings20Request) Expect(codes ...int) rest.Request
func (*GetSettings20Request) Finish ¶
func (me *GetSettings20Request) Finish(vs ...any) error
func (*GetSettings20Request) OnResponse ¶
func (me *GetSettings20Request) OnResponse(func(resp *http.Response)) rest.Request
func (*GetSettings20Request) Raw ¶
func (me *GetSettings20Request) Raw() ([]byte, error)
type ListCredentialsVaultRequest ¶ added in v1.52.0
type ListCredentialsVaultRequest struct {
SchemaID string
}
func (*ListCredentialsVaultRequest) Expect ¶ added in v1.52.0
func (me *ListCredentialsVaultRequest) Expect(codes ...int) rest.Request
func (*ListCredentialsVaultRequest) Finish ¶ added in v1.52.0
func (me *ListCredentialsVaultRequest) Finish(vs ...any) error
func (*ListCredentialsVaultRequest) OnResponse ¶ added in v1.52.0
func (me *ListCredentialsVaultRequest) OnResponse(func(resp *http.Response)) rest.Request
func (*ListCredentialsVaultRequest) Payload ¶ added in v1.52.0
func (me *ListCredentialsVaultRequest) Payload(any) rest.Request
func (*ListCredentialsVaultRequest) Raw ¶ added in v1.52.0
func (me *ListCredentialsVaultRequest) Raw() ([]byte, error)
type ListDashboardsV1 ¶ added in v1.52.0
type ListDashboardsV1 struct{}
func (*ListDashboardsV1) Finish ¶ added in v1.52.0
func (me *ListDashboardsV1) Finish(v any) error
type ListMonitorsV1 ¶ added in v1.30.2
type ListMonitorsV1 struct {
Prefix string
}
func (*ListMonitorsV1) Finish ¶ added in v1.30.2
func (me *ListMonitorsV1) Finish(v any) error
type ListPrivateSyntheticLocationsV1 ¶ added in v1.30.2
type ListPrivateSyntheticLocationsV1 struct{}
func (*ListPrivateSyntheticLocationsV1) Finish ¶ added in v1.30.2
func (me *ListPrivateSyntheticLocationsV1) Finish(v any) error
type ListSLORequest ¶
type ListSLORequest struct {
SchemaID string
}
func (*ListSLORequest) Finish ¶
func (me *ListSLORequest) Finish(vs ...any) error
func (*ListSLORequest) OnResponse ¶
func (me *ListSLORequest) OnResponse(func(resp *http.Response)) rest.Request
func (*ListSLORequest) Raw ¶
func (me *ListSLORequest) Raw() ([]byte, error)
type ListSettings20Request ¶
type ListSettings20Request struct {
SchemaID string
}
func (*ListSettings20Request) Expect ¶
func (me *ListSettings20Request) Expect(codes ...int) rest.Request
func (*ListSettings20Request) Finish ¶
func (me *ListSettings20Request) Finish(vs ...any) error
func (*ListSettings20Request) OnResponse ¶
func (me *ListSettings20Request) OnResponse(func(resp *http.Response)) rest.Request
func (*ListSettings20Request) Raw ¶
func (me *ListSettings20Request) Raw() ([]byte, error)
type NonSupportedV1 ¶
type NonSupportedV1 struct {
SchemaID string
}
func (*NonSupportedV1) Finish ¶
func (me *NonSupportedV1) Finish(v any) error
type SettingsObject ¶
type SettingsObject struct { SchemaVersion string `json:"schemaVersion"` SchemaID string `json:"schemaId"` Scope string `json:"scope"` Value json.RawMessage `json:"value"` }
type SettingsObjectList ¶
type SettingsObjectList struct { Items []*SettingsObjectListItem `json:"items"` NextPageKey *string `json:"nextPageKey,omitempty"` }
type SettingsObjectListItem ¶
type SettingsObjectListItem struct { ObjectID string `json:"objectId"` Scope string `json:"scope"` SchemaVersion string `json:"schemaVersion"` Value json.RawMessage `json:"value"` }
Click to show internal directories.
Click to hide internal directories.