metrics_new_history_metric

Create a new event-based metric

Functions

async pydelfini.delfini_core.api.metrics.metrics_new_history_metric.asyncio(*, client, body)[source]

Create a new event-based metric

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns a status code greater than or equal to 300.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Union[EventMetric]

Return type:

EventMetric

async pydelfini.delfini_core.api.metrics.metrics_new_history_metric.asyncio_detailed(*, client, body)[source]

Create a new event-based metric

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Response[Union[EventMetric, ServerError]]

Return type:

Response[EventMetric | ServerError]

pydelfini.delfini_core.api.metrics.metrics_new_history_metric.sync(*, client, body)[source]

Create a new event-based metric

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns a status code greater than or equal to 300.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Union[EventMetric]

Return type:

EventMetric

pydelfini.delfini_core.api.metrics.metrics_new_history_metric.sync_detailed(*, client, body)[source]

Create a new event-based metric

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Response[Union[EventMetric, ServerError]]

Return type:

Response[EventMetric | ServerError]