Skip to main content

Capacities

GET 

/api/billing/capacities

This endpoint exposes the capacities and their consumptions in the current period.

The capacities are the maximum amounts of data that can be processed for each group of labels the system provides. The consumptions are the actual amounts of data processed by the system.

Request

Header Parameters

    x-correlation-id X-Correlation-Id

    Correlation ID is a special type of request ID which is unique over a series of requests and responses, identifying a transaction in a distributed system. Correlation ID will be generated if not provided.

    x-request-id X-Request-Id

    In distributed system architecture (microservices architecture) it is a unique ID of a request and response combination throughout all components of the system. Request ID will be generated if not provided.

Responses

Successful Response

Schema

    items

    object[]

    required

  • Array [

  • labels

    object[]

    required

    Possible values: >= 1

  • Array [

  • key LabelKey (string)required

    Possible values: [technology, vendor, operation]

    Label key allowed for labeling consumption group.

    value

    object

    required

    Unspecified label value.

    anyOf

    Allowed label value for technology label key.

    string

    Possible values: [speaker_identification, speech_to_text, time_analysis, language_identification, speaker_diarization, voice_activity_detection, audio_quality_estimation]

  • ]

  • current_period

    object

    required

    Period info.

    The period info is used to represent a period. The period defines the time range for which the billing is calculated. When the period ends, the billing is reset.

    period Period (string)required

    Possible values: [month, week, day, hour, minute]

    Billing period.

    start_time date-timerequired
    end_time date-timerequired
    has_remaining_capacity Has Remaining Capacity (boolean)required

    Flag indicating whether there is any remaining capacity for the labels.If the flag is False, any further processing for the label set will be rejected.

    details

    object[]

    required

    Possible values: >= 1

  • Array [

  • property Property (string)required

    Possible values: [processed_audio_length]

    Billing property.

    The property represents a countable item that can be measured during processing. The example property is the audio length used during processing.

    capacity Capacity (integer)required

    Calculated maximum amount of the capacity.

    consumed Consumed (number)required

    Amount of the capacity that was already consumed.

    valid_until date-timerequired

    Time until the calculated capacity is valid. After this time, the capacityis recalculated or removed. Take note that this is not the time when the consumption will be refreshed. That is determined by the higher-level period info.

    is_extended Is Extended (boolean)required

    Flag indicating whether the capacity was increased by a capacity extension.

  • ]

  • ]

Loading...