The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mail::TLSRPT::Policy - TLSRPT policy object

VERSION

version 2.20210112

SYNOPSIS

my $policy = Mail::TLSRPT::Policy->new( policy_type => 'no-policy-found', policy_string => [], policy_domain => 'example.com', polixy_mx_host => 'mx.example.com', total_succerssful_session_count => 10, total_failure_session_count => 2, failures => $failures, );

DESCRIPTION

Classes to process tlsrpt policy 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 and sub-objects 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.