Skip to content

Commit

Permalink
feat: add grafana on call as chat provider
Browse files Browse the repository at this point in the history
  • Loading branch information
mahendraHegde committed Nov 4, 2023
1 parent 7722653 commit a6bf5f7
Show file tree
Hide file tree
Showing 27 changed files with 425 additions and 1 deletion.
25 changes: 25 additions & 0 deletions apps/api/src/app/integrations/dtos/credentials.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,4 +171,29 @@ export class CredentialsDto implements ICredentials {
@IsString()
@IsOptional()
instanceId?: string;

@ApiPropertyOptional()
@IsString()
@IsOptional()
alertUid?: string;

@ApiPropertyOptional()
@IsString()
@IsOptional()
title?: string;

@ApiPropertyOptional()
@IsString()
@IsOptional()
imageUrl?: string;

@ApiPropertyOptional()
@IsString()
@IsOptional()
state?: string;

@ApiPropertyOptional()
@IsString()
@IsOptional()
externalLink?: string;
}
25 changes: 25 additions & 0 deletions apps/api/src/app/shared/dtos/subscriber-channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,31 @@ export class ChannelCredentials {
description: 'Contains an array of the subscriber device tokens for a given provider. Used on Push integrations',
})
deviceTokens?: string[];

@ApiPropertyOptional({
description: 'alert_uid for grafana on-call webhook payload',
})
alertUid?: string;

@ApiPropertyOptional({
description: 'title to be used with grafana on call webhook',
})
title?: string;

@ApiPropertyOptional({
description: 'image_url property fo grafana on call webhook',
})
imageUrl?: string;

@ApiPropertyOptional({
description: 'state property fo grafana on call webhook',
})
state?: string;

@ApiPropertyOptional({
description: 'link_to_upstream_details property fo grafana on call webhook',
})
externalUrl?: string;
}

export class SubscriberChannel {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a6bf5f7

Please sign in to comment.