# frozen_string_literal: true module SplitIoClient module Telemetry # sp: splits, se: segments, im: impressions, ic:impression count, ev: events, te: telemetry, to: token. LastSynchronization = Struct.new(:sp, :se, :im, :ic, :ev, :te, :to) HttpErrors = Struct.new(:sp, :se, :im, :ic, :ev, :te, :to) HttpLatencies = Struct.new(:sp, :se, :im, :ic, :ev, :te, :to) # sp: splits, se: segmentos, im: impressions, ev: events, t: telemetry Rates = Struct.new(:sp, :se, :im, :ev, :te) # s: sdkUrl, e: eventsUrl, a: authUrl, st: streamUrl, t: telemetryUrl UrlOverrides = Struct.new(:s, :e, :a, :st, :t) # om: operationMode, st: storage, af: activeFactories, rf: redundantActiveFactories, t: tags, se: streamingEnabled, # rr: refreshRate, uo: urlOverrides, iq: impressionsQueueSize, eq: eventsQueueSize, im: impressionsMode, # il: impressionListenerEnabled, hp: httpProxyDetected, tr: timeUntilSdkReady, bt: burTimeouts, # nr: sdkNotReadyUsage, i: integrations ConfigInit = Struct.new(:om, :st, :af, :rf, :t, :se, :rr, :uo, :iq, :eq, :im, :il, :hp, :tr, :bt, :nr, :i) # ls: lastSynchronization, ml: clientMethodLatencies, me: clientMethodExceptions, he: httpErros, hl: httpLatencies, # tr: tokenRefreshes, ar: authRejections, iq: impressionsQueued, ide: impressionsDeduped, idr: impressionsDropped, # spc: splitsCount, sec: segmentCount, skc: segmentKeyCount, sl: sessionLengthMs, eq: eventsQueued, ed: eventsDropped, # se: streamingEvents, t: tags, ufs: updates from sse Usage = Struct.new(:ls, :ml, :me, :he, :hl, :tr, :ar, :iq, :ide, :idr, :spc, :sec, :skc, :sl, :eq, :ed, :se, :t, :ufs) # t: treatment, ts: treatments, tc: treatmentWithConfig, tcs: treatmentsWithConfig, tr: track ClientMethodLatencies = Struct.new(:t, :ts, :tc, :tcs, :tr) ClientMethodExceptions = Struct.new(:t, :ts, :tc, :tcs, :tr) # sp: splits UpdatesFromSSE = Struct.new(:sp) end end