MCPcopy Index your code
hub / github.com/feast-dev/feast / _resolve_feature_counts

Function _resolve_feature_counts

sdk/python/feast/feature_server.py:183–188  ·  view source on GitHub ↗

Return ``(feature_count_str, feature_view_count_str)`` for Prometheus labels.

(
    features: Union[List[str], "feast.FeatureService"],
)

Source from the content-addressed store, hash-verified

181
182
183def _resolve_feature_counts(
184 features: Union[List[str], "feast.FeatureService"],
185) -> tuple:
186 """Return ``(feature_count_str, feature_view_count_str)`` for Prometheus labels."""
187 fv_names, feat_count = _parse_feature_info(features)
188 return str(feat_count), str(len(fv_names))
189
190
191def _emit_online_audit(

Callers 5

test_feature_ref_listMethod · 0.90
test_empty_listMethod · 0.90
test_feature_serviceMethod · 0.90
get_online_featuresFunction · 0.85

Calls 1

_parse_feature_infoFunction · 0.85

Tested by 4

test_feature_ref_listMethod · 0.72
test_empty_listMethod · 0.72
test_feature_serviceMethod · 0.72