def METHOD_NAME(self, environment: EnvironmentMessage) -> None:
    env_info = self._environments.get(environment.name, None)
    if not env_info:
        env_info = EnvironmentInformation(
            name=environment.name,
            status=environment.status.name,
            information=str(environment.runbook),
        )
        self._environments[environment.name] = env_info
    env_info.status = environment.status.name
    if environment.status == EnvironmentStatus.Prepared:
        env_info.prepared_time = datetime.now()
    elif environment.status == EnvironmentStatus.Deployed:
        env_info.deployed_time = datetime.now()
    elif environment.status == EnvironmentStatus.Deleted:
        env_info.deleted_time = datetime.now()
    self._update_information(force=True)