Skip to content

Commit

Permalink
added licence and refactored
Browse files Browse the repository at this point in the history
Signed-off-by: munishchouhan <[email protected]>
  • Loading branch information
munishchouhan committed Feb 5, 2025
1 parent 8ef38ab commit 57c166c
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
/*
* Wave, containers provisioning service
* Copyright (c) 2024, Seqera Labs
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package io.seqera.wave.filter

import java.util.regex.Pattern
Expand All @@ -12,7 +30,11 @@ import io.micronaut.http.filter.ServerFilterChain
import io.seqera.wave.core.ContainerPlatform
import io.seqera.wave.exception.BadRequestException
import org.reactivestreams.Publisher

/**
* Implements a filter to validate metrics query parameters
*
* @author Munish Chouhan <[email protected]>
*/
@CompileStatic
@Filter(["/v1alpha2/metrics/**", "/v1alpha3/metrics/**"])
@Requires(property = 'wave.metrics.enabled', value = 'true')
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,30 @@
/*
* Wave, containers provisioning service
* Copyright (c) 2024, Seqera Labs
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package io.seqera.wave.service.metric.model

import groovy.transform.CompileStatic

/**
* Model organisations counts with architecture response
*
* @author Munish Chouhan <[email protected]>
*/
@CompileStatic
class GetOrgArchCountResponse {
String metric
Expand Down

0 comments on commit 57c166c

Please sign in to comment.