Class: Inttegro::File::ServiceHealthResponse

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/file/service_health_response.rb

Overview

Typed representation of the service health response object in the Inttegro API.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#checked_at ⇒ Time (readonly)

Value of the checked_at field in the Inttegro API payload.

Required in the API payload. Wire name: checked_at.

Returns:

  • (Time)


41
42
43
44
45
46
# File 'lib/inttegro/file/service_health_response.rb', line 41

class ServiceHealthResponse < T::Struct
  const :service, String
  const :status, String
  const :environment, String
  const :checked_at, Time
end

#environment ⇒ String (readonly)

Value of the environment field in the Inttegro API payload.

Required in the API payload. Wire name: environment.

Returns:

  • (String)


41
42
43
44
45
46
# File 'lib/inttegro/file/service_health_response.rb', line 41

class ServiceHealthResponse < T::Struct
  const :service, String
  const :status, String
  const :environment, String
  const :checked_at, Time
end

#service ⇒ String (readonly)

Value of the service field in the Inttegro API payload.

Required in the API payload. Wire name: service.

Returns:

  • (String)


41
42
43
44
45
46
# File 'lib/inttegro/file/service_health_response.rb', line 41

class ServiceHealthResponse < T::Struct
  const :service, String
  const :status, String
  const :environment, String
  const :checked_at, Time
end

#status ⇒ String (readonly)

Value of the status field in the Inttegro API payload.

Required in the API payload. Wire name: status.

Returns:

  • (String)


41
42
43
44
45
46
# File 'lib/inttegro/file/service_health_response.rb', line 41

class ServiceHealthResponse < T::Struct
  const :service, String
  const :status, String
  const :environment, String
  const :checked_at, Time
end