MCPcopy Index your code
hub / github.com/deepflowio/deepflow / DeleteORGDataNonRealTime

Function DeleteORGDataNonRealTime

server/controller/http/service/org_data.go:94–107  ·  view source on GitHub ↗
(orgIDs []int)

Source from the content-addressed store, hash-verified

92}
93
94func DeleteORGDataNonRealTime(orgIDs []int) error {
95 log.Infof("delete orgs (ids: %v) clickhouse data", orgIDs)
96 var msg string
97 for _, id := range orgIDs {
98 if err := servercommon.DropOrg(uint16(id)); err != nil {
99 log.Errorf("failed to drop org %d ck: %s", id, err.Error())
100 msg += fmt.Sprintf("%s. ", err.Error())
101 }
102 }
103 if msg == "" {
104 return nil
105 }
106 return fmt.Errorf(msg)
107}
108
109func GetORGData(cfg *config.ControllerConfig) (*simplejson.Json, error) {
110 errResponse, _ := simplejson.NewJson([]byte("{}"))

Callers

nothing calls this directly

Calls 4

DropOrgMethod · 0.65
ErrorMethod · 0.65
InfofMethod · 0.45
ErrorfMethod · 0.45

Tested by

no test coverage detected