mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-09-25 18:58:39 +02:00
feat(notification::microsoft::office365::teams): Mode(alert) - Allow to wrap long text (#5739)
Refs: CTOR-1905
This commit is contained in:
parent
ddbf4b6bb5
commit
3f2d2a22af
@ -363,7 +363,8 @@ sub build_workflow_message {
|
|||||||
"size" => "Large",
|
"size" => "Large",
|
||||||
"weight" => "Bolder",
|
"weight" => "Bolder",
|
||||||
"style" => "heading",
|
"style" => "heading",
|
||||||
"color" => $themecolor
|
"color" => $themecolor,
|
||||||
|
"wrap" => "true"
|
||||||
};
|
};
|
||||||
push @{$self->{body}}, {
|
push @{$self->{body}}, {
|
||||||
type => "TextBlock",
|
type => "TextBlock",
|
||||||
@ -371,7 +372,8 @@ sub build_workflow_message {
|
|||||||
"size" => "Medium",
|
"size" => "Medium",
|
||||||
"weight" => "Bolder",
|
"weight" => "Bolder",
|
||||||
"style" => "heading",
|
"style" => "heading",
|
||||||
"color" => $themecolor
|
"color" => $themecolor,
|
||||||
|
"wrap" => "true"
|
||||||
};
|
};
|
||||||
|
|
||||||
if (defined($self->{option_results}->{$resource_type . '_output'}) && $self->{option_results}->{$resource_type . '_output'} ne '') {
|
if (defined($self->{option_results}->{$resource_type . '_output'}) && $self->{option_results}->{$resource_type . '_output'} ne '') {
|
||||||
@ -392,9 +394,9 @@ sub build_workflow_message {
|
|||||||
if (defined($self->{option_results}->{extra_info}) && $self->{option_results}->{extra_info} !~ m/^\/\/$/) {
|
if (defined($self->{option_results}->{extra_info}) && $self->{option_results}->{extra_info} !~ m/^\/\/$/) {
|
||||||
if ($self->{option_results}->{extra_info} =~ m/^(.*)\/\/(.*)$/) {
|
if ($self->{option_results}->{extra_info} =~ m/^(.*)\/\/(.*)$/) {
|
||||||
push @{$self->{body}}, {
|
push @{$self->{body}}, {
|
||||||
type => "TextBlock",
|
type => "TextBlock",
|
||||||
text => "Additional Information: \n" . sprintf($self->{option_results}->{extra_info_format}, $1, $2),
|
text => "Additional Information: \n" . sprintf($self->{option_results}->{extra_info_format}, $1, $2),
|
||||||
wrap => "true"
|
wrap => "true"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user