Extension:ApiFeatureUsage/zh

ApiFeatureUsage 扩展添加了一个特殊页面和一个 API 模块来获取 ApiBase::logFeatureUsage 记录的数据摘要，这通常表明使用了已弃用的 API 功能.

依赖性
日志数据必须添加到某种存储系统中. 目前 Elasticsearch 通过 获得支持.

-{zh-hans:配置; zh-hant:組態;}-

 * Parameters :

Additional configuration values in :
 * Elastica backend
 * Array of Elasticsearch servers. Required.
 * Array of Elasticsearch servers. Required.


 * Maximum connection attempts, default 1.
 * Maximum connection attempts, default 1.


 * Prefix for the indexes to use. Default " ".
 * Prefix for the indexes to use. Default " ".


 * Date formatting for the indexes to use, see the PHP manual. Default " ".
 * Date formatting for the indexes to use, see the PHP manual. Default " ".


 * Elasticsearch type to query. Default " ".
 * Elasticsearch type to query. Default " ".


 * Field name for the logged value of $feature . Default " ".
 * Field name for the logged value of $feature . Default " ".


 * Field name for the logged timestamp. Default " ".
 * Field name for the logged timestamp. Default " ".


 * Field name for the logged user agent. Default " ".
 * Field name for the logged user agent. Default " ".

用法
该扩展添加了一个新的特殊页面 Special:ApiFeatureUsage，其中包含一个简单的表单来请求用户代理和日期范围内的功能使用日志摘要.

该扩展还添加了一个 API 查询子模块，. 有关详细信息，请参阅自动生成的 API 文档.

