Skip to content

Commit

Permalink
chore: make necessary adjustments to support entities package updates
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderblue committed Jun 27, 2024
1 parent 90a09c8 commit 4660518
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/apm/command_application.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ The search command performs a query for an APM application name and/or account I
"",
params,
[]entities.EntitySearchSortCriteria{},
[]entities.SortCriterionWithDirection{},
)

utils.LogIfFatal(err)
Expand Down
1 change: 1 addition & 0 deletions internal/synthetics/command_monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ The search command performs a query for a Synthetics Monitor by name.
"",
params,
[]entities.EntitySearchSortCriteria{},
[]entities.SortCriterionWithDirection{},
)
if err != nil {
utils.LogIfFatal(err)
Expand Down
9 changes: 8 additions & 1 deletion internal/workload/command_workload.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,14 @@ The list command retrieves the workloads for the given account ID.
},
},
}
workload, err := client.NRClient.Entities.GetEntitySearchWithContext(utils.SignalCtx, entities.EntitySearchOptions{}, "", builder, nil)
workload, err := client.NRClient.Entities.GetEntitySearchWithContext(
utils.SignalCtx,
entities.EntitySearchOptions{},
"",
builder,
nil,
[]entities.SortCriterionWithDirection{},
)
utils.LogIfFatal(err)

utils.LogIfFatal(output.Print(workload))
Expand Down

0 comments on commit 4660518

Please sign in to comment.