Class: Google::Cloud::Logging::V2::LogBucket
- Inherits:
-
Object
- Object
- Google::Cloud::Logging::V2::LogBucket
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/logging/v2/logging_config.rb
Overview
Describes a repository of logs (Beta).
Instance Attribute Summary collapse
-
#create_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
-
#description ⇒ ::String
Describes this bucket.
-
#lifecycle_state ⇒ ::Google::Cloud::Logging::V2::LifecycleState
readonly
Output only.
-
#name ⇒ ::String
The resource name of the bucket.
-
#retention_days ⇒ ::Integer
Logs will be retained by default for this amount of time, after which they will automatically be deleted.
-
#update_time ⇒ ::Google::Protobuf::Timestamp
readonly
Output only.
Instance Attribute Details
#create_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The creation timestamp of the bucket. This is not set for any of the default buckets.
56 57 58 59 |
# File 'proto_docs/google/logging/v2/logging_config.rb', line 56 class LogBucket include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#description ⇒ ::String
Returns Describes this bucket.
56 57 58 59 |
# File 'proto_docs/google/logging/v2/logging_config.rb', line 56 class LogBucket include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#lifecycle_state ⇒ ::Google::Cloud::Logging::V2::LifecycleState (readonly)
Returns Output only. The bucket lifecycle state.
56 57 58 59 |
# File 'proto_docs/google/logging/v2/logging_config.rb', line 56 class LogBucket include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#name ⇒ ::String
Returns The resource name of the bucket. For example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id The supported locations are: "global" "us-central1"
For the location of global
it is unspecified where logs are actually
stored.
Once a bucket has been created, the location can not be changed.
56 57 58 59 |
# File 'proto_docs/google/logging/v2/logging_config.rb', line 56 class LogBucket include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#retention_days ⇒ ::Integer
Returns Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used.
56 57 58 59 |
# File 'proto_docs/google/logging/v2/logging_config.rb', line 56 class LogBucket include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#update_time ⇒ ::Google::Protobuf::Timestamp (readonly)
Returns Output only. The last update timestamp of the bucket.
56 57 58 59 |
# File 'proto_docs/google/logging/v2/logging_config.rb', line 56 class LogBucket include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |