/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { metricsGetApiV3MetricsAverageCycleBurnRate } from "../funcs/metricsGetApiV3MetricsAverageCycleBurnRate.js"; import { metricsGetApiV3MetricsAverageGovernanceVotingPowerTotal } from "../funcs/metricsGetApiV3MetricsAverageGovernanceVotingPowerTotal.js"; import { metricsGetApiV3MetricsAverageLastRewardEvent } from "../funcs/metricsGetApiV3MetricsAverageLastRewardEvent.js"; import { metricsGetApiV3MetricsBlockCount } from "../funcs/metricsGetApiV3MetricsBlockCount.js"; import { metricsGetApiV3MetricsBlockHeight } from "../funcs/metricsGetApiV3MetricsBlockHeight.js"; import { metricsGetApiV3MetricsBlockRate } from "../funcs/metricsGetApiV3MetricsBlockRate.js"; import { metricsGetApiV3MetricsBoundaryNodesCount } from "../funcs/metricsGetApiV3MetricsBoundaryNodesCount.js"; import { metricsGetApiV3MetricsCommunityFundTotalMaturity } from "../funcs/metricsGetApiV3MetricsCommunityFundTotalMaturity.js"; import { metricsGetApiV3MetricsCommunityFundTotalStaked } from "../funcs/metricsGetApiV3MetricsCommunityFundTotalStaked.js"; import { metricsGetApiV3MetricsCycleBurnRate } from "../funcs/metricsGetApiV3MetricsCycleBurnRate.js"; import { metricsGetApiV3MetricsEgressBandwidth } from "../funcs/metricsGetApiV3MetricsEgressBandwidth.js"; import { metricsGetApiV3MetricsEnergyConsumptionRate } from "../funcs/metricsGetApiV3MetricsEnergyConsumptionRate.js"; import { metricsGetApiV3MetricsEthEquivalentTxns } from "../funcs/metricsGetApiV3MetricsEthEquivalentTxns.js"; import { metricsGetApiV3MetricsGovernanceDissolvingNeuronsE8s1year } from "../funcs/metricsGetApiV3MetricsGovernanceDissolvingNeuronsE8s1year.js"; import { metricsGetApiV3MetricsGovernanceDissolvingNeuronsStakedMaturityE8sEquivalent1year, } from "../funcs/metricsGetApiV3MetricsGovernanceDissolvingNeuronsStakedMaturityE8sEquivalent1year.js"; import { metricsGetApiV3MetricsGovernanceNeuronsTotal } from "../funcs/metricsGetApiV3MetricsGovernanceNeuronsTotal.js"; import { metricsGetApiV3MetricsGovernanceNotDissolvingNeuronsE8s1year } from "../funcs/metricsGetApiV3MetricsGovernanceNotDissolvingNeuronsE8s1year.js"; import { metricsGetApiV3MetricsGovernanceNotDissolvingNeuronsStakedMaturityE8sEquivalent1year, } from "../funcs/metricsGetApiV3MetricsGovernanceNotDissolvingNeuronsStakedMaturityE8sEquivalent1year.js"; import { metricsGetApiV3MetricsGovernanceVotingPowerTotal } from "../funcs/metricsGetApiV3MetricsGovernanceVotingPowerTotal.js"; import { metricsGetApiV3MetricsIcCpuCores } from "../funcs/metricsGetApiV3MetricsIcCpuCores.js"; import { metricsGetApiV3MetricsIcMemoryTotal } from "../funcs/metricsGetApiV3MetricsIcMemoryTotal.js"; import { metricsGetApiV3MetricsIcMemoryUsage } from "../funcs/metricsGetApiV3MetricsIcMemoryUsage.js"; import { metricsGetApiV3MetricsIcNodesCount } from "../funcs/metricsGetApiV3MetricsIcNodesCount.js"; import { metricsGetApiV3MetricsIcpTxnVsEthTxn } from "../funcs/metricsGetApiV3MetricsIcpTxnVsEthTxn.js"; import { metricsGetApiV3MetricsIcSubnetTotal } from "../funcs/metricsGetApiV3MetricsIcSubnetTotal.js"; import { metricsGetApiV3MetricsIngressBandwidth } from "../funcs/metricsGetApiV3MetricsIngressBandwidth.js"; import { metricsGetApiV3MetricsInstructionRate } from "../funcs/metricsGetApiV3MetricsInstructionRate.js"; import { metricsGetApiV3MetricsInternetIdentityUserCount } from "../funcs/metricsGetApiV3MetricsInternetIdentityUserCount.js"; import { metricsGetApiV3MetricsLastRewardEvent } from "../funcs/metricsGetApiV3MetricsLastRewardEvent.js"; import { metricsGetApiV3MetricsLatestRewardEventTotalAvailable } from "../funcs/metricsGetApiV3MetricsLatestRewardEventTotalAvailable.js"; import { metricsGetApiV3MetricsMaxTransactionsPerSecOver90Days } from "../funcs/metricsGetApiV3MetricsMaxTransactionsPerSecOver90Days.js"; import { metricsGetApiV3MetricsMemory } from "../funcs/metricsGetApiV3MetricsMemory.js"; import { metricsGetApiV3MetricsMessageExecutionRate } from "../funcs/metricsGetApiV3MetricsMessageExecutionRate.js"; import { metricsGetApiV3MetricsNodeEnergyConsumptionRateKwh } from "../funcs/metricsGetApiV3MetricsNodeEnergyConsumptionRateKwh.js"; import { metricsGetApiV3MetricsRegisteredCanistersCount } from "../funcs/metricsGetApiV3MetricsRegisteredCanistersCount.js"; import { metricsGetApiV3MetricsTotalActiveNodesCount } from "../funcs/metricsGetApiV3MetricsTotalActiveNodesCount.js"; import { metricsGetApiV3MetricsTotalAwaitingNodesCount } from "../funcs/metricsGetApiV3MetricsTotalAwaitingNodesCount.js"; import { metricsGetApiV3MetricsTotalIcEnergyConsumptionRateKwh } from "../funcs/metricsGetApiV3MetricsTotalIcEnergyConsumptionRateKwh.js"; import { metricsGetApiV3MetricsTotalOfflineNodesCount } from "../funcs/metricsGetApiV3MetricsTotalOfflineNodesCount.js"; import { metricsGetApiV3MetricsTotalRewardableNodesCount } from "../funcs/metricsGetApiV3MetricsTotalRewardableNodesCount.js"; import { metricsGetApiV3MetricsTransactionRate } from "../funcs/metricsGetApiV3MetricsTransactionRate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as models from "../models/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Metrics extends ClientSDK { async getApiV3MetricsMessageExecutionRate( request?: operations.GetApiV3MetricsMessageExecutionRateRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsMessageExecutionRate( this, request, options, )); } async getApiV3MetricsIcNodesCount( request?: operations.GetApiV3MetricsIcNodesCountRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsIcNodesCount( this, request, options, )); } async getApiV3MetricsIcMemoryTotal( request?: operations.GetApiV3MetricsIcMemoryTotalRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsIcMemoryTotal( this, request, options, )); } async getApiV3MetricsIcCpuCores( request?: operations.GetApiV3MetricsIcCpuCoresRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsIcCpuCores( this, request, options, )); } async getApiV3MetricsIcMemoryUsage( request?: operations.GetApiV3MetricsIcMemoryUsageRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsIcMemoryUsage( this, request, options, )); } /** * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getApiV3MetricsMemory( request?: operations.GetApiV3MetricsMemoryRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsMemory( this, request, options, )); } async getApiV3MetricsBlockRate( request?: operations.GetApiV3MetricsBlockRateRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsBlockRate( this, request, options, )); } /** * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getApiV3MetricsBlockCount( request?: operations.GetApiV3MetricsBlockCountRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsBlockCount( this, request, options, )); } /** * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getApiV3MetricsEgressBandwidth( request?: operations.GetApiV3MetricsEgressBandwidthRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsEgressBandwidth( this, request, options, )); } /** * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getApiV3MetricsIngressBandwidth( request?: operations.GetApiV3MetricsIngressBandwidthRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsIngressBandwidth( this, request, options, )); } async getApiV3MetricsBoundaryNodesCount( request?: operations.GetApiV3MetricsBoundaryNodesCountRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsBoundaryNodesCount( this, request, options, )); } async getApiV3MetricsGovernanceNeuronsTotal( request?: | operations.GetApiV3MetricsGovernanceNeuronsTotalRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsGovernanceNeuronsTotal( this, request, options, )); } async getApiV3MetricsInternetIdentityUserCount( request?: | operations.GetApiV3MetricsInternetIdentityUserCountRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsInternetIdentityUserCount( this, request, options, )); } async getApiV3MetricsGovernanceVotingPowerTotal( request?: | operations.GetApiV3MetricsGovernanceVotingPowerTotalRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsGovernanceVotingPowerTotal( this, request, options, )); } async getApiV3MetricsAverageGovernanceVotingPowerTotal( request?: | operations.GetApiV3MetricsAverageGovernanceVotingPowerTotalRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsAverageGovernanceVotingPowerTotal( this, request, options, )); } async getApiV3MetricsCycleBurnRate( request?: operations.GetApiV3MetricsCycleBurnRateRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsCycleBurnRate( this, request, options, )); } async getApiV3MetricsIcSubnetTotal( request?: operations.GetApiV3MetricsIcSubnetTotalRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsIcSubnetTotal( this, request, options, )); } async getApiV3MetricsLastRewardEvent( request?: operations.GetApiV3MetricsLastRewardEventRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsLastRewardEvent( this, request, options, )); } async getApiV3MetricsLatestRewardEventTotalAvailable( request?: | operations.GetApiV3MetricsLatestRewardEventTotalAvailableRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsLatestRewardEventTotalAvailable( this, request, options, )); } async getApiV3MetricsAverageLastRewardEvent( request?: | operations.GetApiV3MetricsAverageLastRewardEventRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsAverageLastRewardEvent( this, request, options, )); } async getApiV3MetricsCommunityFundTotalStaked( request?: | operations.GetApiV3MetricsCommunityFundTotalStakedRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsCommunityFundTotalStaked( this, request, options, )); } async getApiV3MetricsCommunityFundTotalMaturity( request?: | operations.GetApiV3MetricsCommunityFundTotalMaturityRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsCommunityFundTotalMaturity( this, request, options, )); } async getApiV3MetricsTotalRewardableNodesCount( request?: | operations.GetApiV3MetricsTotalRewardableNodesCountRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsTotalRewardableNodesCount( this, request, options, )); } async getApiV3MetricsRegisteredCanistersCount( request?: | operations.GetApiV3MetricsRegisteredCanistersCountRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsRegisteredCanistersCount( this, request, options, )); } async getApiV3MetricsBlockHeight( request?: operations.GetApiV3MetricsBlockHeightRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsBlockHeight( this, request, options, )); } /** * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getApiV3MetricsTotalActiveNodesCount( request?: | operations.GetApiV3MetricsTotalActiveNodesCountRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsTotalActiveNodesCount( this, request, options, )); } /** * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getApiV3MetricsTotalAwaitingNodesCount( request?: | operations.GetApiV3MetricsTotalAwaitingNodesCountRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsTotalAwaitingNodesCount( this, request, options, )); } /** * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getApiV3MetricsTotalOfflineNodesCount( request?: | operations.GetApiV3MetricsTotalOfflineNodesCountRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsTotalOfflineNodesCount( this, request, options, )); } /** * Deprecated: Use `/api/v3/metrics/node-energy-consumption-rate-kwh` * and `/api/v3/metrics/total-ic-energy-consumption-rate-kwh` instead * * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getApiV3MetricsEnergyConsumptionRate( request?: | operations.GetApiV3MetricsEnergyConsumptionRateRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsEnergyConsumptionRate( this, request, options, )); } async getApiV3MetricsTotalIcEnergyConsumptionRateKwh( request?: | operations.GetApiV3MetricsTotalIcEnergyConsumptionRateKwhRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsTotalIcEnergyConsumptionRateKwh( this, request, options, )); } async getApiV3MetricsNodeEnergyConsumptionRateKwh( request?: | operations.GetApiV3MetricsNodeEnergyConsumptionRateKwhRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsNodeEnergyConsumptionRateKwh( this, request, options, )); } /** * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. */ async getApiV3MetricsTransactionRate( request?: operations.GetApiV3MetricsTransactionRateRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsTransactionRate( this, request, options, )); } async getApiV3MetricsMaxTransactionsPerSecOver90Days( request?: | operations.GetApiV3MetricsMaxTransactionsPerSecOver90DaysRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsMaxTransactionsPerSecOver90Days( this, request, options, )); } async getApiV3MetricsInstructionRate( request?: operations.GetApiV3MetricsInstructionRateRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsInstructionRate( this, request, options, )); } async getApiV3MetricsAverageCycleBurnRate( request?: operations.GetApiV3MetricsAverageCycleBurnRateRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsAverageCycleBurnRate( this, request, options, )); } async getApiV3MetricsIcpTxnVsEthTxn( request?: operations.GetApiV3MetricsIcpTxnVsEthTxnRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsIcpTxnVsEthTxn( this, request, options, )); } async getApiV3MetricsEthEquivalentTxns( request?: operations.GetApiV3MetricsEthEquivalentTxnsRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(metricsGetApiV3MetricsEthEquivalentTxns( this, request, options, )); } async getApiV3MetricsGovernanceNotDissolvingNeuronsE8s1year( request?: | operations.GetApiV3MetricsGovernanceNotDissolvingNeuronsE8s1yearRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync( metricsGetApiV3MetricsGovernanceNotDissolvingNeuronsE8s1year( this, request, options, ), ); } async getApiV3MetricsGovernanceDissolvingNeuronsE8s1year( request?: | operations.GetApiV3MetricsGovernanceDissolvingNeuronsE8s1yearRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync( metricsGetApiV3MetricsGovernanceDissolvingNeuronsE8s1year( this, request, options, ), ); } async getApiV3MetricsGovernanceNotDissolvingNeuronsStakedMaturityE8sEquivalent1year( request?: | operations.GetApiV3MetricsGovernanceNotDissolvingNeuronsStakedMaturityE8sEquivalent1yearRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync( metricsGetApiV3MetricsGovernanceNotDissolvingNeuronsStakedMaturityE8sEquivalent1year( this, request, options, ), ); } async getApiV3MetricsGovernanceDissolvingNeuronsStakedMaturityE8sEquivalent1year( request?: | operations.GetApiV3MetricsGovernanceDissolvingNeuronsStakedMaturityE8sEquivalent1yearRequest | undefined, options?: RequestOptions, ): Promise { return unwrapAsync( metricsGetApiV3MetricsGovernanceDissolvingNeuronsStakedMaturityE8sEquivalent1year( this, request, options, ), ); } }