Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion f5teem/f5teem.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ func (b *TeemObject) Report(telemetry map[string]interface{}, telemetryType, tel
telemetryData, _ := json.Marshal(telemetry)
telemetryDatalist := []string{string(telemetryData[:])}
log.Printf("[DEBUG] telemetryDatalist:%+v", telemetryDatalist)

telemetrynew := []map[string]interface{}{}
telemetrynew = append(telemetrynew, telemetry)

bodyData := map[string]interface{}{
"documentType": b.TelemetryType,
"documentVersion": b.TelemetryTypeVersion,
Expand All @@ -95,7 +99,7 @@ func (b *TeemObject) Report(telemetry map[string]interface{}, telemetryType, tel
"observationStartTime": time.Now().UTC().Format(time.RFC3339Nano),
"observationEndTime": time.Now().UTC().Format(time.RFC3339Nano),
"epochTime": time.Now().Unix(),
"telemetryRecords": telemetryDatalist,
"telemetryRecords": telemetrynew,
}
bodyInfo, _ := json.Marshal(bodyData)
body := bytes.NewReader([]byte(bodyInfo))
Expand Down
2 changes: 1 addition & 1 deletion ltm.go
Original file line number Diff line number Diff line change
Expand Up @@ -2810,7 +2810,7 @@ func (b *BigIP) DeleteFastl4(name string) error {
// ModifyFastl4 updates the given Fastl4 profile with any changed values.
func (b *BigIP) ModifyFastl4(name string, fastl4 *Fastl4) error {
fastl4.Name = name
return b.put(fastl4, uriLtm, uriProfile, uriFastl4, name)
return b.patch(fastl4, uriLtm, uriProfile, uriFastl4, name)
}

func (b *BigIP) GetFastl4(name string) (*Fastl4, error) {
Expand Down