market_main.yaml.example 1.87 KB
Newer Older
1 2 3 4 5
views:
    links:
        - config/market_views.yaml.example
    obj:
        -
6
            alias: "view:Seller"
7
            data: "test/postgres/fixtures/seller.json"
8 9 10 11 12 13
            origin: true
            dimensions:
                - "dim:seller:name"
                - "dim:seller:sex"
                - "dim:seller:cpf"
                - "dim:seller:id"
14
                - "dim:seller:status"
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
            metrics:
                - "met:seller:avg:age"
                - "met:seller:max:age"
                - "met:seller:min:age"
                - "met:seller:count:age"
metrics:
    links:
        - config/market_metrics.yaml.example
    obj:
        - 
            name: "met:seller:avg:age" 
            dataType: "float"
            aggregation: "avg"
            description: "The seller average age"
dimensions:
    links:
        - config/market_dimensions.yaml.example
    obj:
        -
            name: "dim:seller:name"
            dataType: "string"
            description: "Name of the seller from market"
enumTypes:
    links:
        - config/market_enum.yaml.example
    obj:
        - []
sources:
    links:
        - config/market_sources.yaml.example
    obj:
        -
            name: "Seller"
            description: "Market worker"
            fields:
            -
                name: "name"
                description: "Seller name"
                dataType: "string"
            -
                name: "age"
                description: "Seller age"
                dataType: "integer"
            -
                name: "sex"
                description: "Seller sex"
                enumType: "enumsex"
                dataType: "enumtype"
            -
                name: "CPF"
                description: "Seller CPF"
                dataType: "string"
            -
                name: "id"
                description: "Seller id"
                dataType: "integer"