struct

ECS::LogEntry::Host::Geo

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(pull : JSON::PullParser)
Source
new

Initialize all values as nil

Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

city_name(new_value : String)

A chainable setter for city_name

Source
city_name

host.geo.city_name

City name.

Level: Core Type: Keyword Example:

Montreal
Source
city_name=(city_name : String | Nil)

host.geo.city_name

City name.

Level: Core Type: Keyword Example:

Montreal
Source
continent_name(new_value : String)

A chainable setter for continent_name

Source
continent_name

host.geo.continent_name

Name of the continent.

Level: Core Type: Keyword Example:

North America
Source
continent_name=(continent_name : String | Nil)

host.geo.continent_name

Name of the continent.

Level: Core Type: Keyword Example:

North America
Source
country_iso_code(new_value : String)

A chainable setter for country_iso_code

Source
country_iso_code

host.geo.country_iso_code

Country ISO code.

Level: Core Type: Keyword Example:

CA
Source
country_iso_code=(country_iso_code : String | Nil)

host.geo.country_iso_code

Country ISO code.

Level: Core Type: Keyword Example:

CA
Source
country_name(new_value : String)

A chainable setter for country_name

Source
country_name

host.geo.country_name

Country name.

Level: Core Type: Keyword Example:

Canada
Source
country_name=(country_name : String | Nil)

host.geo.country_name

Country name.

Level: Core Type: Keyword Example:

Canada
Source
location(new_value : String)

A chainable setter for location

Source
location

host.geo.location

Longitude and latitude.

Level: Core Type: GeoPoint Example:

{ "lon": -73.614830, "lat": 45.505918 }
Source
location=(location : String | Nil)

host.geo.location

Longitude and latitude.

Level: Core Type: GeoPoint Example:

{ "lon": -73.614830, "lat": 45.505918 }
Source
name(new_value : String)

A chainable setter for name

Source
name

host.geo.name

User-defined description of a location, at the level of granularity they care about.

Could be the name of their data centers, the floor number, if this describes a local physical entity, city names.

Not typically used in automated geolocation.

Level: Extended Type: Keyword Example:

boston-dc
Source
name=(name : String | Nil)

host.geo.name

User-defined description of a location, at the level of granularity they care about.

Could be the name of their data centers, the floor number, if this describes a local physical entity, city names.

Not typically used in automated geolocation.

Level: Extended Type: Keyword Example:

boston-dc
Source
region_iso_code(new_value : String)

A chainable setter for region_iso_code

Source
region_iso_code

host.geo.region_iso_code

Region ISO code.

Level: Core Type: Keyword Example:

CA-QC
Source
region_iso_code=(region_iso_code : String | Nil)

host.geo.region_iso_code

Region ISO code.

Level: Core Type: Keyword Example:

CA-QC
Source
region_name(new_value : String)

A chainable setter for region_name

Source
region_name

host.geo.region_name

Region name.

Level: Core Type: Keyword Example:

Quebec
Source
region_name=(region_name : String | Nil)

host.geo.region_name

Region name.

Level: Core Type: Keyword Example:

Quebec
Source