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

    Interface ResourceCost

    Cost information for a single resource. Contains metadata about the resource and its cost.

    interface ResourceCost {
        "[customJson]"?: () => unknown;
        "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>;
        $type: "nebius.billing.v1.ResourceCost";
        aggregationUnit?: AggregationUnit;
        costType?:
            | { $case: "general"; general: GeneralResourceCost }
            | { $case: "fixedInstance"; fixedInstance: FixedInstanceResourceCost }
            | { $case: "autoscale"; autoscale: AutoscaleResourceCost };
        metadata?: ResourceMetadata;
        overrideMetadata?: ResourceMetadata;
        [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined;
    }

    Indexable

    • [key: symbol]: Uint8Array<ArrayBufferLike> | (() => unknown) | undefined

      Cost information for a single resource. Contains metadata about the resource and its cost.

      • Uint8Array<ArrayBufferLike>
      • () => unknown
          • (): unknown
          • Cost information for a single resource. Contains metadata about the resource and its cost.

            Returns unknown

      • undefined
    Index
    "[customJson]"?: () => unknown

    Returns a safe value for JSON logs.

    Type Declaration

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

        Returns unknown

    "[unknownFieldsSymbol]"?: Uint8Array<ArrayBufferLike>

    Preserves protobuf fields that this SDK version does not recognize.

    $type: "nebius.billing.v1.ResourceCost"

    Contains the fully qualified protobuf type name.

    aggregationUnit?: AggregationUnit

    Unit of the SKU measurement within a resource, e.g. "hour", "day", "month", etc.

    costType?:
        | { $case: "general"; general: GeneralResourceCost }
        | { $case: "fixedInstance"; fixedInstance: FixedInstanceResourceCost }
        | { $case: "autoscale"; autoscale: AutoscaleResourceCost }

    Contains the selected value for the cost_type protobuf oneof.

    Type Declaration

    metadata?: ResourceMetadata

    Resource metadata.

    overrideMetadata?: ResourceMetadata

    Optional field to override the resource metadata.