Class: Google::Cloud::Logging::V2::LogBucket

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/logging/v2/logging_config.rb

Overview

Describes a repository of logs.

Instance Attribute Summary collapse

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.

Returns:



60
61
62
63
# File 'proto_docs/google/logging/v2/logging_config.rb', line 60

class LogBucket
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#description::String

Returns Describes this bucket.

Returns:

  • (::String)

    Describes this bucket.



60
61
62
63
# File 'proto_docs/google/logging/v2/logging_config.rb', line 60

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.

Returns:



60
61
62
63
# File 'proto_docs/google/logging/v2/logging_config.rb', line 60

class LogBucket
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#locked::Boolean

Returns Whether the bucket has been locked. The retention period on a locked bucket may not be changed. Locked buckets may only be deleted if they are empty.

Returns:

  • (::Boolean)

    Whether the bucket has been locked. The retention period on a locked bucket may not be changed. Locked buckets may only be deleted if they are empty.



60
61
62
63
# File 'proto_docs/google/logging/v2/logging_config.rb', line 60

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"

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.

Returns:

  • (::String)

    The resource name of the bucket. For example: "projects/my-project-id/locations/my-location/buckets/my-bucket-id The supported locations are: "global"

    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.



60
61
62
63
# File 'proto_docs/google/logging/v2/logging_config.rb', line 60

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.

Returns:

  • (::Integer)

    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.



60
61
62
63
# File 'proto_docs/google/logging/v2/logging_config.rb', line 60

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.

Returns:



60
61
62
63
# File 'proto_docs/google/logging/v2/logging_config.rb', line 60

class LogBucket
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end