Skip to content

Commit 4a5dad7

Browse files
Google APIscopybara-github
authored andcommitted
fix: Reintroduce deprecated field/enum for backward compatibility
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
1 parent 7bfeecb commit 4a5dad7

3 files changed

Lines changed: 34 additions & 3 deletions

File tree

google/monitoring/v3/alert.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,8 +223,8 @@ message AlertPolicy {
223223
// scope are not evaluated.
224224
message LogMatch {
225225
// Required. A logs-based filter. See [Advanced Logs
226-
// Queries](/logging/docs/view/advanced-queries) for how this filter
227-
// should be constructed.
226+
// Queries](https://cloud.google.com/logging/docs/view/advanced-queries)
227+
// for how this filter should be constructed.
228228
string filter = 1 [(google.api.field_behavior) = REQUIRED];
229229

230230
// Optional. A map from a label key to an extractor expression, which is
@@ -236,7 +236,7 @@ message AlertPolicy {
236236
// condition.
237237
//
238238
// Please see [the documentation on logs-based metric
239-
// `valueExtractor`s](/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
239+
// `valueExtractor`s](https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.metrics#LogMetric.FIELDS.value_extractor)
240240
// for syntax and examples.
241241
map<string, string> label_extractors = 2;
242242
}

google/monitoring/v3/common.proto

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,3 +460,29 @@ enum ComparisonType {
460460
// True if the left argument is not equal to the right argument.
461461
COMPARISON_NE = 6;
462462
}
463+
464+
// The tier of service for a Workspace. Please see the
465+
// [service tiers
466+
// documentation](https://cloud.google.com/monitoring/workspaces/tiers) for more
467+
// details.
468+
enum ServiceTier {
469+
option deprecated = true;
470+
471+
// An invalid sentinel value, used to indicate that a tier has not
472+
// been provided explicitly.
473+
SERVICE_TIER_UNSPECIFIED = 0;
474+
475+
// The Stackdriver Basic tier, a free tier of service that provides basic
476+
// features, a moderate allotment of logs, and access to built-in metrics.
477+
// A number of features are not available in this tier. For more details,
478+
// see [the service tiers
479+
// documentation](https://cloud.google.com/monitoring/workspaces/tiers).
480+
SERVICE_TIER_BASIC = 1;
481+
482+
// The Stackdriver Premium tier, a higher, more expensive tier of service
483+
// that provides access to all Stackdriver features, lets you use Stackdriver
484+
// with AWS accounts, and has a larger allotments for logs and metrics. For
485+
// more details, see [the service tiers
486+
// documentation](https://cloud.google.com/monitoring/workspaces/tiers).
487+
SERVICE_TIER_PREMIUM = 2;
488+
}

google/monitoring/v3/notification.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package google.monitoring.v3;
1919
import "google/api/label.proto";
2020
import "google/api/launch_stage.proto";
2121
import "google/api/resource.proto";
22+
import "google/monitoring/v3/common.proto";
2223
import "google/monitoring/v3/mutation_record.proto";
2324
import "google/protobuf/wrappers.proto";
2425

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

74+
// The tiers that support this notification channel; the project service tier
75+
// must be one of the supported_tiers.
76+
repeated ServiceTier supported_tiers = 5 [deprecated = true];
77+
7378
// The product launch stage for channels of this type.
7479
google.api.LaunchStage launch_stage = 7;
7580
}

0 commit comments

Comments
 (0)