Hello!
For querying info about entities relations we use relationships field, and all works fine.
But now this field marked as deprecated, and relatedEntites recommended for usage instead.
Unfortunately, relatedEntites not works properly for entityTypes like ‘APM_DATABASE_INSTANCE_ENTITY’ or ‘APM_EXTERNAL_SERVICE_ENTITY’.
Example response for relationships field:
{
“target”: {
“entity”: {
“entityType”: “APM_DATABASE_INSTANCE_ENTITY”,
“guid”: “MTQ3MTgyNnxBUE18REJfSU5TVEFOQ0V8UG9zdGdyZXN8ZHdoLnNreWVuZy5saW5rfDE1NDM5”,
“host”: “ex.sample.link”,
“name”: “Postgres”,
“portOrPath”: “15439”
}
}
}
Response for relatedEntites:
{
“target”: {
“entity”: {
“entityType”: “UNAVAILABLE_ENTITY”,
“guid”: “MTQ3MTgyNnxBUE18REJfSU5TVEFOQ0V8UG9zdGdyZXN8ZHdoLnNreWVuZy5saW5rfDE1NDM5”,
“name”: null,
“type”: “DB_INSTANCE”
}
}
},
So, for same related entity, we got different results. My question is: how should i use relatedEntites field to get correct entity response?