IPredModelBuilder::get_slRunningModels
The slRunningModels property is a read-only SimpleList object that contains information on the active (running and paused) model build threads.
Definition
HRESULT IPredModelBuilder::get_slRunningModels(ISimpleList**ppslVal);
Parameters
ppslVal
[out, retval] The address of a pointer to the ISimpleList interface for the SimpleList object used to return the infomation on the active model build threads.
Return Values
This method returns an HRESULT indicating whether it completed successfully. See the following Error Values section for more details.
Error Values
This method returns S_OK (0x00000000) to indicate success and standard COM HRESULT error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return a text description of the error.
Remarks
The SimpleList object, slRunningModels, contains a Dictionary object for each running model. The keys of the Dictionary object are the names of the model properties as listed in the PredictorModels Table except for the properties dependent on a successful finished build. The properties that are unavailable are: DateCreated, DataFitScore, RecommendScore, and BuildTime. After a successful build, these properties are available through the slModels property of the PredictorServiceAdmin object or the dModelInfo property of the PredictorServiceSiteAdmin object. The following table describes a few of the keys contained in the Dictionary object. For information about the remaining keys, see PredictorModels Table.
Key Name | Type | Description |
DWResourceName | BSTR | Name of the Data Warehouse resource where the model configuration is defined. |
ModelCfgName | BSTR | Name of the model configuration used to build the model. |
BuildID | long | The ID of the build thread. |
ModelName | BSTR | Model name. |
Use the Status property to check the status of a specific model build thread.
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.
The ppslVal parameter contains valid data only if the property is accessed successfully.
See Also
IPredictorServiceAdmin::get_slModels
IPredictorServiceSiteAdmin::get_dModelInfo