call new /environment/settings api
talk with @borisermakof for more details about the request-response contract
Request:
GET environment=,environmentId=
Response:
{
AnalyzeUsageCriticality: # true/false
}
if AnalyzeUsageCriticality is true:
Show in the asset card the "Performance impact" label
Show the sort by "Performance impact"
else
Hide both of them
we need to make sure new plugin can still work with the old backend and the opposite.
related to issue: https://github.com/digma-ai/digma-collector-backend/issues/1739