argopy.utils.GreenCoding.measurements#
- GreenCoding.measurements(branch: str = 'master', start_date: str | Timestamp = '2024-06-01', end_date: str | Timestamp | None = None, errors: Literal['raise', 'ignore', 'silent'] = 'ignore') List[Dict][source]#
Return measurements for a given branch and date period
- Parameters:
branch (str, default='master') β Name of the branch to retrieve measurements for
start_date (str,
pandas.Timestamp, default=β2024-06-01β) β Measurements starting date, default to the beginning of measurements.end_date (str,
pandas.Timestamp, default=None) β Measurements ending date, default to todayerrors (Literal, default:
ignore) β- Define how to handle errors raised during data fetching:
ignore(default): Do not stop processing, simply issue a debug message in logging consoleraise: Raise any error encounteredsilent: Do not stop processing and do not issue log message
- Returns:
List of workflows name, ID and measurements as
pandas.DataFrame- Return type:
List[Dict]
See also
GreenCoding.workflows