Skip to content

Commit

Permalink
[PINT-2485] PR build issues (#4)
Browse files Browse the repository at this point in the history
* lint fixes

* add sales email
  • Loading branch information
MayankR authored Oct 3, 2023
1 parent 57cb90c commit fa9c655
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 16 deletions.
1 change: 0 additions & 1 deletion robust_intelligence_ai_firewall/datadog_checks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

__path__ = __import__('pkgutil').extend_path(__path__, __name__) # type: ignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

__version__ = '1.0.0'
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

from .__about__ import __version__
from .firewall_check import RobustIntelligenceAiFirewallCheck

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


# Here you can include additional config validators or transformers
#
# def initialize_instance(values, **kwargs):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

from typing import Any # noqa: F401

from datadog_checks.base import OpenMetricsBaseCheckV2 # noqa: F401
Expand All @@ -18,9 +17,6 @@ def __init__(self, name, init_config, instances):
self.openmetrics_endpoint = self.instance.get('openmetrics_endpoint')

def get_default_config(self):
default_config = {
'openmetrics_endpoint': self.openmetrics_endpoint,
'metrics': METRIC_MAP
}
default_config = {'openmetrics_endpoint': self.openmetrics_endpoint, 'metrics': METRIC_MAP}

return default_config
2 changes: 1 addition & 1 deletion robust_intelligence_ai_firewall/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"support_email": "[email protected]",
"name": "Mayank Rajoria",
"homepage": "https://www.robustintelligence.com/",
"sales_email": ""
"sales_email": "[email protected]"
},
"oauth": {}
}
1 change: 0 additions & 1 deletion robust_intelligence_ai_firewall/setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

from codecs import open # To use a consistent encoding
from os import path

Expand Down
1 change: 0 additions & 1 deletion robust_intelligence_ai_firewall/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import pytest


Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


from typing import Any, Callable, Dict # noqa: F401

from datadog_checks.base import AgentCheck # noqa: F401
Expand All @@ -21,4 +19,6 @@ def test_emits_critical_service_check_when_service_is_down(dd_run_check, aggrega
# type: (Callable[[AgentCheck, bool], None], AggregatorStub, Dict[str, Any]) -> None
check = RobustIntelligenceAiFirewallCheck('robust_intelligence_ai_firewall', {}, [instance])
dd_run_check(check)
aggregator.assert_service_check('robust_intelligence_ai_firewall.can_connect', RobustIntelligenceAiFirewallCheck.CRITICAL)
aggregator.assert_service_check(
'robust_intelligence_ai_firewall.can_connect', RobustIntelligenceAiFirewallCheck.CRITICAL
)

0 comments on commit fa9c655

Please sign in to comment.