Skip to content
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

template variables on Payload example are missing camelCasing #6

Open
JPedro2 opened this issue Mar 24, 2021 · 0 comments
Open

template variables on Payload example are missing camelCasing #6

JPedro2 opened this issue Mar 24, 2021 · 0 comments

Comments

@JPedro2
Copy link

JPedro2 commented Mar 24, 2021

The variables testId and testName in the Payload example in the ThousandEyes Snapshot Integration are missing the camel casing so when setting this up on AppD it throws a 400 - Bad Request error.

Fixing the camelCasing on those variables, as below, will solve the issue.

#set( $String = '' )
#set( $to = $String.format('%1$tY-%1$tm-%1$tdT%1$tH:%1$tM:%1$tS ', $latestEvent.eventTime))
#set( $tohour = $String.format('%1$tH', $latestEvent.eventTime))
#set($tohourint = 0)
#set( $fromhourint = $tohourint.parseInt($tohour) - 1)
#set( $fromhour = $fromhourint.toString())
#set( $from = $String.format('%1$tY-%1$tm-%1$tdT%2$s:%1$tM:%1$tS ', $latestEvent.eventTime, $fromhour))
{
    "testId": ${testId},
    "displayName": "Snapshot from AppDynamics - ${testName} - ${to}",
    "from": "${from}",
    "to": "${to}",
    "isPublic": 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant