Skip to content

Oracle Service for Epoch-Based Latency Statistics #513

@juan-malbeclabs

Description

@juan-malbeclabs

Develop an oracle service that executes at the end of each epoch to retrieve and process latency data stored in the smart contract.

Purpose

This service ensures accurate and timely extraction of network performance metrics from on-chain data, supporting decentralized and automated network analytics.

Functionality

At the close of each epoch, the oracle must:

  1. Read the accumulated latency samples from the smart contract.
  2. Compute the following statistics for each device and link:
  • Minimum (min)
  • Maximum (max)
  • 95th percentile (95p)
  • 99th percentile (99p)
  1. The computed statistical values must be stored in an on-chain account associated with the epoch.
  2. This account should contain all statistical metrics (min, max, 95p, 99p) for each combination of device_pk and link_pk.

These computed values will be used for further analysis, visualization, and Sharpley-based evaluations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions