Stripe.Events.V1BillingMeterErrorReportTriggeredEvent (tiger_stripe v0.3.0)

Copy Markdown View Source

Occurs when a Meter has invalid async usage events.

Summary

Types

data()

@type data() :: %{
  optional(:developer_message_summary) => term() | nil,
  optional(:reason) => data_reason() | nil,
  optional(:validation_end) => term() | nil,
  optional(:validation_start) => term() | nil,
  optional(String.t()) => term()
}
  • developer_message_summary - Extra field included in the event's data when fetched from /v2/events.
  • reason - This contains information about why meter error happens.
  • validation_end - The end of the window that is encapsulated by this summary.
  • validation_start - The start of the window that is encapsulated by this summary.

data_reason()

@type data_reason() :: %{
  optional(:error_count) => term() | nil,
  optional(:error_types) => data_reason_error_types() | nil,
  optional(String.t()) => term()
}
  • error_count - The total error count within this window.
  • error_types - The error details.

data_reason_error_types()

@type data_reason_error_types() :: %{
  optional(:code) => term() | nil,
  optional(:error_count) => term() | nil,
  optional(:sample_errors) => data_reason_error_types_sample_errors() | nil,
  optional(String.t()) => term()
}
  • code - Open Enum.
  • error_count - The number of errors of this type.
  • sample_errors - A list of sample errors of this type.

data_reason_error_types_sample_errors()

@type data_reason_error_types_sample_errors() :: %{
  optional(:error_message) => term() | nil,
  optional(:request) => data_reason_error_types_sample_errors_request() | nil,
  optional(String.t()) => term()
}
  • error_message - The error message.
  • request - The request causes the error.

data_reason_error_types_sample_errors_request()

@type data_reason_error_types_sample_errors_request() :: %{
  optional(:identifier) => term() | nil,
  optional(String.t()) => term()
}
  • identifier - The request idempotency key.

Functions

lookup_type()