Gets parameters of the specified custom service rule.
The request produces an application/json
payload.
GET | SaaS | https://{your-environment-id}.live.dynatrace.com/api/config/v1/service/customServices/{technology}/{id} |
Environment ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/config/v1/service/customServices/{technology}/{id} |
To execute this request, you need an access token with ReadConfig
scope.
To learn how to obtain and use it, see Tokens and authentication.
Technology of the custom service you're inquiring.
dotNet
go
java
nodeJS
php
The ID of the custom service you're inquiring.
Flag to include process group references to the response.
Process group references aren't compatible across environments.
false
is used if the value is not set.
CustomService
objectCustom service enabled/disabled.
The ID of the custom service.
The name of the custom service, displayed in the UI.
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.
The list of process groups the custom service should belong to.
The queue entry point flag.
Set to true
for custom messaging services.
The queue entry point type..
AWS_SQS
AZURE_SERVICE_BUS
IBM_MQ
JMS
KAFKA
MSMQ
RABBIT_MQ
ConfigurationMetadata
objectMetadata useful for debugging
Dynatrace version.
A sorted list of the version numbers of the configuration.
A sorted list of version numbers of the configuration.
DetectionRule
objectAdditional annotations filter of the rule.
Only classes where all listed annotations are available in the class itself or any of its superclasses are instrumented.
Not applicable to PHP.
The fully qualified class or interface to instrument.
Required for Java and .NET custom services.
Not applicable to PHP.
Rule enabled/disabled.
The PHP file containing the class or methods to instrument.
Required for PHP custom service.
Not applicable to Java and .NET.
Matcher applying to the file name. Default value is ENDS_WITH
(if applicable).
ENDS_WITH
EQUALS
STARTS_WITH
The ID of the detection rule.
Matcher applying to the class name. STARTS_WITH
can only be used if there is at least one annotation defined. Default value is EQUALS
.
ENDS_WITH
EQUALS
STARTS_WITH
MethodRule
objectFully qualified types of argument the method expects.
The ID of the method rule.
The method to instrument.
The modifiers of the method rule.
ABSTRACT
EXTERN
FINAL
NATIVE
STATIC
Fully qualified type the method returns.
The visibility of the method rule.
INTERNAL
PACKAGE_PROTECTED
PRIVATE
PROTECTED
PUBLIC
{"enabled": true,"name": "CustomService","queueEntryPoint": false,"rules": [{"className": "com.your.company.ClassName","enabled": true,"methodRules": [{"argumentTypes": ["java.lang.String"],"methodName": "AMethod","returnType": "void"}]}]}