This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# **README** | |
#1. Copy script on Amazon EC2 Linux instance with AWS CLI configured, and psql client installed with accessibility to RDS/Aurora Postgres instance | |
#2. Make script executable: chmod +x pg_health_check.sh | |
#3. Run the script: ./ pg_health_check.sh | |
#4. It will take around 2-3 mins to run (depending on size of instance), and generate html report: <Database identifier>_report_<date>.html | |
#5. Share the report with your AWS Technical Account Manager | |
################# | |
# Author: Vivek Singh, Postgres Specialist Technical Account Manager, AWS | |
# V-13 : 4/10/2020 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unirest.setObjectMapper(new ObjectMapper() { | |
JsonSlurper jsonSlurper = new JsonSlurper() | |
public <T> T readValue(String value, Class<T> valueType) { | |
try { | |
return jsonSlurper.parseText(value) | |
} catch (e) { | |
throw new RuntimeException(e); | |
} | |
} |