NAME
Mail::TLSRPT::Failure - TLSRPT failure object
VERSION
version 2.20210112
SYNOPSIS
my $failure = Mail::TLSRPT::Failure->new( result_type => 'certificate-expired', sending_mta_ip => Net::IP->new($ip), receiving_mx_hostname => 'mx.example.com', receiving_mx_helo => 'mx1.example.com', receiving_ip => Net::IP->new($ip), failed_session_count => 10, additional_information => 'Foo', failure_reason_code => 'Bar', );
DESCRIPTION
Classes to process tlsrpt failure in a report
CONSTRUCTOR
new($class)
Create a new object
new_from_data($data)
Create a new object using a data structure, this will create sub-objects as required.
METHODS
as_struct
Return the current object as a data structure
as_string
Return a textual human readable representation of the current object and its sub-objects
process_prometheus($prometheus,$report)
Generate metrics using the given Prometheus::Tiny object
AUTHOR
Marc Bradshaw <marc@marcbradshaw.net>
COPYRIGHT AND LICENSE
This software is copyright (c) 2020 by Marc Bradshaw.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.