Skip to content

Commit

Permalink
adding custom extraction for metrics in apig (#501)
Browse files Browse the repository at this point in the history
adding custom extraction for metrics in apig

Reviewed-by: Anton Sidelnikov
  • Loading branch information
vladimirhasko authored Dec 13, 2024
1 parent c554fa0 commit 4bb07ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion otcextensions/sdk/apig/v2/_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

from openstack import proxy

from otcextensions.common.utils import extract_url_parts


class Proxy(proxy.Proxy):

skip_discovery = True

def _extract_name(self, url, service_type=None, project_id=None):
return extract_url_parts(url, project_id)

0 comments on commit 4bb07ef

Please sign in to comment.