Oracle Query API

The query API from Oracle — 2 operation(s) for query.

Documentation

📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/access-governance-cp/20220518/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/adm/20220421/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/advisor/20200606/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/ai-data-platform/20240831/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/analytics/20190331/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/announcements/0.0.1/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/api-gateway/20190501/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/apm-config/20210201/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/apm-control-plane/20200630/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/apm-synthetic-monitoring/20200630/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/apm-trace-explorer/20200630/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/audit/20190901/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/autoscaling/20181001/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/bastion/20210331/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/batch/20251031/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/bigdata/20190531/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/blockchain/20191010/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/budgets/20190111/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/certificates/20210224/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/certificatesmgmt/20210224/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/cloud-guard/20200131/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/clusterplacementgroups/20230801/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/compute-cloud-at-customer/20221208/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/container-instances/20210415/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/container-registry/20180419/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/containerengine/20180222/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/cost-anomaly/20190111/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/dashboard/20210731/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/data-catalog/20190325/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/data-flow/20200129/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/data-integration/20200430/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/data-safe/20181201/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/data-science/20190101/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/database-management/20201101/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/database-migration/20230518/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/database-multicloud-integrations/20240501/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/database/20160918/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/database-tools/20201005/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/database-tools-runtime/20230222/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/datacc/20251101/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/datalabeling-dp/20211001/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/datalabeling/20211001/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/delegate-access-control/20230801/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/devops/20210630/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/digital-assistant/20190506/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/disaster-recovery/20220125/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/dms/20211101/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/dns/20180115/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/document-understanding/20221109/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/edsfu/20220528/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/emaildelivery/20170907/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/emaildeliverysubmission/20220926/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/events/20181201/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/filestorage/20171215/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/fleet-management/20250228/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/functions/20181201/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/functionsdocgenpbf/1.0/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/fusion-applications/20211201/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai-agents-client/20240531/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai-agents/20240531/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai-inference/20231130/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai-nl2sql/20260325/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/generative-ai/20231130/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/generic/20160918/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/globally-distributed-database/20250101/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/goldengate/20200407/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/healthchecks/20180501/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/iaas/20160918/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/identity-domains/v1/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/identity-dp/v1/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/identity/20160918/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/incidentmanagement/20181231/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/instanceagent/20180530/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/integration/20190131/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/iot/20250531/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/itas/v1/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/jms-java-download/20230601/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/jms/20210610/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/jms-utils/20250521/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/kafka/20240901/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/key/release/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/language/20221001/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/licensemanager/20220430/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/limits-increase/20251101/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/limits/20181025/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/loadbalancer/20170115/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/logan-api-spec/20200601/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/logging-dataplane/20200831/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/logging-management/20200531/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/logging-search/20190909/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/lustre/20250228/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/managed-access/20220126/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/management-agent/20200202/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/managementdashboard/20200901/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/marketplace/20181001/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/mngdmac/20250320/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/monitoring/20180401/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/multicloud-omhub-cp/20180828/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/mysql/20190415/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/NetMonitor/20160918/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/network-firewall/20211001/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/network-firewall/20230501/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/networkloadbalancer/20200501/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/nosql-database/20190828/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/notification/20181201/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/objectstorage/20160918/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/OCB/20220509/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/occ/20230515/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/occds/20240430/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/occm/20231107/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/ocicache/20220315/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/ocm/20220919/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/opa/20210621/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/opensearch/20180828/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/operations-insights/20200630/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/operatoraccesscontrol/20200630/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/oracle-api-access-control/20241130/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/organizations/20230401/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/organizations/20200801/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/osmh/20220901/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/postgresql/20220915/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/psasvc/20240301/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/publisher/20241201/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/queue/20210201/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/recovery-service/20210216/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/registry/20160918/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/resource-analytics/20241031/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/resource-discovery-monitoring-control-api/20210330/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/resource-scheduler/20240430/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/resourcemanager/20180917/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/rover/20201210/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/s3objectstorage/20160918/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/scanning/20210215/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/search/20180409/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/secretmgmt/20180608/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/secretretrieval/20190301/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/secure-desktops/20220618/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/security-attribute/20240815/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/self/20260129/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/service-catalog/20210527/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/serviceconnectors/20200909/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/smp/20210914/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/speech/20220101/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/stack-monitoring/20210330/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/streaming/20180418/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/threat-intel/20220901/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/usage/20200107/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/usage-proxy/20190111/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/vision/20220125/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/visual-builder/20210601/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/visual-builder-studio/20180828/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/vmware/20200501/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/vmware/20230701/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/waa/20211230/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/waas/20181116/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/waf/20210930/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/wlms/20241101/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/workrequests/20160918/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/zero-trust-packet-routing/20240301/
📖
APIReference
https://docs.oracle.com/en-us/iaas/api/#/en/zero-trust-packet-routing-tools/20240301/

Specifications

OpenAPI Specification

oracle-query-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: 'Use the Application Performance Monitoring Trace Explorer API to query traces and associated spans in Trace Explorer. For more information, see [Application Performance Monitoring](https://docs.oracle.com/iaas/application-performance-monitoring/index.html).

    '
  license:
    name: Oracle Corporation
  title: Application Performance Monitoring Trace Explorer Query API
  version: '20200630'
  x-provenance:
    method: harvested
    first_party: true
    publisher: Oracle
    source: https://docs.oracle.com/en-us/iaas/api/specs/d1cc8021a03784e751fe54c779074681c153f47a8bd2975f098d6c8988748126.yaml
    harvested: '2026-08-04'
    note: Published by Oracle as the contract for the Application Performance Monitoring Trace Explorer API OCI service and stored verbatim; API Evangelist added only this provenance block.
  x-evidence:
  - url: https://docs.oracle.com/en-us/iaas/api/specs/index.json
    what: Oracle's own index of every OCI service specification
  - url: https://docs.oracle.com/en-us/iaas/api/specs/d1cc8021a03784e751fe54c779074681c153f47a8bd2975f098d6c8988748126.yaml
    what: the harvested document for Application Performance Monitoring Trace Explorer API
servers:
- url: http://apm-trace.{region}.oci.{secondLevelDomain}/20200630
- url: https://apm-trace.{region}.oci.{secondLevelDomain}/20200630
tags:
- name: query
paths:
  /queries/actions/runQuery:
    post:
      description: 'Retrieves the results (selected attributes and aggregations) of a query constructed according to the Application Performance Monitoring Defined Query Syntax.

        Query results are filtered by the filter criteria specified in the where clause.

        Further query results are grouped by the attributes specified in the group by clause.  Finally,

        ordering (asc/desc) is done by the specified attributes in the order by clause.

        '
      operationId: Query
      parameters:
      - $ref: '#/components/parameters/RequestIdHeader'
      - $ref: '#/components/parameters/ApmDomainIdQueryParam'
      - $ref: '#/components/parameters/PaginationLimitQueryParam'
      - $ref: '#/components/parameters/PaginationTokenQueryParam'
      - $ref: '#/components/parameters/SpanStartTimeGreaterThanOrEqualToParam'
      - $ref: '#/components/parameters/SpanStartTimeLessThanParam'
      responses:
        200:
          description: 'A response containing the query result set (selected attributes and aggregations) filtered, grouped and

            sorted by the specified criteria, and the associated summary describing the query result metadata is retrieved.

            '
          headers:
            opc-next-page:
              description: 'For pagination of a list of items. When paging through a list, if this header appears in the response,

                then a partial list might have been returned. Include this value as the page parameter for the

                subsequent GET request to get the next batch of items.

                '
              schema:
                type: string
            opc-request-id:
              description: 'Unique Oracle-assigned identifier for the request. If you need to contact

                Oracle about a particular request, please provide the request ID.

                '
              schema:
                type: string
            opc-total-items:
              description: 'The total number of items that match the query.

                '
              schema:
                type: integer
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QueryResultResponse'
        400:
          $ref: '#/components/responses/400'
        401:
          $ref: '#/components/responses/401'
        404:
          $ref: '#/components/responses/404'
        412:
          $ref: '#/components/responses/412'
        429:
          $ref: '#/components/responses/429'
        500:
          $ref: '#/components/responses/500'
        default:
          $ref: '#/components/responses/DefaultError'
      summary: Query a trace, span, or service using the Application Performance Monitoring query syntax, and retrieve results (attributes and aggregations) for the queried entity.
      tags:
      - query
      x-related-resource: '#/definitions/QueryResultResponse'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QueryDetails'
        description: 'Request body containing the query to be run against the trace data and to filter and

          retrieve trace data results.

          '
        required: true
  /queries/quickPicks:
    get:
      description: 'Returns a list of predefined Quick Pick queries intended to assist the user

        to choose a query to run.  There is no sorting applied on the results.

        '
      operationId: ListQuickPicks
      parameters:
      - $ref: '#/components/parameters/RequestIdHeader'
      - $ref: '#/components/parameters/ApmDomainIdQueryParam'
      - $ref: '#/components/parameters/PaginationLimitQueryParam'
      - $ref: '#/components/parameters/PaginationTokenQueryParam'
      responses:
        200:
          description: 'A collection of predefined Quick Pick queries is returned.

            '
          headers:
            opc-next-page:
              description: 'For pagination of a list of items. When paging through a list, if this header appears in the response,

                then a partial list might have been returned. Include this value as the page parameter for the

                subsequent GET request to get the next batch of items.

                '
              schema:
                type: string
            opc-request-id:
              description: 'Unique Oracle-assigned identifier for the request. If you need to contact

                Oracle about a particular request, please provide the request ID.

                '
              schema:
                type: string
            opc-total-items:
              description: 'The total number of items that match the query.

                '
              schema:
                type: integer
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/QuickPickSummary'
                type: array
        400:
          $ref: '#/components/responses/400'
        401:
          $ref: '#/components/responses/401'
        404:
          $ref: '#/components/responses/404'
        412:
          $ref: '#/components/responses/412'
        429:
          $ref: '#/components/responses/429'
        500:
          $ref: '#/components/responses/500'
        default:
          $ref: '#/components/responses/DefaultError'
      summary: List of predefined queries to assist the user to Quick Pick one and use.
      tags:
      - query
      x-related-resource: '#/definitions/QuickPickSummary'
