Skip to main content

Get machine productivity

GET 

/workspaces/:workspace_id/productivity/assets/:resource_id

This endpoint returns the productivity data for a single machine.

Request

Path Parameters

    workspace_id stringrequired

    Workspace ID

    resource_id stringrequired

    Resource ID

Query Parameters

    start date-timerequired

    Start date of the data

    end date-timerequired

    End date of the data

    s string

    Shift ID

Responses

OK response.

Schema

    alarm booleanrequired

    Alarm status of the asset

    asset_type stringrequired

    Type of the asset

    availability double

    Availability percentage of the asset

    avg_cycle_time double

    Average cycle time of the asset in seconds

    bad_items int64

    Total bad items produced by the asset

    consumption double

    Total consumption in kWh for the asset

    cost double

    Total energy cost for the asset

    good_items int64

    Total good items produced by the asset

    h_alarm

    object[]

    Historical alarm status of the asset

  • Array [

  • alarm doublerequired

    Value of the alarm data

    ts stringrequired

    Date of the data

  • ]

  • h_consumption

    object[]

    Historical total consumption in kWh for the asset

  • Array [

  • ts stringrequired

    Date of the data

    value doublerequired

    Value of the data

  • ]

  • h_items

    object[]

    Item distribution of the asset

  • Array [

  • bad int64required

    Bad items produced

    good int64required

    Good items produced

    ts stringrequired

    Date of the data

  • ]

  • h_oee

    object[]

    Historical OEE for the asset

  • Array [

  • ts stringrequired

    Date of the data

    value doublerequired

    Value of the data

  • ]

  • h_status

    object[]

    Historical status of the asset

  • Array [

  • idle doublerequired

    Value of the idle data

    offline doublerequired

    Value of the offline data

    ts stringrequired

    Date of the data

    working doublerequired

    Value of the working data

  • ]

  • id stringrequired

    ID of the asset

    item_cost double

    Cost per item of the asset

    last_data_ts string

    Last data timestamp

    name stringrequired

    Name of the asset

    oee double

    OEE percentage of the asset

    operations

    object[]

    Operations worked by the asset

  • Array [

  • assets

    object[]

    Assets worked in the operation

  • Array [

  • alarm boolean

    Alarm status of the asset

    alarm_time int64

    Total seconds in alarm for the asset

    asset_type string

    Type of the asset

    avg_cycle_cost doublerequired

    Average cycle energy cost of the asset

    avg_cycle_time doublerequired

    Average cycle time of the asset in seconds

    bad_cycles int64required

    Total bad cycles produced by the asset

    consumption doublerequired

    Total consumption in kWh for the asset

    cost doublerequired

    Total energy cost for the asset

    device_id string

    Device ID of the asset

    efficiency doublerequired

    Efficiency percentage of the asset

    good_cycles int64required

    Total good cycles produced by the asset

    h_cycles

    object[]

    Historical cycles produced for the asset

  • Array [

  • bad int64required

    Bad items produced

    good int64required

    Good items produced

    ts stringrequired

    Date of the data

  • ]

  • h_efficiency

    object[]

    Historical efficiency percentage of the asset

  • Array [

  • ts stringrequired

    Date of the data

    value doublerequired

    Value of the data

  • ]

  • h_status

    object[]

    Historical status of the asset

  • Array [

  • idle doublerequired

    Value of the idle data

    offline doublerequired

    Value of the offline data

    ts stringrequired

    Date of the data

    working doublerequired

    Value of the working data

  • ]

  • id stringrequired

    ID of the asset

    ideal_cycle_time doublerequired

    Ideal cycle time of the asset in seconds

    last_data_ts stringrequired

    Last data timestamp

    last_operation stringrequired

    Code of the last operation read by the asset

    missing_ideal_cycle_time booleanrequired

    True if the asset is missing ideal cycle time for the operation

    name string

    Name of the asset

    performance doublerequired

    Performance percentage of the asset

    quality doublerequired

    Quality percentage of the asset

    run_time doublerequired

    Total run time in seconds for the asset

    status string

    Status of the asset

    total_cycles int64required

    Total cycles produced by the asset

  • ]

  • avg_cycle_cost double

    Average cycle energy cost of the operation

    avg_cycle_time double

    Average cycle time of the operation in seconds

    bad_cycles int64

    Total bad cycles produced by the operation

    code stringrequired

    Code of the operation

    consumption double

    Total consumption in kWh for the operation

    cost double

    Total energy cost for the operation

    current boolean

    True if the operation is the current operation

    efficiency double

    Efficiency percentage of the operation

    good_cycles int64

    Total good cycles produced by the operation

    h_avg_cycle_cost

    object[]

    Historical average cycle energy cost of the operation

  • Array [

  • ts stringrequired

    Date of the data

    value doublerequired

    Value of the data

  • ]

  • h_avg_cycle_time

    object[]

    Historical average cycle time of the operation in seconds

  • Array [

  • ts stringrequired

    Date of the data

    value doublerequired

    Value of the data

  • ]

  • h_cycles

    object[]

    Historical cycles produced for the operation

  • Array [

  • bad int64required

    Bad items produced

    good int64required

    Good items produced

    ts stringrequired

    Date of the data

  • ]

  • h_efficiency

    object[]

    Historical efficiency percentage of the operation

  • Array [

  • ts stringrequired

    Date of the data

    value doublerequired

    Value of the data

  • ]

  • id stringrequired

    ID of the operation

    missing_ideal_cycle_time booleanrequired

    True if the operation is missing ideal cycle time for one or more assets

    name string

    Name of the operation

    performance double

    Performance percentage of the operation

    quality double

    Quality percentage of the operation

    run_time double

    Total run time in seconds for the operation

    total_cycles int64

    Total cycles produced by the operation

  • ]

  • performance double

    Performance percentage of the asset

    production_times

    object[]

    Production times of the asset

  • Array [

  • key stringrequired

    Key of the data

    value doublerequired

    Value of the data

  • ]

  • quality double

    Quality percentage of the asset

    status stringrequired

    Status of the asset

    total_items int64

    Total items produced by the asset

Loading...