Skip to content

Help with Path for nested block #391

Description

@201508876PMH

Hi guys, I'm having a hard time defining the correct path for orderInternal. Atm this is what i've got:

modules:
  default:
    metrics:
      - name: test
        type: object
        path: '{ [*].orderInternal }'
        labels:
          type: '{ .type }'
          placedType: '{ .placedType }'
        values:
          ticketNumber: '{ .ticketNumber }'

And the test data i'm trying it on:

[
    {
        "ticket": 169879025,
        "profit": 0.0,
        "swap": 0.0,
        "commission": 0.0,
        "fee": 0.0,
        "orderInternal": {
            "ticketNumber": 169879025,
            "type": "BuyLimit",
            "placedType": "Mobile",
            "symbol": "AUDUSD"
         },
        "expirationTime": "1970-01-01T00:00:00",
        "fillPolicy": "FlashFill"
    }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions