Class: Falqon::Message::Metadata

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/falqon/message.rb

Overview

Metadata for a message

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status: "unknown", retries: 0, retried_at: nil, retry_error: nil, created_at:, updated_at:) ⇒ void

Parameters:

  • status (String) (defaults to: "unknown")

    Status (unknown, pending, processing, scheduled, dead)

  • retries (Integer) (defaults to: 0)

    Number of times the message has been retried

  • retried_at (Integer, nil) (defaults to: nil)

    Timestamp of last retry

  • retry_error (String, nil) (defaults to: nil)

    Last error message

  • created_at (Integer)

    Timestamp of creation

  • updated_at (Integer)

    Timestamp of last update



# File ''

prop :status, String, default: "unknown"
prop :retries, Integer, default: 0
prop :retried_at, T.nilable(Integer)
prop :retry_error, T.nilable(String)
prop :created_at, Integer
prop :updated_at, Integer

Instance Attribute Details

#created_atInteger

Timestamp of creation

Returns:

  • (Integer)


# File ''

prop :created_at, Integer

#retried_atInteger?

Timestamp of last retry

Returns:

  • (Integer, nil)


# File ''

prop :retried_at, T.nilable(Integer)

#retriesInteger

Number of times the message has been retried

Returns:

  • (Integer)


# File ''

prop :retries, Integer, default: 0

#retry_errorString?

Last error message

Returns:

  • (String, nil)


# File ''

prop :retry_error, T.nilable(String)

#statusString

Status (unknown, pending, processing, scheduled, dead)

Returns:

  • (String)


# File ''

prop :status, String, default: "unknown"

#updated_atInteger

Timestamp of last update

Returns:

  • (Integer)


# File ''

prop :updated_at, Integer