public final class MonitoringClient
extends java.lang.Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | MonitoringClient.BuilderBuilder for  MonitoringClient. | 
| Modifier and Type | Method and Description | 
|---|---|
| static MonitoringClient.Builder | builder(com.google.api.gax.core.CredentialsProvider credentialsProvider) | 
| void | cleanupAll() | 
| java.util.List<java.lang.Double> | getCpuUtilization(java.lang.String project,
                 java.lang.String jobId,
                 com.google.monitoring.v3.TimeInterval timeInterval)Gets the CPU Utilization time series data for a given Job. | 
| java.util.List<java.lang.Double> | getDataFreshness(java.lang.String project,
                java.lang.String jobId,
                com.google.monitoring.v3.TimeInterval timeInterval)Gets the Data freshness time series data for a given Job. | 
| java.lang.Double | getDataProcessed(java.lang.String project,
                org.apache.beam.it.common.PipelineLauncher.LaunchInfo launchInfo,
                java.lang.String pCollection)Get data processed for a job. | 
| java.lang.Double | getElapsedTime(java.lang.String project,
              org.apache.beam.it.common.PipelineLauncher.LaunchInfo launchInfo)Get elapsed time for a job. | 
| java.lang.Long | getNumMessagesInSubscription(java.lang.String project,
                            java.lang.String subscriptionName)Gets the number of undelivered messages in a given Pub/Sub subscription. | 
| java.util.List<java.lang.Double> | getSystemLatency(java.lang.String project,
                java.lang.String jobId,
                com.google.monitoring.v3.TimeInterval timeInterval)Gets the System Latency time series data for a given Job. | 
| java.util.List<java.lang.Double> | getThroughputBytesPerSecond(java.lang.String project,
                           java.lang.String jobId,
                           java.lang.String pcollection,
                           com.google.monitoring.v3.TimeInterval timeInterval)Gets the output throughput in bytes per second from a particular PCollection during job run
 interval. | 
| java.util.List<java.lang.Double> | getThroughputElementsPerSecond(java.lang.String project,
                              java.lang.String jobId,
                              java.lang.String pcollection,
                              com.google.monitoring.v3.TimeInterval timeInterval)Gets the output throughput in elements per second from a particular PCollection during job run
 interval. | 
| java.util.List<java.lang.Double> | listTimeSeriesAsDouble(com.google.monitoring.v3.ListTimeSeriesRequest request)Lists time series that match a filter. | 
| java.util.List<java.lang.Long> | listTimeSeriesAsLong(com.google.monitoring.v3.ListTimeSeriesRequest request)Lists time series that match a filter. | 
| static MonitoringClient | withMonitoringClient(com.google.cloud.monitoring.v3.MetricServiceClient metricServiceClient) | 
public static MonitoringClient withMonitoringClient(com.google.cloud.monitoring.v3.MetricServiceClient metricServiceClient)
public static MonitoringClient.Builder builder(com.google.api.gax.core.CredentialsProvider credentialsProvider)
public java.util.List<java.lang.Double> listTimeSeriesAsDouble(com.google.monitoring.v3.ListTimeSeriesRequest request)
request - time series request to executepublic java.util.List<java.lang.Long> listTimeSeriesAsLong(com.google.monitoring.v3.ListTimeSeriesRequest request)
request - time series request to execute@Nullable public java.lang.Long getNumMessagesInSubscription(java.lang.String project, java.lang.String subscriptionName)
project - the project that the job is running undersubscriptionName - name of the Pub/Sub subscription@Nullable public java.util.List<java.lang.Double> getCpuUtilization(java.lang.String project, java.lang.String jobId, com.google.monitoring.v3.TimeInterval timeInterval)
project - the project that the job is running underjobId - dataflow job idtimeInterval - interval for the monitoring query@Nullable public java.util.List<java.lang.Double> getSystemLatency(java.lang.String project, java.lang.String jobId, com.google.monitoring.v3.TimeInterval timeInterval)
project - the project that the job is running underjobId - dataflow job idtimeInterval - interval for the monitoring query@Nullable public java.util.List<java.lang.Double> getDataFreshness(java.lang.String project, java.lang.String jobId, com.google.monitoring.v3.TimeInterval timeInterval)
project - the project that the job is running underjobId - dataflow job idtimeInterval - interval for the monitoring query@Nullable public java.util.List<java.lang.Double> getThroughputBytesPerSecond(java.lang.String project, java.lang.String jobId, java.lang.String pcollection, com.google.monitoring.v3.TimeInterval timeInterval)
project - the project that the job is running underjobId - dataflow job idpcollection - name of the pcollectiontimeInterval - interval for the monitoring query@Nullable public java.util.List<java.lang.Double> getThroughputElementsPerSecond(java.lang.String project, java.lang.String jobId, java.lang.String pcollection, com.google.monitoring.v3.TimeInterval timeInterval)
project - the project that the job is running underjobId - dataflow job idpcollection - name of the pcollectiontimeInterval - interval for the monitoring query@Nullable public java.lang.Double getElapsedTime(java.lang.String project, org.apache.beam.it.common.PipelineLauncher.LaunchInfo launchInfo) throws java.text.ParseException
project - the project that the job is running underlaunchInfo - information about the jobjava.text.ParseException - if timestamp is inaccurate@Nullable public java.lang.Double getDataProcessed(java.lang.String project, org.apache.beam.it.common.PipelineLauncher.LaunchInfo launchInfo, java.lang.String pCollection) throws java.text.ParseException
project - the project that the job is running underlaunchInfo - information about the jobjava.text.ParseException - if timestamp is inaccuratepublic void cleanupAll()