Events

Additionally server sends events / notifications when there is some change.

All events have one common property which is:

  • event

    Eventenum

    The event property identifies the type of the event.


JobResults

The JobResults event is sent when job optimization if finished.

  • jobId
    int

    ID of the job that has been finished.

  • result
    Output

    Results of the optimization in a form of Output data group object.


JobAdd

The JobAdd event informs that a new job has been created and added to the queue.

  • jobId
    int

    ID of the job that has been created.


JobDelete

The JobDelete event informs that a job has been just deleted.

  • jobId
    int

    ID of the job that has been deleted.


JobState

The JobState event informs that job’s state has just changed

  • jobId
    int

    ID of the job the state of which has changed.

  • state

    JobStateenum

    State of the job.

  • errorCode

    ErrorCodeenum

    If the job state is set to sError, then errorCode CustomProperty contains the error code.

  • errorDescription
    string

    Additional error information.


JobProgress

The JobProgress event informs about progress of a job.

  • jobId
    int

    ID of the job.

  • progress
    float

    Optimization progress in percent, so 100 means 100%.

  • combinationCount
    int

    Number of combinations checked.


Status

The Status event is sent when server’s state is changed.

  • status

    Statusenum

    The status of the server.

  • queueSize
    int

    The queue size, not including the active job.