Skip to content

Commit

Permalink
fix: Reintroduce deprecated field/enum for backward compatibility
Browse files Browse the repository at this point in the history
docs: Use absolute link targets in comments

The deprecated elements are still deprecated and should not be used; they're solely being reintroduced to avoid breaking changes in client libraries.

PiperOrigin-RevId: 402864419
  • Loading branch information
Google APIs authored and copybara-github committed Oct 13, 2021
1 parent 7bfeecb commit 4a5dad7
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
6 changes: 3 additions & 3 deletions google/monitoring/v3/alert.proto
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,8 @@ message AlertPolicy {
// scope are not evaluated.
message LogMatch {
// Required. A logs-based filter. See [Advanced Logs
// Queries](/logging/docs/view/advanced-queries) for how this filter
// should be constructed.
// Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
// for how this filter should be constructed.
string filter = 1 [(google.api.field_behavior) = REQUIRED];

// Optional. A map from a label key to an extractor expression, which is
Expand All @@ -236,7 +236,7 @@ message AlertPolicy {
// condition.
//
// Please see [the documentation on logs-based metric
// `valueExtractor`s](/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
// `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
// for syntax and examples.
map<string, string> label_extractors = 2;
}
Expand Down
26 changes: 26 additions & 0 deletions google/monitoring/v3/common.proto
Original file line number Diff line number Diff line change
Expand Up @@ -460,3 +460,29 @@ enum ComparisonType {
// True if the left argument is not equal to the right argument.
COMPARISON_NE = 6;
}

// The tier of service for a Workspace. Please see the
// [service tiers
// documentation](https://cloud.google.com/monitoring/workspaces/tiers) for more
// details.
enum ServiceTier {
option deprecated = true;

// An invalid sentinel value, used to indicate that a tier has not
// been provided explicitly.
SERVICE_TIER_UNSPECIFIED = 0;

// The Stackdriver Basic tier, a free tier of service that provides basic
// features, a moderate allotment of logs, and access to built-in metrics.
// A number of features are not available in this tier. For more details,
// see [the service tiers
// documentation](https://cloud.google.com/monitoring/workspaces/tiers).
SERVICE_TIER_BASIC = 1;

// The Stackdriver Premium tier, a higher, more expensive tier of service
// that provides access to all Stackdriver features, lets you use Stackdriver
// with AWS accounts, and has a larger allotments for logs and metrics. For
// more details, see [the service tiers
// documentation](https://cloud.google.com/monitoring/workspaces/tiers).
SERVICE_TIER_PREMIUM = 2;
}
5 changes: 5 additions & 0 deletions google/monitoring/v3/notification.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package google.monitoring.v3;
import "google/api/label.proto";
import "google/api/launch_stage.proto";
import "google/api/resource.proto";
import "google/monitoring/v3/common.proto";
import "google/monitoring/v3/mutation_record.proto";
import "google/protobuf/wrappers.proto";

Expand Down Expand Up @@ -70,6 +71,10 @@ message NotificationChannelDescriptor {
// description for how that field should be populated.
repeated google.api.LabelDescriptor labels = 4;

// The tiers that support this notification channel; the project service tier
// must be one of the supported_tiers.
repeated ServiceTier supported_tiers = 5 [deprecated = true];

// The product launch stage for channels of this type.
google.api.LaunchStage launch_stage = 7;
}
Expand Down

0 comments on commit 4a5dad7

Please sign in to comment.