> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PartyLocalEndpoint::GetEndpointStatistics

> 指定されたターゲット エンドポイントの 1 つ以上の統計カウンター値を取得します。

指定されたターゲット エンドポイントの 1 つ以上の統計カウンター値を取得します。

## 構文

```cpp theme={null}
PartyError GetEndpointStatistics(  
    uint32_t targetEndpointCount,  
    PartyEndpointArray targetEndpoints,  
    uint32_t statisticCount,  
    const PartyEndpointStatistic* statisticTypes,  
    uint64_t* statisticValues  
)  
```

### パラメーター

**`targetEndpointCount`**   uint32\_t

`targetEndpoints` 配列内のターゲット エンドポイントの数。このローカル エンドポイントを含む、現在ネットワーク内のすべてのエンドポイントの統計を取得するには 0 にできます。

**`targetEndpoints`**   [PartyEndpointArray](/services/playfab/multiplayer/networking/reference/typedefs)\
*サイズ `targetEndpointCount` の入力配列*

統計を取得するターゲット PartyEndpoint オブジェクト ポインターの `targetEndpointCount` エントリ配列。これは `targetEndpointCount` がゼロの場合は無視されます。

**`statisticCount`**   uint32\_t

入力 `statisticTypes` 配列内、および `statisticValues` 出力配列に書き込む統計の数。これは少なくとも 1 である必要があります。

**`statisticTypes`**   [PartyEndpointStatistic\*](/services/playfab/multiplayer/networking/reference/enums/partyendpointstatistic)\
*サイズ `statisticCount` の入力配列*

取得する一意の PartyEndpointStatistic 型の `statisticCount` エントリ入力配列。

**`statisticValues`**   uint64\_t\*\
*サイズ `statisticCount` の出力配列*

統計値を書き込む `statisticCount` エントリ出力配列。各統計値は、要求された PartyEndpointStatistic が `statisticTypes` 入力配列に出現するのと同じエントリ インデックスに書き込まれます。

### 戻り値

PartyError

エンドポイント統計の取得が成功した場合は `c_partyErrorSuccess`、それ以外の場合はエラー コード。エラー コードの人間が読める形式は、[PartyManager::GetErrorMessage()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_geterrormessage) で取得できます。

## 解説

このメソッドは、このローカル エンドポイントとターゲット エンドポイント間で記録されたパフォーマンス カウンター、キューの長さ、履歴使用状況メトリック、またはその他の統計情報を取得するために使用されます。<br /><br /> 代わりに、複数のターゲット エンドポイントを指定するか、このローカル エンドポイントを含む、現在ネットワーク内のすべてのターゲット エンドポイントの統計を取得するために、ゼロ エントリ配列を指定できます。複数のターゲット エンドポイントが要求された場合、返される値はそれらのエンドポイントの結合された統計です。複数のエンドポイント統計を単一の値に結合するために使用される特定のメソッドは、特定の PartyEndpointStatistic 型によって異なり、それによって記述されます。<br /><br /> 特定の PartyEndpointStatistic 型は `statisticTypes` 配列内に任意の順序で表示できますが、複数回指定してはなりません。対応する各統計値は、同じ順序で `statisticValues` 配列に書き込まれます。<br /><br /> 返される統計値は常に、利用可能な最新のものです。それらが、[PartyManager::StartProcessingStateChanges()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_startprocessingstatechanges) や [PartyManager::FinishProcessingStateChanges()](/services/playfab/multiplayer/networking/reference/classes/PartyManager/methods/partymanager_finishprocessingstatechanges) への介在する呼び出しがなかったとしても、ある GetEndpointStatistics() 呼び出しから次の呼び出しへ同じ値を報告する保証はありません。

## 要件

**ヘッダー:** Party.h

## 関連項目

[PartyLocalEndpoint](/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/partylocalendpoint)\
[PartyEndpointStatistic](/services/playfab/multiplayer/networking/reference/enums/partyendpointstatistic)\
[PartyNetwork::GetNetworkStatistics](/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getnetworkstatistics)


## Related topics

- [PartyEndpointStatistic](/ja-jp/services/playfab/multiplayer/networking/reference/enums/partyendpointstatistic.md)
- [PartyLocalEndpoint::SendMessage](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyLocalEndpoint/methods/partylocalendpoint_sendmessage.md)
- [PartyNetworkStatistic](/ja-jp/services/playfab/multiplayer/networking/reference/enums/partynetworkstatistic.md)
- [PartyNetwork::GetNetworkStatistics](/ja-jp/services/playfab/multiplayer/networking/reference/classes/PartyNetwork/methods/partynetwork_getnetworkstatistics.md)
- [PartyDirectPeerConnectivityOptions](/ja-jp/services/playfab/multiplayer/networking/reference/enums/partydirectpeerconnectivityoptions.md)
