public YtDataform(AzureContainers containers, DataformCfg cfg, SnowflakeCfg sfCfg, SeqCfg seqCfg) { Containers = containers; Cfg = cfg; SfCfg = sfCfg; SeqCfg = seqCfg; }
public UserScrape(AzureContainers containers, RootCfg rootCfg, UserScrapeCfg cfg, SemVersion version) { Containers = containers; RootCfg = rootCfg; Cfg = cfg; Version = version; }
public UserScrape(AzureContainers containers, RootCfg rootCfg, UserScrapeCfg cfg, SemVersion version, YtStore store) { Containers = containers; RootCfg = rootCfg; Cfg = cfg; Version = version; Store = store.Store; }
public static LoggerConfiguration YtEnrich(this LoggerConfiguration logCfg, string env, string app, SemVersion version) { var container = AzureContainers.GetContainerEnv(); return(logCfg.Enrich.With( new PropertyEnricher("App", app), new PropertyEnricher("Env", env), new PropertyEnricher("Machine", container ?? Environment.MachineName), new PropertyEnricher("Version", version) )); }