トラブルシューティング - Amazon Pinpoint

翻訳は機械翻訳により提供されています。提供された翻訳内容と英語版の間で齟齬、不一致または矛盾がある場合、英語版が優先します。

トラブルシューティング

Amazon Pinpoint を使用するときの問題解決に役立つトラブルシューティング情報と、考え得る解決策をよく理解します。

モニタリングとログ記録

ベストプラクティスとして、以下の方法により、Amazon Pinpoint でイベントをログに記録しておくことを検討します。

CLI 一般的なタスクの例

次の例は、Amazon Pinpoint の一般的なCLIコマンドです。

  • エンドポイントデータの取得: get-endpoint CLI

    aws pinpoint get-endpoint —application-id AppId —endpoint-id EndpointId
    上のコマンドに、以下の変更を加えます。
    • 置換 AppId エンドポイントを含む Amazon Pinpoint プロジェクトの ID を持つ 。

    • 置換 EndpointId 取得する既存のエンドポイントの ID を指定します。

  • ユーザーデータの取得: get-user-endpoints CLI

    aws pinpoint get-user-endpoints —application-id AppId —user-id UserId
    上のコマンドに、以下の変更を加えます。
    • 置換 AppId エンドポイントを含む Amazon Pinpoint プロジェクトの ID を持つ 。

    • 置換 UserId ユーザーの ID を入力します。

  • 新しいエンドポイントの更新または作成: update-endpoint CLI

    aws pinpoint update-endpoint —application-id AppId —endpoint-id EndpointId —endpoint-request '{"ChannelType":"SMS","Address":"+12345678","Location":{"Country":"USA"},"User":{"UserId":"UserId"}}'
    上のコマンドに、以下の変更を加えます。
    • 置換 AppId エンドポイントを含む Amazon Pinpoint プロジェクトの ID を持つ 。

    • 置換 EndpointId は、作成または更新する既存のエンドポイントの ID で指定します。

    • 置換 UserId ユーザーの ID を入力します。

  • エンドポイントの削除: delete-endpoint CLI

    aws pinpoint delete-endpoint —application-id AppId —endpoint-id EndpointId
    上のコマンドに、以下の変更を加えます。
    • 置換 AppId エンドポイントを含む Amazon Pinpoint プロジェクトの ID を持つ 。

    • 置換 EndpointId 削除する既存のエンドポイントの ID を持つ 。

  • 電話番号を検証します。 phone-number-validate CLI

    aws pinpoint phone-number-validate —number-validate-request PhoneNumber=+12065550100
    上のコマンドに、以下の変更を加えます。
    • 置換 +12065550100 検証する電話番号を入力します。

  • send-messages 例 CLI: 数値SMSへの

    aws pinpoint send-messages --application-id AppID --message-request '{"MessageConfiguration": {"SMSMessage":{"Body":"This is a test message"}},"Addresses": {"DestinationPhoneNumber": {"ChannelType":"SMS"}}}‘
    上のコマンドに、以下の変更を加えます。
    • 置換 AppId エンドポイントを含む Amazon Pinpoint プロジェクトの ID を持つ 。

    • 置換 DestinationPhoneNumber 送信先の電話番号を入力します。

  • send-messages 例CLI: 発信元番号から SMS

    aws pinpoint send-messages --application-id AppID --message-request '{"MessageConfiguration": {"SMSMessage":{"Body":"hello, how are you?","OriginationNumber": "OriginPhoneNumber"}},"Addresses": {"DestinationPhoneNumber": {"ChannelType":"SMS"}}}‘
    上のコマンドに、以下の変更を加えます。
    • 置換 AppId エンドポイントを含む Amazon Pinpoint プロジェクトの ID を持つ 。

    • 置換 OriginPhoneNumber メッセージの送信元の電話番号を入力します。

    • 置換 DestinationPhoneNumber 送信先の電話番号を入力します。

  • send-messages 例CLI: エンドポイントSMSへの

    aws pinpoint send-messages —application-id AppID —message-request '{"MessageConfiguration": {"SMSMessage":{"Body":"This is a test message"}},"Endpoints": {"EndPointId": {}}}'
    上のコマンドに、以下の変更を加えます。
    • 置換 AppId エンドポイントを含む Amazon Pinpoint プロジェクトの ID を持つ 。

    • 置換 EndPointId 送信先の既存のエンドポイントの ID を指定します。

  • send-messages 例CLI: SMSを に送信する userId

    aws pinpoint send-users-messages —application-id AppID —send-users-message-request '{"MessageConfiguration": {"SMSMessage":{"Body":"This is a test"}},"Users": {"UserId": {}}}'
    上のコマンドに、以下の変更を加えます。
    • 置換 AppId エンドポイントを含む Amazon Pinpoint プロジェクトの ID を持つ 。

    • 置換 UserId ユーザーの ID を入力します。

  • Amazon Pinpoint メッセージテンプレート 作成キャンペーンによるキャンペーンの作成 CLI

    aws pinpoint create-campaign —application-id AppId —write-campaign-request file://campaignclirequest.json file://campaignclirequest.json { "Description": "CLITestCampaign", "HoldoutPercent": 0, "MessageConfiguration": { "DefaultMessage": { "Body": "TestFromCLI" } }, "Name": "TestingCLICampaign", "Schedule": { "StartTime": "IMMEDIATE" }, "TemplateConfiguration": { "EmailTemplate": { "Name": "TemplateName", "Version": "Version" } }, "SegmentId": "SegmentID", "SegmentVersion": 1 }
    上のコマンドおよびファイルに、以下の変更を加えます。
    • 置換 AppId エンドポイントを含む Amazon Pinpoint プロジェクトの ID を持つ 。

    • 置換 TemplateName をテンプレートの名前で指定します。

    • 置換 Version テンプレートの バージョン。

    • 置換 SegmentID をターゲットとするセグメントの ID で指定します。