Answer Server 23.4

# GetStats

Returns information about the numbers of questions and question equivalence classes in the system in each state. You must specify the system by setting SystemName.

The possible question state values are: `incoming`, `answerable`, `needs_answer`, `answered`, or `rejected`. Answer Server automatically assigns the `incoming` state to new questions, and updates the state to `answered` when you add the question to a question equivalence class. You can also manually define the question states by using the `ManageResources` action. For more information, refer to the Answer Server Administration Guide.

Answer Server assigns the question equivalence class a state according to whether it has a question equivalence rule. Question equivalence classes without a rule have the state `incoming`. Classes with a rule have the state `published`.

## Example

    action=GetStats&SystemName=MyAnswerBank

This action returns information about the questions in the `MyAnswerBank` system.

## Required Parameters

The following action parameters are required.

Parameter | Description
--- | ---
SystemName | The name of the system that you want to retrieve statistics from.

## Optional Parameters

This action accepts the following standard ACI action parameters.

Parameter | Description
--- | ---
ActionID | A string to use to identify an ACI action.
FileName | The file to write output to.
ForceTemplateRefresh | Forces the server to load the template from disk.
Output | Writes output to a file.
ResponseFormat | The format of the action output.
Template | The template to use for the action output.
TemplateParamCSVs | A list of variables to use for the specified template.

## Response

You can retrieve the full response XSD by sending the GetResources action with Type set to `XSD`.

NOTE: If there are no questions or question equivalence classes in a particular state, the action returns a `stat` tag for the status, with count zero.

Copyright 2016-2023 Open Text
Version 23.4 | Last updated September 2023

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to swpdl.idoldocsfeedback@microfocus.com.

We appreciate your feedback!

Product: IDOL Answer Server 23.4

Topic Title: GetStats