/// <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();
 }
 /// <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();
 }
Ejemplo n.º 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();
 }
 /// <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
 });
 /// <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
 });
 /// <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);
 /// <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);
Ejemplo n.º 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);