public MetricsContext()

in src/Amazon.CloudWatch.EMF/Model/MetricsContext.cs [27:49]


        public MetricsContext(
            string logNamespace,
            Dictionary<string, object> properties,
            List<DimensionSet> dimensionSets,
            DimensionSet defaultDimensionSet) : this()
        {
            if (string.IsNullOrEmpty(logNamespace)) throw new ArgumentNullException(nameof(logNamespace));
            if (properties == null) throw new ArgumentNullException(nameof(properties));
            if (dimensionSets == null) throw new ArgumentNullException(nameof(dimensionSets));
            if (defaultDimensionSet == null) throw new ArgumentNullException(nameof(defaultDimensionSet));

            Namespace = logNamespace;
            DefaultDimensions = defaultDimensionSet;
            foreach (DimensionSet dimension in dimensionSets)
            {
                PutDimension(dimension);
            }

            foreach (var property in properties)
            {
                PutProperty(property.Key, property.Value);
            }
        }