Group
Extension

Matches 35358

RT-Extension-AI ( B/BP/BPS/RT-Extension-AI-0.05.tar.gz, BPS, 2025; MetaCPAN )
RT-Extension-AI/lib/RT/Extension/AI/Provider/Gemini.pm ( view source; MetaCPAN )
n::AI::Provider::Gemini;

use strict;
use warnings;

use base 'RT::Extension::AI::Provider';

use JSON;

sub default_headers {
    my ( $class, $config ) = @_;
    return { 'x-goog-api-key' => $config
      Content      => encode_json($request_payload),
        Content_Type => 'application/json'
    );

    if ( $response->is_success ) {
        my $content = decode_json( $response->decoded_content
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Metric/Grafana.pm ( view source; MetaCPAN )
ON

sub get_json {
    my ( $self, $file ) = @_;
    my $basefile = __FILE__;
    $basefile =~ s/Grafana\.pm$/$file/;
    $basefile .= '.json';
    if ( ! -e $basefile ) {
        die 'json file ' . $
 @Rows, $self->get_json( 'RowThroughput' );
    push @Rows, $self->get_json( 'RowProcesses' );
    push @Rows, $self->get_json( 'RowProcessingTime' );
    push @Rows, $self->get_json( 'RowErrors' );
 
   push @Rows, $self->get_json( 'RowUptime' );

    foreach my $Handler ( sort keys %{ $server->{ 'handler' } } ) {
        my $HandlerObj = $server->{ 'handler' }->{ $Handler };
        if ( $Handler
Respite ( B/BB/BBB/Respite-0.22.tar.gz, BBB, 2025; MetaCPAN )
Respite/lib/Respite/Base.pod ( view source; MetaCPAN )
 data passed is
assumed to be utf8 encoded meaning that it will need to be decoded
before calling json->encode.

Additionally, the true value can be a hashref of methods that need
this treatment.  Thi
ou know some of your methods have
utf8 data, while others do not.

(Note: Conversely when the non-json transport is finalized, it will
need to call decode_utf8 to make sure data is ready for the
trans
vice.  This is advisory.

=item transport

Defaults to ''.  From Respite::Server it defaults to C<json> (Respite),
C<form> (Post variables), and C<form-doc> (autodoc interface).  From
Respite::Command
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/ARC.pm ( view source; MetaCPAN )
> 0,
    };
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'ARC_metrics' );
    return \@rows;
}

sub register_metrics {
    return {
        'arc_total' =
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/XGoogleDKIM.pm ( view source; MetaCPAN )
> 0,
    };
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'XGoogleDKIM_metrics' );
    return \@rows;
}

sub register_metrics {
    return {
        'xgoo
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/SenderID.pm ( view source; MetaCPAN )
> 1,
    };
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'SenderID_metrics' );
    return \@rows;
}

sub setup_callback {
    my ( $self ) = @_;
    # Ca
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/RBLDNS.pm ( view source; MetaCPAN )
}
    }
}

#sub grafana_rows {
#    my ( $self ) = @_;
#    my @rows;
#    push @rows, $self->get_json( 'RBLDNS_metrics' );
#    return \@rows;
#}

sub register_metrics {
    return {
        'rbldns_
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/TrustedIP.pm ( view source; MetaCPAN )
 [],
    };
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'TrustedIP_metrics' );
    return \@rows;
}

sub is_trusted_ip_address {
    my ( $self, $ip_obj
Data-Dumper-Interp ( J/JI/JIMAVERA/Data-Dumper-Interp-7.020.tar.gz, JIMAVERA, 2025; MetaCPAN )
Data-Dumper-Interp/lib/Data/Dumper/Interp.pm ( view source; MetaCPAN )
#   https://github.com/Perl/perl5/issues/20685
  #return 0 unless looks_like_number($value);

  # JSON::PP uses these tricks:
  # string & "" -> ""  # bitstring AND, truncating to shortest operand
  #
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/App/ProcessLog/App/Command/arex.pm ( view source; MetaCPAN )
ON = '4.20250811'; # VERSION
use Mail::Milter::Authentication::App::ProcessLog::App -command;
use JSON::XS;
use Mail::AuthenticationResults 2.20230112;
use Mail::AuthenticationResults::Parser;
use Mai
 $args);
      close $file;
    }
  }
}

sub parse_file($self, $file, $opt, $args) {
  state $j = JSON::XS->new;

  LINE: while (my $line = <$file>) {
    $line =~ s/^.* ARex: //;
    my $parser = Mai
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/Sanitize.pm ( view source; MetaCPAN )
s'],
    };
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'Sanitize_metrics' );
    return \@rows;
}

sub register_metrics {
    return {
        'sanitiz
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/PTR.pm ( view source; MetaCPAN )
 return {};
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'PTR_metrics' );
    return \@rows;
}

sub register_metrics {
    return {
        'ptr_total' =
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/SPF.pm ( view source; MetaCPAN )
> 0,
    };
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'SPF_metrics' );
    return \@rows;
}

sub setup_callback {
    my ( $self ) = @_;

    $self->s
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/Size.pm ( view source; MetaCPAN )
 return {};
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'Size_metrics' );
    return \@rows;
}

sub register_metrics {
    return {
        'size_total'
Slack-BlockKit ( R/RJ/RJBS/Slack-BlockKit-0.005.tar.gz, RJBS, 2025; MetaCPAN )
Slack-BlockKit/lib/Slack/BlockKit/Block/RichText/Date.pm ( view source; MetaCPAN )
s_struct ($self) {
  return {
    type => 'date',
    timestamp => 0 + $self->timestamp, # 0+ for JSON serialization's sake
    format    => "" . $self->format,
    ($self->has_fallback  ? (fallback =
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/TLS.pm ( view source; MetaCPAN )
 return {};
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'TLS_metrics' );
    return \@rows;
}

sub register_metrics {
    return {
        'tls_connect_
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/DMARC.pm ( view source; MetaCPAN )
> 0,
    };
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'DMARC_metrics' );
    return \@rows;
}

sub is_whitelisted {
    my ( $self ) = @_;
    my $con
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Tester/HandlerTester.pm ( view source; MetaCPAN )
his should contain
all configuration files required for your test, the main authentication_milter.json file
can be overridden by the handler_config option (see below).

This location should, for examp
Mail-Milter-Authentication ( M/MB/MBRADSHAW/Mail-Milter-Authentication-4.20250811.tar.gz, MBRADSHAW, 2025; MetaCPAN )
Mail-Milter-Authentication/lib/Mail/Milter/Authentication/Handler/Auth.pm ( view source; MetaCPAN )
 return {};
}

sub grafana_rows {
    my ( $self ) = @_;
    my @rows;
    push @rows, $self->get_json( 'Auth_metrics' );
    return \@rows;
}

sub register_metrics {
    return {
        'authenticat
RT-Extension-AI ( B/BP/BPS/RT-Extension-AI-0.05.tar.gz, BPS, 2025; MetaCPAN )
RT-Extension-AI/lib/RT/Extension/AI/Provider.pm ( view source; MetaCPAN )
{
        'Authorization' => "Bearer $config->{api_key}",
        'Content-Type'  => 'application/json'
    };
}

=head2 new config => %config

Accepts a hash that is the main AI config for the curren

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.