Skip to content

Instantly share code, notes, and snippets.

@DriesS

DriesS/array.rb Secret

Last active June 28, 2019 06:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DriesS/166166d49af0c21031da0bfdbd644c99 to your computer and use it in GitHub Desktop.
Save DriesS/166166d49af0c21031da0bfdbd644c99 to your computer and use it in GitHub Desktop.
Array of hashes extract sum requestcount
sumarray = [
{
:"jboss.as:deployment=as2_public-web-18.0.0-RC38.war,servlet=iam-as2-pa,subsystem=undertow" => {:requestCount=>1125},
:"jboss.as:deployment=as2_public-web-18.0.0-RC38.war,servlet=javax.ws.rs.core.Application,subsystem=undertow"=>{:requestCount=>0}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment