MCPcopy Create free account
hub / github.com/deepflowio/deepflow / exampleAgentGroupConfig

Function exampleAgentGroupConfig

cli/ctl/agent_group_config.go:97–107  ·  view source on GitHub ↗
(cmd *cobra.Command, args []string)

Source from the content-addressed store, hash-verified

95}
96
97func exampleAgentGroupConfig(cmd *cobra.Command, args []string) {
98 server := common.GetServerInfo(cmd)
99 url := fmt.Sprintf("http://%s:%d/v1/agent-group-configuration/template/yaml", server.IP, server.Port)
100 response, err := common.CURLPerform("GET", url, nil, "",
101 []common.HTTPOption{common.WithTimeout(common.GetTimeout(cmd)), common.WithORGID(common.GetORGID(cmd))}...)
102 if err != nil {
103 fmt.Fprintln(os.Stderr, err)
104 return
105 }
106 fmt.Println(response.Get("DATA").MustString())
107}
108
109type vtapInfo struct {
110 name string

Callers 1

Calls 2

GetMethod · 0.65
GetORGIDMethod · 0.45

Tested by

no test coverage detected