kernl API
    Preparing search index...

    Function runtimeOpClass

    • The guard's operation class for a request as kehto's runtime names it.

      The runtime charges an operation by the name its service gave it, which for the requests an applet sends is the envelope's type (relay.publish, storage.set), so the guard's own classification applies. It does not say what kind of post a publish carries, so deletions share the relay:publish budget here; kernl's own rate limiter, in front, keeps their separate one.

      Parameters

      • operation: string

        The operation name from a runtime observation.

      Returns OpClass

      The class whose budget the operation spends.

      runtimeOpClass('relay.publish'); // 'relay:publish'
      runtimeOpClass('resource.network'); // 'resource:bytes'
      runtimeOpClass('link.open'); // 'generic'