REST API, get uut report, set max above 1000 units

Comments

1 comment

  • Anders Kristiansen

    Hi,

    There is no way to do this with GET /api/App/UutReport, but it can be done with POST /api/App/UutReport.

    Right now the filter input is undocumented, but in the next version of WATS it will be documented in WATS Help. Here is what we have written:

    WATS filter 

    The Rest API contains several endpoints that supports a wats-filter payload. Think about the wats filter as the filter found in the different reports in the web portal , see. Report Filter

     

    Please note that each supported endpoint in the Rest API may support only a subset of the available wats-filter fields. 

    Following is a list of the available wats-filter fields: 

     


    filterName 

    Non supporting endpoints 

    filterOrder 

    Non supporting endpoints 

    serialNumber 

    Return data with specified serial number 

    partNumber 

    Return data with specified part number 

    batchNumber 

    Return data with specified batch number 

    componentNumber 

    Return data with specified component number 

    stationName 

    Return data with specified station name 

    testOperation 

    Return data with specified test operation CODE. 

    Ex. Specify 10 for test operation “SW Debug” 

    revision 

    Return data with specified revision 

    repairOperation 

    Return data with specified repair operation CODE. 

    Ex. Specify 500 for repair operation “Repair” 

    status 

    Return data with specified status. 

    Supported values: 

    P, F, E, T, U 

    yield 

    Yield/run based on specified value. 

    1=FPY, 2=SPY, 3=TPY, -1=Last Pass Yield, -2=Test yield 

    miscDescription 

    Return data with specified misc description 

    miscValue 

    Return data with specified misc value 

    productGroup 

    List of product group ids. 

    Request App/productGroups for supported values 

    level 

    List of level ids. 

    Request App/Levels for supported values 

    phase 

     

    swFilename 

    Return data with specified software file name 

    swVersion 

    Return data with specified software file version 

    repairedUnits 

    Non supporting endpoints 

    socket 

    Return data with specified test socket index 

    dateFrom 

    Include data newer than specified value.  

    2021-04-08T11:44:03.779Z 

    dateTo 

    Include data older than specified value. 

    2021-04-08T11:44:03.779Z 

    dateGrouping 

    For time aggregated endpoints. 

    0=hour, 1=day, 2=week, 3=month, 4=quarter, 5=year  

    dateTimeType 

    Non supporting endpoints 

    periodCount 

    The number of periods to include data from. Use in conjunction with dateGrouping. The dateFrom/dateTo fields takes precedence if both fields are specified. 

    includeCurrentPeriod 

    Include or exclude current period. Use in conjunction with periodCount.  

    Ex. 

    periodCount=3 

    dateGrouping=0 (hour) 

    Current time: 19:15 

     

    includeCurrentPeriod=false 

    Data from hour 18, 17 and 16 included. 

     

    includeCurrentPeriod=true 

    Data from hour 19, 18 and 17 included. 

    appraiserType 

    Non supporting endpoints 

    appraiserValue 

    Non supporting endpoints 

    maxCount 

    Only include aggregated row if the number of aggregated rows is lower than specified value. 

    minCount 

    Only include aggregated row if the number of aggregated rows is greater than specified value. 

    topCount 

    The maximum number of rows returned 

    dimensions 

    Supported by App/DynamicYield endpoint. List of dimensions.  

    Supported values:  

    partNumber, productName, stationName, location, purpose, revision, testOperation, processCode, swFilename, swVersion, productGroup, level, period, batchNumber, operator, fixtureId, socketIndex, errorCode, miscInfoDescription, miscInfoString, stepCausedUutFailure, stepPathCausedUutFailure 

    0
    Comment actions Permalink

Please sign in to leave a comment.