Hello @kferterb,
Here is the Dynatrace Documentation article about the creation of custom services:
Custom services API - POST a custom service rule
Let us know, if this article helped you. If not, I’ll post your questions to our internal channels and try to find an answer for you