opmon/cli.py [236:257]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                platform = rollout.app_name or DEFAULT_PLATFORM
                platform_definitions = ConfigLoader.configs.get_platform_definitions(platform)

                if platform_definitions is None:
                    logger.exception(
                        str(f"Invalid platform {platform}"),
                        exc_info=None,
                        extra={"experiment": rollout.normandy_slug},
                    )
                    continue

                # resolve config by applying platform and custom config specs
                spec = MonitoringSpec.from_definition_spec(copy.deepcopy(platform_definitions))

                platform_defaults = ConfigLoader.configs.get_platform_defaults(platform)
                if platform_defaults is not None:
                    spec.merge(platform_defaults)

                if platform == DEFAULT_PLATFORM:
                    platform_defaults = ConfigLoader.configs.get_platform_defaults("rollout")
                    if platform_defaults is not None:
                        spec.merge(platform_defaults)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



opmon/cli.py [447:467]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                platform = rollout.app_name or DEFAULT_PLATFORM
                platform_definitions = ConfigLoader.configs.get_platform_definitions(platform)

                if platform_definitions is None:
                    logger.exception(
                        str(f"Invalid platform {platform}"),
                        exc_info=None,
                        extra={"experiment": rollout.normandy_slug},
                    )
                    continue

                # resolve config by applying platform and custom config specs
                spec = MonitoringSpec.from_definition_spec(copy.deepcopy(platform_definitions))
                platform_defaults = ConfigLoader.configs.get_platform_defaults(platform)
                if platform_defaults is not None:
                    spec.merge(platform_defaults)

                if platform == DEFAULT_PLATFORM:
                    platform_defaults = ConfigLoader.configs.get_platform_defaults("rollout")
                    if platform_defaults is not None:
                        spec.merge(platform_defaults)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



