Skip to content

Commit 1e66f6c

Browse files
committed
update formats of get_active_brancher fields
1 parent 20df976 commit 1e66f6c

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

hypernode_api_python/client.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -634,33 +634,31 @@ def get_active_branchers(self, app_name):
634634
"""
635635
List all active brancher nodes of your Hypernode.
636636
Example:
637-
> client.get_active_branchers('yourhypernodeappname').json()
637+
> client.get_active_branchers("yourhypernodeappname").json()
638638
> {
639-
> "totalTime": "9417.327453",
640-
> "totalAmountSpent": 9417.327453,
639+
> "total_time": 15048,
640+
> "total_amount_spent": 252,
641641
> "branchers": [
642642
> {
643643
> "id": 21,
644644
> "name": "yourhypernodeappname-eph123456",
645645
> "ip": "127.0.0.1",
646-
> "elapsed_time": "5008.662653",
646+
> "elapsed_time": 7824,
647647
> "description": "PHP version 7.1"
648648
> },
649649
> {
650650
> "id": 22,
651651
> "name": "yourhypernodeappname-eph654321",
652652
> "ip": "52.68.96.58",
653-
> "elapsed_time": "4408.6648",
654-
> "description": null
653+
> "elapsed_time": 7224,
654+
> "description": None
655655
> }
656656
> ]
657657
> }
658658
659659
:param str app_name: The name of the Hypernode to get your active branchers for
660660
:return obj response: The request response object
661661
"""
662-
HYPERNODE_API_APP_BRANCHER_ENDPOINT = "/v2/app/{}/brancher/"
663-
664662
return self.requests(
665663
"GET", HYPERNODE_API_APP_BRANCHER_ENDPOINT.format(app_name)
666664
)

0 commit comments

Comments
 (0)