@grow-codes/apache-skywalking - v0.1.1
    Preparing search index...

    Class SkyWalkingQueryClient

    The SkyWalking GraphQL query API (POST /graphql on port 12800). Obtain it from SkyWalkingClient.query. Services, instances and endpoints are named by their names; the SDK derives the ids (base64(name).1).

    Index
    • Raw GraphQL: returns {data, errors} (partial data possible). HTTP 400 (syntax/validation errors) throws ValidationError.

      Type Parameters

      • T = Record<string, unknown>

      Parameters

      • query: string
      • variables: Record<string, unknown> = {}
      • opts: CallOptions = {}

      Returns Promise<GraphQLResponse<T>>

    • Endpoints of a service: findEndpoint(keyword, serviceId, limit). keyword is a tokenised match (downstream finds /native/downstream, down does not). No duration is sent (OAP 10.4 + BanyanDB returns nothing with one).

      Parameters

      Returns Promise<SkyWalkingEndpoint[]>

    • Services: listServices(layer). layer null/omitted = all layers; an unknown layer → []. OAP has no time filter for services, so range is accepted for API symmetry and ignored. Services that only sent OTLP traces are not listed (use client.traces.listServices()).

      Parameters

      Returns Promise<SkyWalkingService[]>

    • OAP clock and timezone: getTimeInfo.

      Parameters

      Returns Promise<{ currentTimestamp: number; timezone: string }>

    • Service topology in range (default last hour): getGlobalTopology(duration, layer), or getServiceTopology when opts.service is set. Native traffic only (OTLP spans create no edges); includes the virtual User node.

      Parameters

      Returns Promise<Topology>