Source code for linode_api4.objects.longview
from linode_api4.objects import Base, Property
[docs]
class LongviewClient(Base):
"""
A Longview Client that is accessible for use. Longview is Linode’s system data graphing service.
API Documentation: https://techdocs.akamai.com/linode-api/reference/get-longview-client
"""
api_endpoint = "/longview/clients/{id}"
properties = {
"id": Property(identifier=True),
"created": Property(is_datetime=True),
"updated": Property(is_datetime=True),
"label": Property(mutable=True),
"install_code": Property(),
"apps": Property(),
"api_key": Property(),
}
[docs]
class LongviewSubscription(Base):
"""
Contains the Longview Plan details for a specific subscription id.
API Documentation: https://techdocs.akamai.com/linode-api/reference/get-longview-subscription
"""
api_endpoint = "/longview/subscriptions/{id}"
properties = {
"id": Property(identifier=True),
"label": Property(),
"clients_included": Property(),
"price": Property(),
}
[docs]
class LongviewPlan(Base):
"""
The current Longview Plan an account is using.
API Documentation: https://techdocs.akamai.com/linode-api/reference/get-longview-plan
"""
api_endpoint = "/longview/plan"
properties = {
"id": Property(identifier=True),
"label": Property(),
"clients_included": Property(),
"price": Property(),
}