Unfortunately the API endpoint for service request naming is missing the correct documentation and some examples.
I can configure service request naming rules via the UI that use request attributes/placeholders from downstream services. It seems that this is also possible via the API for global request naming rules however the documentation lacks. I've tried to reverse-engineer by trial and error the proper payload to create such a naming rule via API but I'm stuck with an error message that doesn't make much sense.
This is the rule in the UI that I want to create a JSON payload for:
I believe the correct JSON representation would be this (the API documentation e.g. completely lacks the useFromChildCalls option for the conditions section:
When posting this to the endpoint /api/config/v1/service/requestNaming however it complains that the "condition needs to marked as service property" anyone from Dynatrace can explain this error message and point to a reference how one would create this rule?
@Chad T.not much progress yet. I'm in contact with my former colleagues but the only hint I got via support is to add a restriction by managementZone to the payload. I did this and the POST was validated and accepted. (though this isn't what I want/can do - I do not have any managementzones here).
However, once this requestnaming rule was then posted the UI to view these rules in the settings was broken and couldn't be accessed anymore:
So, for now....kids don't try this at home 🙂