-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I0010 sync since timestamp #11
Conversation
if ciQuery != "" && lastUpdate != nil { | ||
ciQuery, err = subsDateTime(ciQuery, config, lastUpdate) | ||
if err != nil { | ||
return nil, fmt.Errorf("error evaluating query template: %v", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this error message. No longer using template.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
i.Logger.Warnf( | ||
"errors while updating entity %s: see below for errors", | ||
entityOutline.Name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should include guid here as above messages.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
internal/sync/entity_processor.go
Outdated
|
||
vars := map[string]interface{}{ | ||
"query": query, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove tabs here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
internal/sync/entity_processor.go
Outdated
return nil, err | ||
} | ||
|
||
return &resp, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove tab here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
|
||
"github.com/gofrs/uuid" | ||
"github.com/newrelic/newrelic-client-go/pkg/nrdb" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove tabs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
internal/sync/events.go
Outdated
|
||
latestTimestamp, ok := val.(float64) | ||
if !ok { | ||
s.log.Warn("timestamp attribute found in result is not an integer") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is not a float
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
internal/sync/sync.go
Outdated
cycleId, err := uuid.NewV4() | ||
if err != nil { | ||
s.syncFailed(uuid.Nil, err) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove tabs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
// ext entity key - no | ||
if entityTagExists { | ||
// entity key - yes, delete tag | ||
tagsToDelete = append(tagsToDelete, entityTagName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add comment here that this is (obviously) destructive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
pkg/interop/interop.go
Outdated
@@ -37,49 +47,57 @@ func NewInteroperability() (*Interop, error) { | |||
viper.SetConfigName("config") | |||
viper.AddConfigPath("configs") | |||
viper.AddConfigPath(".") | |||
viper.SetDefault("events.enabled", true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't actually work, remove.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
if licenseKey == "" { | ||
return fmt.Errorf("missing New Relic license key") | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really think we need a license key unless we are using events but can leave this for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
Description
Please include a summary of the changes and the related issue.
Type of change
functionality to not work as expected)
Checklist: