ex_victor_ops v0.4.1 ExVictorOps.Incidents

Interacts wit hthe Incidents endpoints of the VictorOps API.

Examples

ExVictorOps.Incidents.get

Summary

Functions

Returns current incidents

Functions

get(phase \\ nil, team \\ nil)
get(:atom, String.t) :: {:ok, [any]} | {:error, Map.t}

Returns current incidents.

TODO: Args are not implemented yet Note: Because of limitations of VictorOps’ API, regardless of the filters passed in arguments, all incidents are pulled from the VictorOps API and then filtered.

Args:

  • phase - Filters incident by phase. Can be one of :triggered, :acked, or :resolved. Defaults to nil, or all incidents
  • team - Team slug to get incidents for. Defaults to nil, or all teams