metrics_get_history_metric

Get details for a metric

Functions

async pydelfini.delfini_core.api.metrics.metrics_get_history_metric.asyncio(metric_name, *, client)[source]

Get details for a 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[Union[‘EventMetric’, ‘MetadataMetric’]]

Return type:

EventMetric | MetadataMetric

async pydelfini.delfini_core.api.metrics.metrics_get_history_metric.asyncio_detailed(metric_name, *, client)[source]

Get details for a 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[ServerError, Union[‘EventMetric’, ‘MetadataMetric’]]]

Return type:

Response[ServerError | EventMetric | MetadataMetric]

pydelfini.delfini_core.api.metrics.metrics_get_history_metric.sync(metric_name, *, client)[source]

Get details for a 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[Union[‘EventMetric’, ‘MetadataMetric’]]

Return type:

EventMetric | MetadataMetric

pydelfini.delfini_core.api.metrics.metrics_get_history_metric.sync_detailed(metric_name, *, client)[source]

Get details for a 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[ServerError, Union[‘EventMetric’, ‘MetadataMetric’]]]

Return type:

Response[ServerError | EventMetric | MetadataMetric]