Help for this page

Select Code to Download


  1. or download this
    print "At $hash{alerts}[0]{timestamp}: $hash{alerts}[0]{text}\n";
                       ^    ^      ^
    ...
                       + - hash key
    
    # {} means hash; [] means array
    
  2. or download this
    say "$_ => $hash{$_}" for keys %hash;
    
  3. or download this
    alerts => ARRAY(0x2562880)
    recovery_alerts => 0
    bad_alerts => 1
    
  4. or download this
    print $hash{alerts}[0];
    
  5. or download this
    HASH(0x379350)
    
  6. or download this
    'alerts' => [
                    {
                    ^
                    |
                    + - beginning of hash
    
  7. or download this
    say "$_ => $hash{alerts}[0]{$_}" for keys %{$hash{alerts}[0]};
    
  8. or download this
    min_failure_count => 3
    status_history => HASH(0x4ec628)
    ...
    text => 95.019 (value) > 95 (max limit) between Tue 20:19 - Tue 20:
    +20 (UTC)
    window_size => 3
    check_type => system.fs-used_pct
    
  9. or download this
    print "At $hash{alerts}[0]{timestamp}: $hash{alerts}[0]{text}\n";
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^