aip_sdk.MetricConfigResolution
aip_sdk.MetricConfigResolution(metric_name: str, default: MetricConfigResolutionVersion, overrides: list[MetricConfigResolutionOverrideGroup], preselected_scope: str, preselected_config_name: str, preselected_config_version: str)
What one metric resolves to for a workspace: its workspace default, every named override with its version history, and which one a new run preselects.
Attributes
metric_namestr: The metric implementation this resolution is for.defaultMetricConfigResolutionVersion: The workspace's current default for this metric.overrideslist[MetricConfigResolutionOverrideGroup]: Every named override stored for this metric, grouped byconfig_name.preselected_scopestr: Always"default"today — nothing else can be preselected. Exists becausepreselected_config_name/preselected_config_versionalone are ambiguous: Table A and Table B mint identity independently, so a workspace default can coincidentally share both with an entry inoverrides. Branch on this field rather than searchingoverridesfor a matching identity — when it is"default", the preselected payload isdefault, not a lookup result.preselected_config_namestr: The default's config name — not ametric_config_refstarget (see below).preselected_config_versionstr: The default's config version — not ametric_config_refstarget (see below).
default/preselected_config_name/preselected_config_version identify the
workspace's admin default, which metric_config_refs cannot pin (it resolves only named
overrides). Omit the metric from metric_config_refs to use the default instead; pinning
the preselected identity directly can fail, or worse, silently hit an unrelated override.
Build refs only from overrides.
aip_sdk.MetricConfigResolution.default
aip_sdk.MetricConfigResolution.default: MetricConfigResolutionVersion
No docstring is defined in the source.
aip_sdk.MetricConfigResolution.metric_name
aip_sdk.MetricConfigResolution.metric_name: str
No docstring is defined in the source.
aip_sdk.MetricConfigResolution.overrides
aip_sdk.MetricConfigResolution.overrides: list[MetricConfigResolutionOverrideGroup]
No docstring is defined in the source.
aip_sdk.MetricConfigResolution.preselected_config_name
aip_sdk.MetricConfigResolution.preselected_config_name: str
No docstring is defined in the source.
aip_sdk.MetricConfigResolution.preselected_config_version
aip_sdk.MetricConfigResolution.preselected_config_version: str
No docstring is defined in the source.
aip_sdk.MetricConfigResolution.preselected_scope
aip_sdk.MetricConfigResolution.preselected_scope: str
No docstring is defined in the source.