Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SUMO-251141 | CircleCI v1 to v2 migration #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/CircleCi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## [1.0.0] - 2025-01-24
### Added
- Migrated to [next-gen](https://help.sumologic.com/docs/get-started/apps-integrations/#next-gen-apps) app.
6 changes: 6 additions & 0 deletions src/CircleCi/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Overview

All of your CI/CD analytics for CircleCI jobs.

# Setup
This is the section for CircleCI collection setup.
Binary file added src/CircleCi/assets/images/icon.png
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.
5 changes: 5 additions & 0 deletions src/CircleCi/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
parameters:
- componentType: scope
label: Log data source
keyTfVar: scope_key
defaultValueTfVar: default_scope_value
26 changes: 26 additions & 0 deletions src/CircleCi/manifest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
schemaVersion: '2.0'
name: CircleCI
version: 1.0.0
description: All of your CI/CD analytics for CircleCI jobs.
author:
supportUrl: https://support.sumologic.com/
homeUrl: https://sumologic.com
documentationUrl: https://circleci.com/docs/2.0/insights/
name: CircleCI
attributes:
category:
- DevOps
- Sumo Logic Certified
useCase:
- observability
collection:
- Hosted
appOverview:
overview: README.md#Overview
appMedia:
- title: CircleCI - Overview
description: View your CircleCI pipeline data in real time or tracked over time.
type: image
location: ./assets/images/preview/CircleCI-Overview.png
installable: true
showOnMarketplace: true
364 changes: 364 additions & 0 deletions src/CircleCi/resources/dashboards.tf

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/CircleCi/resources/folders.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
resource "sumologic_folder" "integration_folder" {
name = var.integration_name
description = var.integration_description
parent_id = var.integration_root_dir
}

20 changes: 20 additions & 0 deletions src/CircleCi/resources/output.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
output "dashboards" {
description = "all the dashboards"
value = [
{
"id" = sumologic_dashboard.circle_ci_overview.id,
"name" = sumologic_dashboard.circle_ci_overview.title,
}
]
}

output "folders" {
description = "all the folders"
value = [
{
"id" = sumologic_folder.integration_folder.id,
"name" = sumologic_folder.integration_folder.name,
}
]
}

35 changes: 35 additions & 0 deletions src/CircleCi/resources/variables.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
variable "integration_root_dir" {
type = string
description = "The folder in which app should be installed."
default = ""
}
variable "integration_name" {
type = string
description = "The name of the integration"
default = ""
}

variable "integration_description" {
type = string
description = "The description of the integration"
default = ""
}

variable "scope_key" {
type = string
description = "The scope for app queries"
default = ""
}

variable "default_scope_value" {
type = string
description = "The default scope value of scope_key_variable_display_name variable"
default = ""
}

variable "scope_key_variable_display_name" {
type = string
description = "The display name for scope_key scope"
default = "Logsdatasource"
}

Loading