components:
  schemas:
    QueryResultsTopologyInfo:
      description: 'The structure that provides the metadata of a topology query.

        '
      properties:
        nodes:
          description: 'The information about the attributes of the topology nodes.

            '
          items:
            $ref: '#/components/schemas/QueryResultsTopologyNodeInfo'
          type: array
      type: object
    Error:
      description: 'Details of an error that occurred.

        '
      properties:
        code:
          description: 'A short error code that defines the error, meant for programmatic parsing.

            '
          type: string
        message:
          description: 'A human-readable error string.

            '
          type: string
      required:
      - code
      - message
      type: object
    QueryResultRowTypeSummary:
      description: 'Summary of the datatype, unit and related metadata of an individual row element of a query result row that is returned.

        '
      properties:
        dataType:
          description: 'Datatype of the query result row element.

            '
          type: string
        displayName:
          description: 'Alias name if an alias is used for the query result row element or an assigned display name from the query language

            in some default cases.

            '
          type: string
        expression:
          description: 'Actual show expression in the user typed query that produced this column.

            '
          type: string
        queryResultRowTypeSummaries:
          description: 'A query result row type summary object that represents a nested table structure.

            '
          items:
            $ref: '#/components/schemas/QueryResultRowTypeSummary'
          type: array
        unit:
          description: 'Granular unit in which the query result row element''s data is represented.

            '
          type: string
      type: object
    QueryResultWarning:
      description: 'A warning message that can be included with a query result that provides information to the user.

        '
      properties:
        message:
          description: 'The text of the warning message.

            '
          type: string
      type: object
    QueryResultsOrderedBySummary:
      description: 'Summary of the sort and order by attribute based on which the query results are organized.

        '
      properties:
        queryResultsOrderedBy:
          description: 'Attribute by which the query results are sorted.

            '
          type: string
        queryResultsSortOrder:
          description: 'The sort order for the attribute, either ''ASC'' or ''DESC''.

            '
          type: string
      type: object
    QueryDetails:
      description: 'Request object containing the query to be run against the trace data.

        '
      properties:
        queryText:
          description: 'Application Performance Monitoring defined query string that filters and retrieves trace data results.

            '
          type: string
      type: object
    QueryResultsGroupedBySummary:
      description: 'Summary of the attribute based on which the query results are grouped.

        '
      properties:
        queryResultsGroupedByColumn:
          description: 'Column or attribute in the query result, which is a group by value.

            '
          type: string
      type: object
    QueryResultRow:
      description: 'Object that represents a single row of the query result.  It contains the queryResultRowData object that contains the actual data

        represented by the elements of the query result row, and a queryResultRowMetadata object that contains the metadata about the data contained in

        the query result row.

        '
      properties:
        queryResultRowData:
          additionalProperties:
            type: object
          description: 'A map containing the actual data represented by a single row of the query result.

            The key is the column name or attribute specified in the show clause, or an aggregate function in the show clause.

            The value is the actual value of that attribute or aggregate function of the corresponding single row of the query result set.

            If an alias name is specified for an attribute or an aggregate function, then the key will be the alias name specified in the show

            clause.  If an alias name is not specified for the group by aggregate function in the show clause, then the corresponding key

            will be the appropriate aggregate_function_name_column_name (For example: count(traces) will be keyed as count_traces).  The datatype of the value

            is presented in the queryResultRowTypeSummaries list in the queryResultMetadata structure, where the i-th queryResultRowTypeSummary object

            represents the datatype of the i-th value when this map is iterated in order.

            '
          type: object
        queryResultRowMetadata:
          additionalProperties:
            type: object
          description: 'A map containing metadata or add-on data for the data presented in the queryResultRowData map.  Data required to present drill down

            information from the queryResultRowData is presented as key-value pairs.

            '
          type: object
      required:
      - queryResultRowData
      - queryResultRowMetadata
      type: object
    QueryResultResponse:
      description: 'A response containing a collection of query rows (selected attributes and aggregations) filtered, grouped and

        sorted by the specified criteria from the query that is run, and the associated summary describing the corresponding

        query result metadata.

        '
      properties:
        queryResultMetadata:
          additionalProperties:
            type: object
          description: 'A map containing metadata or additional information.

            '
          type: object
        queryResultMetadataSummary:
          $ref: '#/components/schemas/QueryResultMetadataSummary'
        queryResultRows:
          description: 'A collection of objects with each object representing an individual row of the query result set.  The total number of objects

            returned in this collection correspond to the total number of rows returned by the actual query that is run against

            the queried entity.

            '
          items:
            $ref: '#/components/schemas/QueryResultRow'
          type: array
        queryResultWarnings:
          description: 'A structure that provides warnings, if any, along with the query results.

            '
          items:
            $ref: '#/components/schemas/QueryResultWarning'
          type: array
      required:
      - queryResultMetadataSummary
      - queryResultRows
      type: object
    QuickPickSummary:
      description: 'Summary of the Quick Pick query objects.

        '
      properties:
        quickPickName:
          description: 'Quick Pick name for the query.

            '
          type: string
        quickPickQuery:
          description: 'Query for the Quick Pick.

            '
          type: string
      required:
      - quickPickName
      - quickPickQuery
      type: object
    QueryResultsTopologyNodeInfo:
      description: 'The information about a node attribute.

        '
      properties:
        nodeName:
          description: The name of the node attribute.
          type: string
      type: object
    QueryResultMetadataSummary:
      description: 'Summary containing the metadata about the query result set.

        '
      properties:
        queryResultRowTypeSummaries:
          description: 'A collection of QueryResultRowTypeSummary objects that describe the type and properties of the individual row elements of the query rows

            being returned.  The i-th element in this list contains the QueryResultRowTypeSummary of the i-th key-value pair in the QueryResultRowData map.

            '
          items:
            $ref: '#/components/schemas/QueryResultRowTypeSummary'
          type: array
        queryResultsGroupedBy:
          description: 'Columns or attributes of the query rows  which are group by values.  This is a list of ResultsGroupedBy summary objects,

            and the list will contain as many elements as the attributes and aggregate functions in the group by clause in the select query.

            '
          items:
            $ref: '#/components/schemas/QueryResultsGroupedBySummary'
          type: array
        queryResultsOrderedBy:
          description: 'Order by which the query results are organized.  This is a list of queryResultsOrderedBy summary objects, and the list

            will contain more than one OrderedBy summary object, if the sort was multidimensional.

            '
          items:
            $ref: '#/components/schemas/QueryResultsOrderedBySummary'
          type: array
        queryResultsTopologyInfo:
          $ref: '#/components/schemas/QueryResultsTopologyInfo'
        sourceName:
          description: 'Source of the query result set (traces, spans, and so on).

            '
          type: string
        timeSeriesIntervalInMins:
          description: 'Interval for the time series function in minutes.

            '
          type: integer
      type: object
  parameters:
    PaginationTokenQueryParam:
      description: 'The page token representing the page where to start retrieving results.

        This is usually retrieved from a previous response.

        '
      in: query
      name: page
      schema:
        type: string
        default: 1
        maxLength: 1024
        minLength: 1
    SpanStartTimeLessThanParam:
      description: 'Include spans that have a `spanStartTime`less than this value.

        '
      in: query
      name: timeSpanStartedLessThan
      required: true
      schema:
        type: string
        format: date-time
    ApmDomainIdQueryParam:
      description: 'The APM Domain ID for the intended request.

        '
      in: query
      name: apmDomainId
      required: true
      schema:
        type: string
    PaginationLimitQueryParam:
      description: 'The maximum number of items to return.

        '
      in: query
      name: limit
      schema:
        type: integer
        default: 50
        minimum: 1
    SpanStartTimeGreaterThanOrEqualToParam:
      description: 'Include spans that have a `spanStartTime` equal to or greater than this value.

        '
      in: query
      name: timeSpanStartedGreaterThanOrEqualTo
      required: true
      schema:
        type: string
        format: date-time
    RequestIdHeader:
      description: 'Unique Oracle-assigned identifier for the request.  If you need to contact Oracle about a

        particular request, please provide the request ID.

        '
      in: header
      name: opc-request-id
      schema:
        type: string
  responses:
    DefaultError:
      description: 'Unknown Error

        '
      headers:
        opc-request-id:
          description: 'Unique Oracle-assigned identifier for the request. If you need to contact

            Oracle about a particular request, please provide the request ID.

            '
          schema:
            type: string
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
x-anchors:
  x-common-splat-settings:
  - allowCrossTenancy: true
    mode: automated
    nbacMode: '##NBAC_MODE##'
  - throttling:
      enableRegionalThrottling: true
      mode: default
      perTenantLimit:
        rpsLimit: 300
      perUserLimit:
        rpmLimit: 1200
        rpsLimit: 100
  x-downstream-splat-expressions:
  - downstream.getOr404('APM-DIS','GetApmDomainInfoCompartmentId',request.parameter.apmDomainId)
  x-headers:
    opc-next-page:
      description: 'For pagination of a list of items. When paging through a list, if this header appears in the response,

        then a partial list might have been returned. Include this value as the page parameter for the

        subsequent GET request to get the next batch of items.

        '
      type: string
    opc-request-id:
      description: 'Unique Oracle-assigned identifier for the request. If you need to contact

        Oracle about a particular request, please provide the request ID.

        '
      type: string
    opc-total-items:
      description: 'The total number of items that match the query.

        '
      type: integer
  x-nbac:
  - '##NBAC_MODE##'
  x-properties:
    errorSpanCount:
      description: "The number of spans with errors that have been processed by the system for the trace.\nNote that the number of spans with errors will be less than or equal to the total number of spans in the trace. \n"
      format: int32
      maximum: 604800
      minimum: 0
      type: integer
    isFault:
      description: 'Boolean flag that indicates whether the trace has an error.

        '
      type: boolean
    key:
      description: 'Unique identifier (traceId) for the trace that represents the span set.  Note that this field is

        defined as traceKey in the API and it maps to the traceId in the trace data in Application Performance

        Monitoring.

        '
      type: string
    rootSpanDurationInMs:
      description: 'Time taken for the root span operation to complete in milliseconds.

        '
      format: int32
      maximum: 604800
      minimum: 0
      type: integer
    rootSpanOperationName:
      description: 'Root span name associated with the trace. This is the flow start operation name.

        Null is displayed if the root span is not yet completed.

        '
      type: string
    rootSpanServiceName:
      description: 'Service associated with the trace.

        '
      type: string
    serviceSummaries:
      description: 'A summary of the spans by service.

        '
      items:
        $ref: '#/components/schemas/TraceServiceSummary'
      type: array
    spanCount:
      description: 'The number of spans that have been processed by the system for the trace.  Note that there

        could be additional spans that have not been processed or reported yet if the trace is still

        in progress.

        '
      format: int32
      maximum: 604800
      minimum: 0
      type: integer
    timeEarliestSpanStarted:
      description: 'Start time of the earliest span in the span collection.

        '
      format: date-time
      type: string
    timeLatestSpanEnded:
      description: 'End time of the span that most recently ended in the span collection.

        '
      format: date-time
      type: string
    timeRootSpanEnded:
      description: 'End time of the root span for the span collection.

        '
      format: date-time
      type: string
    timeRootSpanStarted:
      description: 'Start time of the root span for the span collection.

        '
      format: date-time
      type: string
    traceDurationInMs:
      description: 'Time between the start of the earliest span and the end of the most recent span in milliseconds.

        '
      format: int32
      maximum: 604800
      minimum: 0
      type: integer
    traceErrorCode:
      description: 'Error code of the trace.

        '
      type: string
    traceErrorType:
      description: 'Error type of the trace.

        '
      type: string
    traceSourceName:
      description: 'Source of trace (traces, syn_traces).

        '
      enum:
      - TRACES
      - SYN_TRACES
      type: string
    traceStatus:
      description: 'The status of the trace.

        The trace statuses are defined as follows:

        complete - a root span has been recorded, but there is no information on the errors.

        success - a complete root span is recorded there is a successful error type and error code - HTTP 200.

        incomplete - the root span has not yet been received.

        error - the root span returned with an error. There may or may not be an associated error code or error type.

        '
      type: string
x-oracle-package: com.oracle.apm.service.dataserver