Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Avi-Robusta committed Feb 4, 2025
1 parent 906042e commit 0eb1118
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion holmes/plugins/toolsets/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def load_python_toolsets(dal: Optional[SupabaseDal]) -> List[Toolset]:
OpenSearchToolset(),
GrafanaLokiToolset(),
GrafanaTempoToolset(),
NewRelicToolset()
NewRelicToolset(),
]

return toolsets
Expand Down
13 changes: 9 additions & 4 deletions holmes/plugins/toolsets/newrelic.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import os
import requests
import json
import logging
from typing import Any, Optional
from holmes.core.tools import CallablePrerequisite, Tool, ToolParameter, Toolset, ToolsetTag
from holmes.core.tools import (
CallablePrerequisite,
Tool,
ToolParameter,
Toolset,
ToolsetTag,
)
from pydantic import BaseModel

class BaseNewRelicTool(Tool):
Expand All @@ -26,7 +31,7 @@ def __init__(self, toolset: "NewRelicToolset"):
required=True,
),
},
toolset = toolset
toolset=toolset,
)

def invoke(self, params: Any) -> str:
Expand Down Expand Up @@ -83,7 +88,7 @@ def __init__(self, toolset: "NewRelicToolset"):
required=False,
),
},
toolset=toolset
toolset=toolset,
)

def invoke(self, params: Any) -> str:
Expand Down

0 comments on commit 0eb1118

Please sign in to comment.