anchor.diff:  ) ->
       record() | no_return().
   create(_AtmWorkflowExecutionAuth, AtmStoreConfig, undefined) ->
  -    #atm_time_series_store_container{config = AtmStoreConfig}.
  +    BackendId = datastore_key:new(),
  +    ok = datastore_time_series_collection:create(?CTX, BackendId, build_ts_collection_config(
  +        AtmStoreConfig#atm_time_series_store_config.schemas
  +    )),
  +
  +    #atm_time_series_store_container{
  +        config = AtmStoreConfig,
  +        backend_id = BackendId
  +    }.
   
   
   -spec get_config(record()) -> atm_time_series_store_config:record().
  
positive.code: -spec db_encode(record(), persistent_record:nested_record_encoder()) ->
      json_utils:json_term().
  db_encode(#atm_time_series_store_container{
      config = AtmStoreConfig
  }, NestedRecordEncoder) ->
      #{<<"config">> => NestedRecordEncoder(AtmStoreConfig, atm_time_series_store_config)}.
  
  
  -spec db_decode(json_utils:json_term(), persistent_record:nested_record_decoder()) ->
      record().
  db_decode(#{<<"config">> := AtmStoreConfigJson}, NestedRecordDecoder) ->
      #atm_time_series_store_container{
          config = NestedRecordDecoder(AtmStoreConfigJson, atm_time_series_store_config)
      }.
  
  
  %%%===================================================================
  
negative.code: %%%===================================================================
  
  
  %% @private
  -spec build_ts_collection_config([atm_time_series_schema:record()]) ->
      time_series_collection:collection_config().
  build_ts_collection_config(TSSchemas) ->
      lists:foldl(fun
          (TSSchema = #atm_time_series_schema{name_generator_type = exact}, Acc) ->
              Acc#{TSSchema#atm_time_series_schema.name_generator => lists:foldl(fun(Metric, Acc) ->
                  Acc#{Metric#metric_config.label => Metric}
              end, #{}, TSSchema#atm_time_series_schema.metrics)};
          (_, Acc) ->
              Acc
      end, #{}, TSSchemas).
  
  
  %% TODO implement
  apply_measurements(Measurements, DispatchRules, Record) ->
      Record.
  