コード例 #1
0
 /// <summary>
 /// Creates or updates a logs-based metric.
 /// </summary>
 /// <param name="metricName">
 /// The resource name of the metric to update.
 /// Example: `"projects/my-project-id/metrics/my-metric-id"`.
 ///
 /// The updated metric must be provided in the request and have the
 /// same identifier that is specified in `metricName`.
 /// If the metric does not exist, it is created.
 /// </param>
 /// <param name="metric">
 /// The updated metric, whose name must be the same as the
 /// metric identifier in `metricName`. If `metricName` does not
 /// exist, then a new metric is created.
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>The RPC response.</returns>
 public virtual LogMetric UpdateLogMetric(
     string metricName,
     LogMetric metric,
     CallSettings callSettings = null)
 {
     throw new NotImplementedException();
 }
コード例 #2
0
 /// <summary>
 /// Creates a logs-based metric.
 /// </summary>
 /// <param name="parent">
 /// The resource name of the project in which to create the metric.
 /// Example: `"projects/my-project-id"`.
 ///
 /// The new metric must be provided in the request.
 /// </param>
 /// <param name="metric">
 /// The new logs-based metric, which must not have an identifier that
 /// already exists.
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>The RPC response.</returns>
 public virtual LogMetric CreateLogMetric(
     string parent,
     LogMetric metric,
     CallSettings callSettings = null)
 {
     throw new NotImplementedException();
 }
コード例 #3
0
 /// <summary>
 /// Creates a logs-based metric.
 /// </summary>
 /// <param name="project_name">
 /// The resource name of the project in which to create the metric.
 /// Example: `"projects/my-project-id"`.
 ///
 /// The new metric must be provided in the request.
 /// </param>
 /// <param name="metric">
 /// The new logs-based metric, which must not have an identifier that
 /// already exists.
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual Task <LogMetric> CreateLogMetricAsync(
     string projectName,
     LogMetric metric,
     CallSettings callSettings = null)
 {
     throw new NotImplementedException();
 }
コード例 #4
0
 /// <summary>
 /// Creates or updates a logs-based metric.
 /// </summary>
 /// <param name="metricName">
 /// The resource name of the metric to update.
 /// Example: `"projects/my-project-id/metrics/my-metric-id"`.
 ///
 /// The updated metric must be provided in the request and have the
 /// same identifier that is specified in `metricName`.
 /// If the metric does not exist, it is created.
 /// </param>
 /// <param name="metric">
 /// The updated metric, whose name must be the same as the
 /// metric identifier in `metricName`. If `metricName` does not
 /// exist, then a new metric is created.
 /// </param>
 /// <param name="cancellationToken">A <see cref="CancellationToken"/> to use for this RPC.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual Task <LogMetric> UpdateLogMetricAsync(
     string metricName,
     LogMetric metric,
     CancellationToken cancellationToken) => UpdateLogMetricAsync(
     metricName,
     metric,
     new CallSettings {
     CancellationToken = cancellationToken
 });
コード例 #5
0
 /// <summary>
 /// Creates a logs-based metric.
 /// </summary>
 /// <param name="parent">
 /// The resource name of the project in which to create the metric.
 /// Example: `"projects/my-project-id"`.
 ///
 /// The new metric must be provided in the request.
 /// </param>
 /// <param name="metric">
 /// The new logs-based metric, which must not have an identifier that
 /// already exists.
 /// </param>
 /// <param name="cancellationToken">A <see cref="CancellationToken"/> to use for this RPC.</param>
 /// <returns>A Task containing the RPC response.</returns>
 public virtual Task <LogMetric> CreateLogMetricAsync(
     string parent,
     LogMetric metric,
     CancellationToken cancellationToken) => CreateLogMetricAsync(
     parent,
     metric,
     new CallSettings {
     CancellationToken = cancellationToken
 });
コード例 #6
0
 /// <summary>
 /// Creates or updates a logs-based metric.
 /// </summary>
 /// <param name="metricName">
 /// The resource name of the metric to update.
 /// Example: `"projects/my-project-id/metrics/my-metric-id"`.
 ///
 /// The updated metric must be provided in the request and have the
 /// same identifier that is specified in `metricName`.
 /// If the metric does not exist, it is created.
 /// </param>
 /// <param name="metric">
 /// The updated metric, whose name must be the same as the
 /// metric identifier in `metricName`. If `metricName` does not
 /// exist, then a new metric is created.
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>The RPC response.</returns>
 public override LogMetric UpdateLogMetric(
     string metricName,
     LogMetric metric,
     CallSettings callSettings = null) => _callUpdateLogMetric.Sync(
     new UpdateLogMetricRequest
 {
     MetricName = metricName,
     Metric     = metric,
 },
     callSettings);
コード例 #7
0
 /// <summary>
 /// Creates a logs-based metric.
 /// </summary>
 /// <param name="parent">
 /// The resource name of the project in which to create the metric.
 /// Example: `"projects/my-project-id"`.
 ///
 /// The new metric must be provided in the request.
 /// </param>
 /// <param name="metric">
 /// The new logs-based metric, which must not have an identifier that
 /// already exists.
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>The RPC response.</returns>
 public override LogMetric CreateLogMetric(
     string parent,
     LogMetric metric,
     CallSettings callSettings = null) => _callCreateLogMetric.Sync(
     new CreateLogMetricRequest
 {
     Parent = parent,
     Metric = metric,
 },
     callSettings);
コード例 #8
0
 /// <summary>
 /// Creates a logs-based metric.
 /// </summary>
 /// <param name="project_name">
 /// The resource name of the project in which to create the metric.
 /// Example: `"projects/my-project-id"`.
 ///
 /// The new metric must be provided in the request.
 /// </param>
 /// <param name="metric">
 /// The new logs-based metric, which must not have an identifier that
 /// already exists.
 /// </param>
 /// <param name="callSettings">If not null, applies overrides to this RPC call.</param>
 /// <returns>The RPC response.</returns>
 public override LogMetric CreateLogMetric(
     string projectName,
     LogMetric metric,
     CallSettings callSettings = null) => _callCreateLogMetric.Sync(
     new CreateLogMetricRequest
 {
     ProjectName = projectName,
     Metric      = metric,
 },
     callSettings);