NAME
Mail::TLSRPT::Report - TLSRPT report object
VERSION
version 2.20210112
SYNOPSIS
my $report = Mail::TLSRPT::Report->new( organization_name => 'My Corp', start_datetime => $date, end_datetime => $enddate, contact_info => 'reports@example.com', report_id => '123abc', policies => $policies, };
DESCRIPTION
Classes to process tlsrpt report
CONSTRUCTOR
new($class)
Create a new object
new_from_json($json)
Create a new object using a JSON string, this will create sub-objects as required.
Will detect and handle a gzipped string.
new_from_json_gz($json)
Create a new object using a gzipped JSON string, this will create sub-objects as required.
new_from_data($data)
Create a new object using a data structure, this will create sub-objects as required.
METHODS
as_json
Return the current object and sub-objects as a json string
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)
Generate metrics using the given Prometheus::Tiny object
as_csv($args)
Return a csv representation of the current object and its sub-objects
If the argument add_header is true then a csv header will be included in the output.
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.