from typing import Dict
from typing import Any


def __get_field_type(props: Dict[str, Any]):
    """
    Sample mapping for field types
    {'@timestamp' : {'type' : "alias","path" : "timestamp"},
     'timestamp" : {"type" : "date"},
     'bool_var': {'type': 'boolean'},
     'data_stream': {'properties': {'dataset': {'type': 'constant_keyword'},
                                    'namespace': {'type': 'constant_keyword'},
                                    'type': {'type': 'constant_keyword',
                                            'value': 'logs'}}},
    'event1': {'properties': {'dataset': {'ignore_above': 1024, 'type': 'keyword'}}},
    'event2': {'properties': {'dataset': {'ignore_above': 1024, 'type': 'constant_keyword'}}},
    'event3': {'properties': {'dataset': {'ignore_above': 1024, 'type': 'wildcard'}}},
    'host': {'type': 'object'},
    'int_field': {'type': 'long'},
    'float_field': {'type': 'float'},
    """
    if "type" in props:
        return props["type"]
    if "properties" in props:
        return "object"
    return None