# 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.
EncryptResponse | Encrypt the output.
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-2020 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm