fetch single metric
This commit is contained in:
parent
a4e9a23d74
commit
db3c27c7f2
13 changed files with 137 additions and 19 deletions
|
|
@ -160,7 +160,7 @@ The nostr server will send back a message response, and inside the body there wi
|
||||||
|
|
||||||
- GetUsageMetrics
|
- GetUsageMetrics
|
||||||
- auth type: __Metrics__
|
- auth type: __Metrics__
|
||||||
- This methods has an __empty__ __request__ body
|
- input: [UsageMetricReq](#UsageMetricReq)
|
||||||
- output: [UsageMetrics](#UsageMetrics)
|
- output: [UsageMetrics](#UsageMetrics)
|
||||||
|
|
||||||
- GetUserInfo
|
- GetUserInfo
|
||||||
|
|
@ -585,7 +585,7 @@ The nostr server will send back a message response, and inside the body there wi
|
||||||
- auth type: __Metrics__
|
- auth type: __Metrics__
|
||||||
- http method: __post__
|
- http method: __post__
|
||||||
- http route: __/api/reports/usage__
|
- http route: __/api/reports/usage__
|
||||||
- This methods has an __empty__ __request__ body
|
- input: [UsageMetricReq](#UsageMetricReq)
|
||||||
- output: [UsageMetrics](#UsageMetrics)
|
- output: [UsageMetrics](#UsageMetrics)
|
||||||
|
|
||||||
- GetUserInfo
|
- GetUserInfo
|
||||||
|
|
@ -1140,6 +1140,11 @@ The nostr server will send back a message response, and inside the body there wi
|
||||||
- __payLink__: _string_
|
- __payLink__: _string_
|
||||||
- __tag__: _string_
|
- __tag__: _string_
|
||||||
|
|
||||||
|
### MetricsFile
|
||||||
|
- __app_id__: _string_
|
||||||
|
- __metrics_name__: _string_
|
||||||
|
- __page__: _number_
|
||||||
|
|
||||||
### MigrationUpdate
|
### MigrationUpdate
|
||||||
- __closure__: _[ClosureMigration](#ClosureMigration)_ *this field is optional
|
- __closure__: _[ClosureMigration](#ClosureMigration)_ *this field is optional
|
||||||
- __relays__: _[RelaysMigration](#RelaysMigration)_ *this field is optional
|
- __relays__: _[RelaysMigration](#RelaysMigration)_ *this field is optional
|
||||||
|
|
@ -1314,6 +1319,10 @@ The nostr server will send back a message response, and inside the body there wi
|
||||||
- __success__: _boolean_
|
- __success__: _boolean_
|
||||||
- __validate_in_nano__: _number_
|
- __validate_in_nano__: _number_
|
||||||
|
|
||||||
|
### UsageMetricReq
|
||||||
|
- __limit__: _number_ *this field is optional
|
||||||
|
- __metrics_file__: _[MetricsFile](#MetricsFile)_ *this field is optional
|
||||||
|
|
||||||
### UsageMetricTlv
|
### UsageMetricTlv
|
||||||
- __available_chunks__: ARRAY of: _number_
|
- __available_chunks__: ARRAY of: _number_
|
||||||
- __base_64_tlvs__: ARRAY of: _string_
|
- __base_64_tlvs__: ARRAY of: _string_
|
||||||
|
|
|
||||||
|
|
@ -93,7 +93,7 @@ type Client struct {
|
||||||
GetNPubLinkingState func(req GetNPubLinking) (*NPubLinking, error)
|
GetNPubLinkingState func(req GetNPubLinking) (*NPubLinking, error)
|
||||||
GetPaymentState func(req GetPaymentStateRequest) (*PaymentState, error)
|
GetPaymentState func(req GetPaymentStateRequest) (*PaymentState, error)
|
||||||
GetSeed func() (*LndSeed, error)
|
GetSeed func() (*LndSeed, error)
|
||||||
GetUsageMetrics func() (*UsageMetrics, error)
|
GetUsageMetrics func(req UsageMetricReq) (*UsageMetrics, error)
|
||||||
GetUserInfo func() (*UserInfo, error)
|
GetUserInfo func() (*UserInfo, error)
|
||||||
GetUserOffer func(req OfferId) (*OfferConfig, error)
|
GetUserOffer func(req OfferId) (*OfferConfig, error)
|
||||||
GetUserOfferInvoices func(req GetUserOfferInvoicesReq) (*OfferInvoices, error)
|
GetUserOfferInvoices func(req GetUserOfferInvoicesReq) (*OfferInvoices, error)
|
||||||
|
|
@ -1057,13 +1057,16 @@ func NewClient(params ClientParams) *Client {
|
||||||
}
|
}
|
||||||
return &res, nil
|
return &res, nil
|
||||||
},
|
},
|
||||||
GetUsageMetrics: func() (*UsageMetrics, error) {
|
GetUsageMetrics: func(req UsageMetricReq) (*UsageMetrics, error) {
|
||||||
auth, err := params.RetrieveMetricsAuth()
|
auth, err := params.RetrieveMetricsAuth()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
finalRoute := "/api/reports/usage"
|
finalRoute := "/api/reports/usage"
|
||||||
body := []byte{}
|
body, err := json.Marshal(req)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
resBody, err := doPostRequest(params.BaseURL+finalRoute, body, auth)
|
resBody, err := doPostRequest(params.BaseURL+finalRoute, body, auth)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|
|
||||||
|
|
@ -392,6 +392,11 @@ type LnurlWithdrawInfoResponse struct {
|
||||||
Paylink string `json:"payLink"`
|
Paylink string `json:"payLink"`
|
||||||
Tag string `json:"tag"`
|
Tag string `json:"tag"`
|
||||||
}
|
}
|
||||||
|
type MetricsFile struct {
|
||||||
|
App_id string `json:"app_id"`
|
||||||
|
Metrics_name string `json:"metrics_name"`
|
||||||
|
Page int64 `json:"page"`
|
||||||
|
}
|
||||||
type MigrationUpdate struct {
|
type MigrationUpdate struct {
|
||||||
Closure *ClosureMigration `json:"closure"`
|
Closure *ClosureMigration `json:"closure"`
|
||||||
Relays *RelaysMigration `json:"relays"`
|
Relays *RelaysMigration `json:"relays"`
|
||||||
|
|
@ -566,6 +571,10 @@ type UsageMetric struct {
|
||||||
Success bool `json:"success"`
|
Success bool `json:"success"`
|
||||||
Validate_in_nano int64 `json:"validate_in_nano"`
|
Validate_in_nano int64 `json:"validate_in_nano"`
|
||||||
}
|
}
|
||||||
|
type UsageMetricReq struct {
|
||||||
|
Limit int64 `json:"limit"`
|
||||||
|
Metrics_file *MetricsFile `json:"metrics_file"`
|
||||||
|
}
|
||||||
type UsageMetricTlv struct {
|
type UsageMetricTlv struct {
|
||||||
Available_chunks []int64 `json:"available_chunks"`
|
Available_chunks []int64 `json:"available_chunks"`
|
||||||
Base_64_tlvs []string `json:"base_64_tlvs"`
|
Base_64_tlvs []string `json:"base_64_tlvs"`
|
||||||
|
|
|
||||||
|
|
@ -1116,10 +1116,13 @@ export default (methods: Types.ServerMethods, opts: ServerOptions) => {
|
||||||
const authContext = await opts.MetricsAuthGuard(req.headers['authorization'])
|
const authContext = await opts.MetricsAuthGuard(req.headers['authorization'])
|
||||||
authCtx = authContext
|
authCtx = authContext
|
||||||
stats.guard = process.hrtime.bigint()
|
stats.guard = process.hrtime.bigint()
|
||||||
stats.validate = stats.guard
|
const request = req.body
|
||||||
|
const error = Types.UsageMetricReqValidate(request)
|
||||||
|
stats.validate = process.hrtime.bigint()
|
||||||
|
if (error !== null) return logErrorAndReturnResponse(error, 'invalid request body', res, logger, { ...info, ...stats, ...authContext }, opts.metricsCallback)
|
||||||
const query = req.query
|
const query = req.query
|
||||||
const params = req.params
|
const params = req.params
|
||||||
const response = await methods.GetUsageMetrics({rpcName:'GetUsageMetrics', ctx:authContext })
|
const response = await methods.GetUsageMetrics({rpcName:'GetUsageMetrics', ctx:authContext , req: request})
|
||||||
stats.handle = process.hrtime.bigint()
|
stats.handle = process.hrtime.bigint()
|
||||||
res.json({status: 'OK', ...response})
|
res.json({status: 'OK', ...response})
|
||||||
opts.metricsCallback([{ ...info, ...stats, ...authContext }])
|
opts.metricsCallback([{ ...info, ...stats, ...authContext }])
|
||||||
|
|
|
||||||
|
|
@ -494,11 +494,11 @@ export default (params: ClientParams) => ({
|
||||||
}
|
}
|
||||||
return { status: 'ERROR', reason: 'invalid response' }
|
return { status: 'ERROR', reason: 'invalid response' }
|
||||||
},
|
},
|
||||||
GetUsageMetrics: async (): Promise<ResultError | ({ status: 'OK' }& Types.UsageMetrics)> => {
|
GetUsageMetrics: async (request: Types.UsageMetricReq): Promise<ResultError | ({ status: 'OK' }& Types.UsageMetrics)> => {
|
||||||
const auth = await params.retrieveMetricsAuth()
|
const auth = await params.retrieveMetricsAuth()
|
||||||
if (auth === null) throw new Error('retrieveMetricsAuth() returned null')
|
if (auth === null) throw new Error('retrieveMetricsAuth() returned null')
|
||||||
let finalRoute = '/api/reports/usage'
|
let finalRoute = '/api/reports/usage'
|
||||||
const { data } = await axios.post(params.baseUrl + finalRoute, {}, { headers: { 'authorization': auth } })
|
const { data } = await axios.post(params.baseUrl + finalRoute, request, { headers: { 'authorization': auth } })
|
||||||
if (data.status === 'ERROR' && typeof data.reason === 'string') return data
|
if (data.status === 'ERROR' && typeof data.reason === 'string') return data
|
||||||
if (data.status === 'OK') {
|
if (data.status === 'OK') {
|
||||||
const result = data
|
const result = data
|
||||||
|
|
|
||||||
|
|
@ -422,10 +422,11 @@ export default (params: NostrClientParams, send: (to:string, message: NostrRequ
|
||||||
}
|
}
|
||||||
return { status: 'ERROR', reason: 'invalid response' }
|
return { status: 'ERROR', reason: 'invalid response' }
|
||||||
},
|
},
|
||||||
GetUsageMetrics: async (): Promise<ResultError | ({ status: 'OK' }& Types.UsageMetrics)> => {
|
GetUsageMetrics: async (request: Types.UsageMetricReq): Promise<ResultError | ({ status: 'OK' }& Types.UsageMetrics)> => {
|
||||||
const auth = await params.retrieveNostrMetricsAuth()
|
const auth = await params.retrieveNostrMetricsAuth()
|
||||||
if (auth === null) throw new Error('retrieveNostrMetricsAuth() returned null')
|
if (auth === null) throw new Error('retrieveNostrMetricsAuth() returned null')
|
||||||
const nostrRequest: NostrRequest = {}
|
const nostrRequest: NostrRequest = {}
|
||||||
|
nostrRequest.body = request
|
||||||
const data = await send(params.pubDestination, {rpcName:'GetUsageMetrics',authIdentifier:auth, ...nostrRequest })
|
const data = await send(params.pubDestination, {rpcName:'GetUsageMetrics',authIdentifier:auth, ...nostrRequest })
|
||||||
if (data.status === 'ERROR' && typeof data.reason === 'string') return data
|
if (data.status === 'ERROR' && typeof data.reason === 'string') return data
|
||||||
if (data.status === 'OK') {
|
if (data.status === 'OK') {
|
||||||
|
|
|
||||||
|
|
@ -805,8 +805,11 @@ export default (methods: Types.ServerMethods, opts: NostrOptions) => {
|
||||||
const authContext = await opts.NostrMetricsAuthGuard(req.appId, req.authIdentifier)
|
const authContext = await opts.NostrMetricsAuthGuard(req.appId, req.authIdentifier)
|
||||||
stats.guard = process.hrtime.bigint()
|
stats.guard = process.hrtime.bigint()
|
||||||
authCtx = authContext
|
authCtx = authContext
|
||||||
stats.validate = stats.guard
|
const request = req.body
|
||||||
const response = await methods.GetUsageMetrics({rpcName:'GetUsageMetrics', ctx:authContext })
|
const error = Types.UsageMetricReqValidate(request)
|
||||||
|
stats.validate = process.hrtime.bigint()
|
||||||
|
if (error !== null) return logErrorAndReturnResponse(error, 'invalid request body', res, logger, { ...info, ...stats, ...authCtx }, opts.metricsCallback)
|
||||||
|
const response = await methods.GetUsageMetrics({rpcName:'GetUsageMetrics', ctx:authContext , req: request})
|
||||||
stats.handle = process.hrtime.bigint()
|
stats.handle = process.hrtime.bigint()
|
||||||
res({status: 'OK', ...response})
|
res({status: 'OK', ...response})
|
||||||
opts.metricsCallback([{ ...info, ...stats, ...authContext }])
|
opts.metricsCallback([{ ...info, ...stats, ...authContext }])
|
||||||
|
|
|
||||||
|
|
@ -161,7 +161,7 @@ export type GetPaymentState_Output = ResultError | ({ status: 'OK' } & PaymentSt
|
||||||
export type GetSeed_Input = {rpcName:'GetSeed'}
|
export type GetSeed_Input = {rpcName:'GetSeed'}
|
||||||
export type GetSeed_Output = ResultError | ({ status: 'OK' } & LndSeed)
|
export type GetSeed_Output = ResultError | ({ status: 'OK' } & LndSeed)
|
||||||
|
|
||||||
export type GetUsageMetrics_Input = {rpcName:'GetUsageMetrics'}
|
export type GetUsageMetrics_Input = {rpcName:'GetUsageMetrics', req: UsageMetricReq}
|
||||||
export type GetUsageMetrics_Output = ResultError | ({ status: 'OK' } & UsageMetrics)
|
export type GetUsageMetrics_Output = ResultError | ({ status: 'OK' } & UsageMetrics)
|
||||||
|
|
||||||
export type GetUserInfo_Input = {rpcName:'GetUserInfo'}
|
export type GetUserInfo_Input = {rpcName:'GetUserInfo'}
|
||||||
|
|
@ -2234,6 +2234,34 @@ export const LnurlWithdrawInfoResponseValidate = (o?: LnurlWithdrawInfoResponse,
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type MetricsFile = {
|
||||||
|
app_id: string
|
||||||
|
metrics_name: string
|
||||||
|
page: number
|
||||||
|
}
|
||||||
|
export const MetricsFileOptionalFields: [] = []
|
||||||
|
export type MetricsFileOptions = OptionsBaseMessage & {
|
||||||
|
checkOptionalsAreSet?: []
|
||||||
|
app_id_CustomCheck?: (v: string) => boolean
|
||||||
|
metrics_name_CustomCheck?: (v: string) => boolean
|
||||||
|
page_CustomCheck?: (v: number) => boolean
|
||||||
|
}
|
||||||
|
export const MetricsFileValidate = (o?: MetricsFile, opts: MetricsFileOptions = {}, path: string = 'MetricsFile::root.'): Error | null => {
|
||||||
|
if (opts.checkOptionalsAreSet && opts.allOptionalsAreSet) return new Error(path + ': only one of checkOptionalsAreSet or allOptionalNonDefault can be set for each message')
|
||||||
|
if (typeof o !== 'object' || o === null) return new Error(path + ': object is not an instance of an object or is null')
|
||||||
|
|
||||||
|
if (typeof o.app_id !== 'string') return new Error(`${path}.app_id: is not a string`)
|
||||||
|
if (opts.app_id_CustomCheck && !opts.app_id_CustomCheck(o.app_id)) return new Error(`${path}.app_id: custom check failed`)
|
||||||
|
|
||||||
|
if (typeof o.metrics_name !== 'string') return new Error(`${path}.metrics_name: is not a string`)
|
||||||
|
if (opts.metrics_name_CustomCheck && !opts.metrics_name_CustomCheck(o.metrics_name)) return new Error(`${path}.metrics_name: custom check failed`)
|
||||||
|
|
||||||
|
if (typeof o.page !== 'number') return new Error(`${path}.page: is not a number`)
|
||||||
|
if (opts.page_CustomCheck && !opts.page_CustomCheck(o.page)) return new Error(`${path}.page: custom check failed`)
|
||||||
|
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
export type MigrationUpdate = {
|
export type MigrationUpdate = {
|
||||||
closure?: ClosureMigration
|
closure?: ClosureMigration
|
||||||
relays?: RelaysMigration
|
relays?: RelaysMigration
|
||||||
|
|
@ -3236,6 +3264,33 @@ export const UsageMetricValidate = (o?: UsageMetric, opts: UsageMetricOptions =
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type UsageMetricReq = {
|
||||||
|
limit?: number
|
||||||
|
metrics_file?: MetricsFile
|
||||||
|
}
|
||||||
|
export type UsageMetricReqOptionalField = 'limit' | 'metrics_file'
|
||||||
|
export const UsageMetricReqOptionalFields: UsageMetricReqOptionalField[] = ['limit', 'metrics_file']
|
||||||
|
export type UsageMetricReqOptions = OptionsBaseMessage & {
|
||||||
|
checkOptionalsAreSet?: UsageMetricReqOptionalField[]
|
||||||
|
limit_CustomCheck?: (v?: number) => boolean
|
||||||
|
metrics_file_Options?: MetricsFileOptions
|
||||||
|
}
|
||||||
|
export const UsageMetricReqValidate = (o?: UsageMetricReq, opts: UsageMetricReqOptions = {}, path: string = 'UsageMetricReq::root.'): Error | null => {
|
||||||
|
if (opts.checkOptionalsAreSet && opts.allOptionalsAreSet) return new Error(path + ': only one of checkOptionalsAreSet or allOptionalNonDefault can be set for each message')
|
||||||
|
if (typeof o !== 'object' || o === null) return new Error(path + ': object is not an instance of an object or is null')
|
||||||
|
|
||||||
|
if ((o.limit || opts.allOptionalsAreSet || opts.checkOptionalsAreSet?.includes('limit')) && typeof o.limit !== 'number') return new Error(`${path}.limit: is not a number`)
|
||||||
|
if (opts.limit_CustomCheck && !opts.limit_CustomCheck(o.limit)) return new Error(`${path}.limit: custom check failed`)
|
||||||
|
|
||||||
|
if (typeof o.metrics_file === 'object' || opts.allOptionalsAreSet || opts.checkOptionalsAreSet?.includes('metrics_file')) {
|
||||||
|
const metrics_fileErr = MetricsFileValidate(o.metrics_file, opts.metrics_file_Options, `${path}.metrics_file`)
|
||||||
|
if (metrics_fileErr !== null) return metrics_fileErr
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
|
||||||
export type UsageMetricTlv = {
|
export type UsageMetricTlv = {
|
||||||
available_chunks: number[]
|
available_chunks: number[]
|
||||||
base_64_tlvs: string[]
|
base_64_tlvs: string[]
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,7 @@ service LightningPub {
|
||||||
option (nostr) = true;
|
option (nostr) = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
rpc GetUsageMetrics(structs.Empty) returns (structs.UsageMetrics) {
|
rpc GetUsageMetrics(structs.UsageMetricReq) returns (structs.UsageMetrics) {
|
||||||
option (auth_type) = "Metrics";
|
option (auth_type) = "Metrics";
|
||||||
option (http_method) = "post";
|
option (http_method) = "post";
|
||||||
option (http_route) = "/api/reports/usage";
|
option (http_route) = "/api/reports/usage";
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,17 @@ message ErrorStats {
|
||||||
ErrorStat past1m = 5;
|
ErrorStat past1m = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message MetricsFile {
|
||||||
|
string app_id = 1;
|
||||||
|
string metrics_name = 2;
|
||||||
|
int64 page = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
message UsageMetricReq {
|
||||||
|
optional int64 limit = 1;
|
||||||
|
optional MetricsFile metrics_file = 2;
|
||||||
|
}
|
||||||
|
|
||||||
message UsageMetric {
|
message UsageMetric {
|
||||||
int64 processed_at_ms = 1;
|
int64 processed_at_ms = 1;
|
||||||
int64 parsed_in_nano = 2;
|
int64 parsed_in_nano = 2;
|
||||||
|
|
|
||||||
|
|
@ -69,9 +69,11 @@ export default class Handler {
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
async GetUsageMetrics(): Promise<Types.UsageMetrics> {
|
async GetUsageMetrics(req: Types.UsageMetricReq): Promise<Types.UsageMetrics> {
|
||||||
const metrics = await this.storage.metricsEventStorage.LoadLatestMetrics()
|
if (!req.metrics_file) {
|
||||||
return metrics
|
return this.storage.metricsEventStorage.LoadLatestMetrics(req.limit)
|
||||||
|
}
|
||||||
|
return this.storage.metricsEventStorage.LoadMetricsFile(req.metrics_file.app_id, req.metrics_file.metrics_name, req.metrics_file.page)
|
||||||
}
|
}
|
||||||
|
|
||||||
async GetErrorStats(): Promise<Types.ErrorStats> {
|
async GetErrorStats(): Promise<Types.ErrorStats> {
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import main from '../main/index.js'
|
||||||
import Main from '../main/index.js'
|
import Main from '../main/index.js'
|
||||||
export default (mainHandler: Main): Types.ServerMethods => {
|
export default (mainHandler: Main): Types.ServerMethods => {
|
||||||
return {
|
return {
|
||||||
GetUsageMetrics: async ({ ctx }) => {
|
GetUsageMetrics: async ({ ctx, req }) => {
|
||||||
return mainHandler.metricsManager.GetUsageMetrics()
|
return mainHandler.metricsManager.GetUsageMetrics(req)
|
||||||
},
|
},
|
||||||
GetErrorStats: async ({ ctx }) => {
|
GetErrorStats: async ({ ctx }) => {
|
||||||
return mainHandler.metricsManager.GetErrorStats()
|
return mainHandler.metricsManager.GetErrorStats()
|
||||||
|
|
|
||||||
|
|
@ -132,6 +132,28 @@ export default class {
|
||||||
return metrics
|
return metrics
|
||||||
}
|
}
|
||||||
|
|
||||||
|
LoadMetricsFile = async (app: string, method: string, chunk: number): Promise<Types.UsageMetrics> => {
|
||||||
|
if (!this.metaReady || !this.metricsMeta[app] || !this.metricsMeta[app][method] || !this.metricsMeta[app][method].chunks.includes(chunk)) {
|
||||||
|
return { apps: {} }
|
||||||
|
}
|
||||||
|
const fullPath = [this.metricsPath, app, method, `${chunk}.mtlv`].join("/")
|
||||||
|
const tlv = fs.readFileSync(fullPath)
|
||||||
|
const decoded = decodeListTLV(parseTLV(tlv))
|
||||||
|
return {
|
||||||
|
apps: {
|
||||||
|
[app]: {
|
||||||
|
app_metrics: {
|
||||||
|
[method]: {
|
||||||
|
base_64_tlvs: decoded.map(d => Buffer.from(d).toString('base64')),
|
||||||
|
current_chunk: chunk,
|
||||||
|
available_chunks: this.metricsMeta[app][method].chunks
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
persistMetrics = () => {
|
persistMetrics = () => {
|
||||||
if (!this.metaReady) {
|
if (!this.metaReady) {
|
||||||
throw new Error("meta metrics not ready")
|
throw new Error("meta metrics not ready")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue