class documentation

Represents an API Resource-related event which is potentially important to the end-user. What exactly constitutes an event to be reported is service-dependent

Class Level No class docstring; 5/6 constants documented
Method __dir__ Undocumented
Method __init__ Create a wrapper around a protobuf message instance.
Method code.setter Undocumented
Method error.setter Undocumented
Method level.setter Undocumented
Method message.setter Undocumented
Method occurred_at.setter Undocumented
Constant __PB2_DESCRIPTOR__ Undocumented
Constant __PY_TO_PB2__ Undocumented
Class Variable __mask_functions__ Undocumented
Property code Event code (unique within the API service), in UpperCamelCase, e.g. "DiskAttached"
Property error Describes a GRPC error status associated with an ERROR or WARN level event, if known. The error must have a standard GRPC code (which must not be OK (0)) and a human-readable message. A standard common.v1.ServiceError...
Property level Severity level for the event
Property message A human-readable message describing what has happened (and suggested actions for the user, if this is a WARN or ERROR level event)
Property occurred_at Time at which the event has occurred

Inherited from Message:

Class Method get_descriptor Return the protobuf descriptor for this message class.
Class Method is_credentials Return True if the field contains credentials.
Class Method is_sensitive Return True if the field is marked as sensitive.
Method __repr__ Return a human-readable representation of the message, sanitizing sensitive fields.
Method check_presence Check explicit presence for a field in the protobuf message.
Method get_full_update_reset_mask Build a reset mask for a full update of this message.
Method get_mask Return the tracked reset mask.
Method is_default Return True if a field equals its default value.
Method set_mask Replace the tracked reset mask.
Method which_field_in_oneof Return the set field name for a given oneof.
Instance Variable __PB2_CLASS__ Protobuf message class associated with this wrapper.
Instance Variable __pb2_message__ Underlying protobuf message instance.
Method _clear_field Clear a field and record it in the reset mask.
Method _get_field Return a field value with optional wrapping and presence handling.
Method _set_field Set a field value and update the reset mask.
Class Variable __credentials_fields Undocumented
Class Variable __default Undocumented
Class Variable __sensitive_fields Undocumented
Instance Variable __recorded_reset_mask Mask tracking fields cleared or set to default.
def __dir__(self) -> abc.Iterable[builtins.str]: (source)

Undocumented

def __init__(self, initial_message: message_1.Message | None = None, *, occurred_at: timestamp_pb2.Timestamp | datetime.datetime | None | unset.UnsetType = unset.Unset, level: ResourceEvent.Level | resource_event_pb2.ResourceEvent.Level | None | unset.UnsetType = unset.Unset, code: builtins.str | None | unset.UnsetType = unset.Unset, message: builtins.str | None | unset.UnsetType = unset.Unset, error: status_pb2.Status | request_status.RequestStatus | None | unset.UnsetType = unset.Unset): (source)

Create a wrapper around a protobuf message instance.

Raises
AttributeErrorIf the wrapper is missing required class metadata.
@code.setter
def code(self, value: builtins.str | None): (source)

Undocumented

@error.setter
def error(self, value: status_pb2.Status | request_status.RequestStatus | None): (source)

Undocumented

@level.setter
def level(self, value: ResourceEvent.Level | resource_event_pb2.ResourceEvent.Level | None): (source)

Undocumented

@message.setter
def message(self, value: builtins.str | None): (source)

Undocumented

@occurred_at.setter
def occurred_at(self, value: timestamp_pb2.Timestamp | datetime.datetime | None): (source)

Undocumented

__PB2_DESCRIPTOR__ = (source)

Undocumented

Value
descriptor.DescriptorWrap[descriptor_1.Descriptor]('.nebius.common.v1.ResourceEv
ent',
                                                   resource_event_pb2.DESCRIPTOR
,
                                                   descriptor_1.Descriptor)
__PY_TO_PB2__: builtins.dict[builtins.str, builtins.str] = (source)

Undocumented

Value
{'occurred_at': 'occurred_at',
 'level': 'level',
 'code': 'code',
 'message': 'message',
 'error': 'error',
 'Level': 'Level'}
@builtins.property
code: builtins.str = (source)

Event code (unique within the API service), in UpperCamelCase, e.g. "DiskAttached"

@builtins.property
error: request_status.RequestStatus | None = (source)

Describes a GRPC error status associated with an ERROR or WARN level event, if known. The error must have a standard GRPC code (which must not be OK (0)) and a human-readable message. A standard common.v1.ServiceError should also be included in details

@builtins.property
level: ResourceEvent.Level = (source)

Severity level for the event

@builtins.property
message: builtins.str = (source)

A human-readable message describing what has happened (and suggested actions for the user, if this is a WARN or ERROR level event)

@builtins.property
occurred_at: datetime.datetime = (source)

Time at which the event has occurred