Current timestamp in New Relic

Is there any way to fetch the current timestamp using nrql

1 Like

Hello, @riaumapathy: No, I do not know of any way to do that. You may view a complete list of NRQL clauses and functions here: https://docs.newrelic.com/docs/query-your-data/nrql-new-relic-query-language/get-started/introduction-nrql-new-relics-query-language.

2 Likes

@philweber Is there any way to write custom functions in newrelic ?

Our use case : We need to take newly occured error transactions by comparing the errors that occured in past 7 days with current date and push it as a notification in slack

No, I do not know of any way to write custom functions for NRQL. Can you use COMPARE WITH or SINCE 7 days ago?