Skip to content

feat: fetch metric buckets#46

Merged
gabrys merged 17 commits intomainfrom
dev/fetch-metric-buckets
Sep 9, 2025
Merged

feat: fetch metric buckets#46
gabrys merged 17 commits intomainfrom
dev/fetch-metric-buckets

Conversation

@michalsosn
Copy link
Contributor

No description provided.

michalsosn and others added 17 commits September 3, 2025 10:42
* feat: fetch_metrics_buckets [WIP]

* fix: naming

* fix: use IntervalIndex for buckets

* fix: review

---------

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
* wip

* feat: directly fetch run_attribute_definitions

* feat: apply fetch_run_attribute_definitions to fethc_metric_buckets

* fix: revert changes to metrics

* fix: add tests for fetch_run_attribute_definitions_single_filter

* Deduplicate attribute values fetching logic  (#30)

* fix: review

* fix: remove test

---------

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>

* fix: review

---------

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
…ng API (#28)

* Bump neptune-api to the dev version

* PY-225 Retrieval code communicating to the backend for metric rendering API

* Remove debugging left-overs

* Code review notes addressed

* Rename BucketMetric to TimeseriesBucket and populate all fields that backend sends

* Fix protobuf_v4plus imports

* Remove DEFAULT_MAX_BUCKETS and x_neptune_client_metadata

* fix circular import

* Fix unit tests too
Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
* feat: add logger

* Update src/neptune_query/internal/retrieval/retry.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update src/neptune_query/internal/retrieval/retry.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
…tsDTO (#40)

* PY-235 Fix deserialization of optional fields of ProtoTimeseriesBucketsDTO

* Update dataclass types too
* PY-233 Add @experimental decorator to fetch_metric_buckets
* add docstrings for fetch_metric_buckets()
* chore: add some bucket tests

* fix: x range calcs

* fix: add nan/inf tests

* add different xs axes tests

* fix

---------

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
* feat: merge 1st and 2nd bucket

* fix: add several tests

* fix: limit 1000 and range ends equality

---------

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
* take 1st point in the first series bucket

* fix: return proper first/last x/y from generate_categorized_rows

---------

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
* PY-236 Fix output format for all non finite rows

* fix: change index->filter in create_metrics_dataframe. Use ind/col instead of 0/1

* add a test with a bucket series of nans

---------

Co-authored-by: Michał Sośnicki <michal.sosnicki@neptune.ai>
* fix: experimental status of fetch_metric_buckets in docstrings

* Copy the copy from docs

* Some more changes
@gabrys gabrys added this pull request to the merge queue Sep 9, 2025
Merged via the queue into main with commit 1107096 Sep 9, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants