-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: trafalgarzzz <[email protected]>
- Loading branch information
1 parent
07e8110
commit e089b77
Showing
23 changed files
with
759 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# ClientMetrics | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**enabled** | **bool** | Enabled decides whether to expose client metrics. | [optional] | ||
**scrape_target** | **str** | ScrapeTarget decides which fuse component will be scraped by Prometheus. It is a list separated by comma where supported items are [MountPod, Sidecar, All (indicates MountPod and Sidecar), None]. Defaults to None when it is not explicitly set. | [optional] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# ObjectRef | ||
|
||
## Properties | ||
Name | Type | Description | Notes | ||
------------ | ------------- | ------------- | ------------- | ||
**api_version** | **str** | API version of the referent operation | [optional] | ||
**kind** | **str** | Kind specifies the type of the referent operation | [default to ''] | ||
**name** | **str** | Name specifies the name of the referent operation | [default to ''] | ||
**namespace** | **str** | Namespace specifies the namespace of the referent operation. | [optional] | ||
|
||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
# coding: utf-8 | ||
|
||
""" | ||
fluid | ||
client for fluid # noqa: E501 | ||
The version of the OpenAPI document: v0.1 | ||
Generated by: https://openapi-generator.tech | ||
""" | ||
|
||
|
||
import pprint | ||
import re # noqa: F401 | ||
|
||
import six | ||
|
||
from fluid.configuration import Configuration | ||
|
||
|
||
class ClientMetrics(object): | ||
"""NOTE: This class is auto generated by OpenAPI Generator. | ||
Ref: https://openapi-generator.tech | ||
Do not edit the class manually. | ||
""" | ||
|
||
""" | ||
Attributes: | ||
openapi_types (dict): The key is attribute name | ||
and the value is attribute type. | ||
attribute_map (dict): The key is attribute name | ||
and the value is json key in definition. | ||
""" | ||
openapi_types = { | ||
'enabled': 'bool', | ||
'scrape_target': 'str' | ||
} | ||
|
||
attribute_map = { | ||
'enabled': 'enabled', | ||
'scrape_target': 'scrapeTarget' | ||
} | ||
|
||
def __init__(self, enabled=None, scrape_target=None, local_vars_configuration=None): # noqa: E501 | ||
"""ClientMetrics - a model defined in OpenAPI""" # noqa: E501 | ||
if local_vars_configuration is None: | ||
local_vars_configuration = Configuration() | ||
self.local_vars_configuration = local_vars_configuration | ||
|
||
self._enabled = None | ||
self._scrape_target = None | ||
self.discriminator = None | ||
|
||
if enabled is not None: | ||
self.enabled = enabled | ||
if scrape_target is not None: | ||
self.scrape_target = scrape_target | ||
|
||
@property | ||
def enabled(self): | ||
"""Gets the enabled of this ClientMetrics. # noqa: E501 | ||
Enabled decides whether to expose client metrics. # noqa: E501 | ||
:return: The enabled of this ClientMetrics. # noqa: E501 | ||
:rtype: bool | ||
""" | ||
return self._enabled | ||
|
||
@enabled.setter | ||
def enabled(self, enabled): | ||
"""Sets the enabled of this ClientMetrics. | ||
Enabled decides whether to expose client metrics. # noqa: E501 | ||
:param enabled: The enabled of this ClientMetrics. # noqa: E501 | ||
:type: bool | ||
""" | ||
|
||
self._enabled = enabled | ||
|
||
@property | ||
def scrape_target(self): | ||
"""Gets the scrape_target of this ClientMetrics. # noqa: E501 | ||
ScrapeTarget decides which fuse component will be scraped by Prometheus. It is a list separated by comma where supported items are [MountPod, Sidecar, All (indicates MountPod and Sidecar), None]. Defaults to None when it is not explicitly set. # noqa: E501 | ||
:return: The scrape_target of this ClientMetrics. # noqa: E501 | ||
:rtype: str | ||
""" | ||
return self._scrape_target | ||
|
||
@scrape_target.setter | ||
def scrape_target(self, scrape_target): | ||
"""Sets the scrape_target of this ClientMetrics. | ||
ScrapeTarget decides which fuse component will be scraped by Prometheus. It is a list separated by comma where supported items are [MountPod, Sidecar, All (indicates MountPod and Sidecar), None]. Defaults to None when it is not explicitly set. # noqa: E501 | ||
:param scrape_target: The scrape_target of this ClientMetrics. # noqa: E501 | ||
:type: str | ||
""" | ||
|
||
self._scrape_target = scrape_target | ||
|
||
def to_dict(self): | ||
"""Returns the model properties as a dict""" | ||
result = {} | ||
|
||
for attr, _ in six.iteritems(self.openapi_types): | ||
value = getattr(self, attr) | ||
if isinstance(value, list): | ||
result[attr] = list(map( | ||
lambda x: x.to_dict() if hasattr(x, "to_dict") else x, | ||
value | ||
)) | ||
elif hasattr(value, "to_dict"): | ||
result[attr] = value.to_dict() | ||
elif isinstance(value, dict): | ||
result[attr] = dict(map( | ||
lambda item: (item[0], item[1].to_dict()) | ||
if hasattr(item[1], "to_dict") else item, | ||
value.items() | ||
)) | ||
else: | ||
result[attr] = value | ||
|
||
return result | ||
|
||
def to_str(self): | ||
"""Returns the string representation of the model""" | ||
return pprint.pformat(self.to_dict()) | ||
|
||
def __repr__(self): | ||
"""For `print` and `pprint`""" | ||
return self.to_str() | ||
|
||
def __eq__(self, other): | ||
"""Returns true if both objects are equal""" | ||
if not isinstance(other, ClientMetrics): | ||
return False | ||
|
||
return self.to_dict() == other.to_dict() | ||
|
||
def __ne__(self, other): | ||
"""Returns true if both objects are not equal""" | ||
if not isinstance(other, ClientMetrics): | ||
return True | ||
|
||
return self.to_dict() != other.to_dict() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.