Interface QueryService

All Known Implementing Classes:
QueryServiceImpl

public interface QueryService
  • Method Details

    • getQueryDefinitionModel

      QueryDefinitionModel getQueryDefinitionModel(String queryDefinitionKey, String tenantId)
    • executeQuery

      tools.jackson.databind.JsonNode executeQuery(String queryDefinitionKey, String tenantId, Map<String,tools.jackson.databind.JsonNode> queryPayload)
    • executeQuery

      tools.jackson.databind.JsonNode executeQuery(String queryDefinitionKey, String tenantId, Map<String,tools.jackson.databind.JsonNode> queryPayload, boolean applyTenantAsDataFilter)
      Same as executeQuery(String, String, Map), but when applyTenantAsDataFilter is true and a non-blank tenantId is provided, the tenantId is additionally applied as a data filter on the executed query (for STANDARD queries). Use this for tenant-scoped views (e.g. the agent dashboards) so that a resolved tenant limits the returned data and not only the query definition that is looked up. A blank/null tenantId (e.g. a super admin browsing across all tenants) leaves the results unfiltered.