@nebius/js-sdk - v0.2.54
    Preparing search index...

    Interface CurrentStep

    Describes one step in an operation.

    A service can omit steps. It can also return only active steps or some completed steps.

    const tracker = op.progressTracker();
    if (tracker) {
    for (const step of tracker.steps()) {
    const fraction = step.workFraction();
    if (fraction === undefined) {
    console.log(step.description());
    } else {
    console.log(`${step.description()}: ${Math.round(fraction * 100)}%`);
    }
    }
    }
    interface CurrentStep {
        "[customJson]"(): unknown;
        description(): string;
        finishedAt(): Dayjs | undefined;
        startedAt(): Dayjs | undefined;
        toString(): string;
        workDone(): ProgressTrackerWorkDone | undefined;
        workFraction(): number | undefined;
        [key: symbol]: () => unknown;
    }

    Hierarchy (View Summary)

    Indexable

    • [key: symbol]: () => unknown

      Describes one step in an operation.

      A service can omit steps. It can also return only active steps or some completed steps.

        • (): unknown
        • Returns a safe value for JSON logs.

          Returns unknown

    Index
    • Returns the step finish time when the service provides it.

      Returns Dayjs | undefined

    • Returns the step start time when the service provides it.

      Returns Dayjs | undefined

    • Returns the completed work as a value from 0 to 1.

      Returns undefined when the work counts are missing or invalid.

      Returns number | undefined