ジョブ指標の取得(Ruby)
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ジョブの進行状況を表す指標コレクションの取得方法を示します。
コードサンプル
Ruby
Dataflow で認証を行うには、アプリケーションのデフォルト認証情報を設定します。詳細については、ローカル開発環境の認証を設定するをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],[],[[["This code snippet demonstrates how to retrieve a collection of metrics that describe the progress of a Dataflow job."],["The example uses the `get_job_metrics` method from the `Google::Cloud::Dataflow::V1beta3::Metrics::Client` to fetch the metrics."],["Authentication to Dataflow requires setting up Application Default Credentials, as detailed in the linked documentation."],["The `get_job_metrics` method returns an object of type `Google::Cloud::Dataflow::V1beta3::JobMetrics`."]]],[]]