package equinoxe-cohttp

  1. Overview
  2. Docs

Module Equinoxe_cohttp.EventSource

This module deals with events that occure in Equinix.

Sourcetype id

Unique identifier.

Sourceval id_of_string : string -> id

id_of_string str returns a string referencing the event in Equinix.

Sourceval id_to_string : id -> string

id_to_string id returns a string representation of the id.

Sourcetype t = {
  1. id : id;
  2. state : State.t;
  3. event_type : string;
  4. body : string;
  5. created_at : ODate.Unix.t;
}

A representation of an event.

Sourceval t_of_json : Ezjsonm.value -> t

t_of_json json extracts information about event from json. If the parsing fails, it raises an Ezjsonm.Parse_error exception.

Sourceval to_string : t -> string

to_string t returns a string representation of t.

Sourceval pp : t -> unit

pp t prints in a human readable way the t value.