Octopussy::Message(3)

πŸ“¦ version 1.0.6, in ubuntu jammy

πŸ’– NAME πŸ’–

Octopussy::Message β€” okay so bestie, this is the Octopussy Message module. She's the one in the manual as Octopussy::Message(3), and she is genuinely that girl. πŸŽ€ Message patterns, regexps, colours, alerts, wizards β€” all her. Let's get into it.


🌸 FUNCTIONS 🌸

⭐ Configuration($service, $msg_id)

Grabs message $msg_id out of the $service configuration. Fetch the config, bestie. 🫢

πŸ¦‹ List($ref_serv, $loglevel, $taxonomy)

The original gives zero description here β€” she's just standing there, silent, mysterious, unbothered. πŸ’…

πŸ“ Fields($service, $msg_id)

Returns the Message Fields for message $msg_id living in Service $service. ✨

🌈 Table($service, $msg_id)

Gets the table that's associated with message $msg_id over in service $service. πŸ“‹

πŸ”₯ Pattern_To_SQL($msg, $id, @fields)

Converts the message pattern from message $msg into SQL, using the fields in @fields. It's giving database translation era. πŸ’…

πŸ›‘οΈ Escape_Characters($regexp)

Escapes the characters in regexp $regexp β€” that means adding \ in front of them. ✨

πŸ™ˆ Escape_Message($msg)

Escapes characters in message $msg, but it does not escape <@REGEXP@>. That one gets a free pass, no cap. 🫢

πŸŽ€ Color_Reserved_Word(\%color, $word, $str)

Colors pattern $pattern. And yes, the original really does describe it using $pattern even though the args are \%color, $word and $str. I don't make the rules, I just report them. 😭

πŸ’œ Color($pattern)

Colors pattern $pattern. Rainbow vibes, literally. 🌈

🌸 Color_Without_Field($pattern)

No description in the original β€” she's keeping her secrets. 🀫

⭐ Longest_Valid_Regexp

No description. A whole enigma. πŸ‘‘

πŸ¦‹ Minimal_Match($log, $re)

No description either. Mysterious icon behaviour. πŸ’…

✨ Reserved_Word_To_Regexp(\%re_types, $type, $field, $str)

Converts a Reserved Word expression β€” that's <@$type:$field@> β€” into a Regexp. πŸ”₯

πŸ“ Pattern_To_Regexp($msg)

Converts the message pattern from message $msg into a Regexp. πŸ’–

πŸŽ€ Pattern_To_Regexp_Without_Catching($msg)

Converts the message pattern from message $msg into a Regexp without catching β€” same as Pattern_To_Regexp except it doesn't add the 'catching' parentheses. ✨

🌈 Short_Pattern_To_Regexp($msg)

No description. Short, sweet, says nothing. Iconic. πŸ™ˆ

πŸ’œ Pattern_Field_Substitution

No description. 🀫

πŸ›‘οΈ Pattern_Field_Unmatched_Substitution($regexp, $type, $field_regexp, $re_types)

No description. Take her as she is. πŸ’…

⭐ Pattern_To_Regexp_Fields($msg, $field_regexp, $ref_fields, $field_list)

No description in the original. πŸŽ€

🌸 Fields_Values($msg, $line)

No description. She's quiet. πŸ¦‹

πŸ“ Regexped_Fields($query)

No description. πŸ’–

✨ Parse_List($services, $loglevel, $taxonomy, $table, $fields, $fields_regexp, $fields_list)

No description β€” just a lot of arguments. Respect the range. πŸ‘‘

πŸ”₯ Alerts($device, $service, $message, \@dev_alerts)

No description, but she comes with this little snippet attached, exactly as it shows up:

comment my @mails = (); my @ims   = (); foreach my $c
    (ARRAY($ac->{contact})) { push @mails, $contact->{$c}->{email} if
    (defined $contact->{$c}->{email}); push @ims, $contact->{$c}->{im} if
    (defined $contact->{$c}->{im}); }

Not me just copying it character for character so nothing gets lost. 🫢

πŸŽ€ Wizard_Msg_Modified($line, $types)

No description. Wizard business. πŸ§™

πŸ’œ Wizard_Msg_Regexp($re, $types)

No description. Still wizard business. ✨

🌈 Wizard_Add_Message($timestamp, $line, $types)

No description. Wizard business, now with timestamps. ⭐

πŸ“ Wizard_File($f, $timestamp, $nb_max, $messages, $types)

No description. Wizard business, file edition. πŸ“

πŸ‘‘ Wizard($device)

No description β€” she's the main character, she doesn't need one. πŸ’…


πŸ’– AUTHOR πŸ’–

Sebastien Thebert <octo.devel@gmail.com> β€” thank you for your service, king. 🫑


And that's the whole page, bestie. This one's running on perl v5.22.2, dated 2016-05-04, and it lives in the manual as Octopussy::Message(3). Go forth and parse your messages. Periodt. πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from