View Source StarkInfra.IssuingHolder.Log (starkinfra v0.0.1)

Groups IssuingHolder.Log related functions

Link to this section Summary

Functions

Every time an IssuingHolder entity is updated, a corresponding IssuingHolder.Log is generated for the entity. This log is never generated by the user, but it can be retrieved to check additional information on the IssuingHolder.

Same as get(), but it will unwrap the error tuple and raise in case of errors.

Receive a single IssuingHolder.Log struct previously created by the Stark Infra API by its id.

Same as page(), but it will unwrap the error tuple and raise in case of errors.

Receive a list of up to 100 IssuingHolder.Log structs previously created in the Stark Infra API and the cursor to the next page. Use this function instead of query if you want to manually page your requests.

Same as query(), but it will unwrap the error tuple and raise in case of errors.

Receive a stream of IssuingHolder.Log structs previously created in the Stark Infra API

Link to this section Types

@type t() :: %StarkInfra.IssuingHolder.Log{
  created: term(),
  holder: term(),
  id: term(),
  type: term()
}

Link to this section Functions

Link to this function

%StarkInfra.IssuingHolder.Log{}

View Source (struct)

Every time an IssuingHolder entity is updated, a corresponding IssuingHolder.Log is generated for the entity. This log is never generated by the user, but it can be retrieved to check additional information on the IssuingHolder.

attributes

Attributes:

- `:id` [string]: unique id returned when the log is created. ex: "5656565656565656"
- `:holder` [IssuingHolder]: IssuingHolder entity to which the log refers to.
- `:type` [string]: type of the IssuingHolder event which triggered the log creation. ex: "blocked", "canceled", "created", "unblocked", "updated"
- `:created` [DateTime]: creation datetime for the log. ex: ~U[2020-03-10 10:30:0:0]

Same as get(), but it will unwrap the error tuple and raise in case of errors.

Receive a single IssuingHolder.Log struct previously created by the Stark Infra API by its id.

parameters-required

Parameters (required):

- `:id` [string]: struct unique id. ex: "5656565656565656"

options

Options:

- `:user` [Organization/Project, default nil]: Organization or Project struct returned from StarkInfra.project(). Only necessary if default project or organization has not been set in configs.

return

Return:

- IssuingHolder.Log struct with updated attributes
@spec page!(
  cursor: binary(),
  ids: [binary()],
  limit: integer(),
  after: Date.t() | binary(),
  before: Date.t() | binary(),
  types: [binary()],
  holder_ids: [binary()],
  user: StarkInfra.User.Project.t() | StarkInfra.User.Organization.t() | nil
) :: any()

Same as page(), but it will unwrap the error tuple and raise in case of errors.

@spec page(
  cursor: binary(),
  ids: [binary()],
  limit: integer(),
  after: Date.t() | binary(),
  before: Date.t() | binary(),
  types: [binary()],
  holder_ids: [binary()],
  user: StarkInfra.User.Project.t() | StarkInfra.User.Organization.t() | nil
) :: {:ok, {binary(), [t()]}} | {:error, [StarkInfra.Error.t()]}

Receive a list of up to 100 IssuingHolder.Log structs previously created in the Stark Infra API and the cursor to the next page. Use this function instead of query if you want to manually page your requests.

options

Options:

- `:cursor` [string, default nil]: cursor returned on the previous page function call
- `:ids` [list of strings, default nil]: list of ids to filter retrieved structs. ex: ["5656565656565656", "4545454545454545"]
- `:limit` [integer, default 100]: maximum number of structs to be retrieved. It must be an integer between 1 and 100. ex: 50
- `:after` [Date or string, default nil]: date filter for structs created only after specified date. ex: ~D[2020-03-25]
- `:before` [Date or string, default nil]: date filter for structs created only before specified date. ex: ~D[2020-03-25]
- `:types` [list of strings, default nil]: filter for log event types. ex: ["created", "blocked"]
- `:holder_ids` [list of strings, default nil]: list of IssuingHolder ids to filter logs. ex: ["5656565656565656", "4545454545454545"]
- `:user` [Organization/Project, default nil]: Organization or Project struct returned from StarkInfra.project(). Only necessary if default project or organization has not been set in configs.

return

Return:

- list of IssuingHolder.Log structs with updated attributes
- cursor to retrieve the next page of IssuingHolder.Log structs
@spec query!(
  ids: [binary()],
  limit: integer(),
  after: Date.t() | binary(),
  before: Date.t() | binary(),
  types: [binary()],
  holder_ids: [binary()],
  user: StarkInfra.User.Project.t() | StarkInfra.User.Organization.t() | nil
) :: any()

Same as query(), but it will unwrap the error tuple and raise in case of errors.

@spec query(
  ids: [binary()],
  limit: integer(),
  after: Date.t() | binary(),
  before: Date.t() | binary(),
  types: [binary()],
  holder_ids: [binary()],
  user: StarkInfra.User.Project.t() | StarkInfra.User.Organization.t() | nil
) :: {:ok, {binary(), [t()]}} | {:error, [StarkInfra.Error.t()]}

Receive a stream of IssuingHolder.Log structs previously created in the Stark Infra API

options

Options:

- `:limit` [integer, default 100]: maximum number of structs to be retrieved. Unlimited if nil. ex: 35
- `:ids` [list of strings, default nil]: list of ids to filter retrieved structs. ex: ["5656565656565656", "4545454545454545"]
- `:after` [Date or string, default nil]: date filter for structs created only after specified date. ex: ~D[2020-03-25]
- `:before` [Date or string, default nil]: date filter for structs created only before specified date. ex: ~D[2020-03-25]
- `:types` [list of strings, default nil]: filter for log event types. ex: ["created", "blocked"]
- `:holder_ids` [list of strings, default nil]: list of IssuingHolder ids to filter logs. ex: ["5656565656565656", "4545454545454545"]
- `:user` [Organization/Project, default nil]: Organization or Project struct returned from StarkInfra.project(). Only necessary if default project or organization has not been set in configs.

return

Return:

- stream of IssuingHolder.Log structs with updated attributes