Skip to content

Commit

Permalink
Merge pull request #5 from logicmonitor/DEV-79457-Need-to-Apply-Licen…
Browse files Browse the repository at this point in the history
…se-information-to-Push-metric-SDK

Dev 79457 need to apply license information to push metric sdk
  • Loading branch information
siddharthck authored Jul 23, 2021
2 parents 70d980e + 433ccb7 commit 0a9639d
Show file tree
Hide file tree
Showing 40 changed files with 650 additions and 1 deletion.
373 changes: 373 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,13 @@ Then run the program as:

Get in Touch
------------
If you have questions in general, reach out to our [support](mailto:support@logicmonitor.com)
If you have questions in general, reach out to our [support](mailto:support@logicmonitor.com)


------------
Copyright, 2021, LogicMonitor, Inc.

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.



7 changes: 7 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
Expand Down
7 changes: 7 additions & 0 deletions example/cpu_metrics.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

import logging
import os
import sys
Expand Down
7 changes: 7 additions & 0 deletions example/disk_metrics.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

import logging
import os
import time
Expand Down
7 changes: 7 additions & 0 deletions example/log_non_batch.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# Sample Program to send Logs to LogicMonitor Platform
#
import os
Expand Down
7 changes: 7 additions & 0 deletions example/simple_example.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

import time
from random import seed, random

Expand Down
7 changes: 7 additions & 0 deletions example/test_property.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

import logging
import sys

Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8

# flake8: noqa
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

from __future__ import absolute_import

# import apis into api package
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/api/logs.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8
"""
Logs API client: It formats and submit REST API calls to LogicMonitor.
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/api/metrics.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8
"""
Metrics API client: It formats and submit REST API calls to LogicMonitor.
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/api/response_interface.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8


Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/api_client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8

from __future__ import absolute_import
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/configuration.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8

from __future__ import absolute_import
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/internal/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

8 changes: 8 additions & 0 deletions logicmonitor_data_sdk/internal/internal_cache.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@

"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8
"""
LogicMonitor API-Ingest Rest API
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8

# flake8: noqa
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/models/datapoint.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8

import pprint
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/models/datasource.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8


Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/models/datasource_instance.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8


Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/models/list_rest_data_point_v1.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8

"""
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8

"""
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/models/map_string_string.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8

"""
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/models/push_metric_api_response.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8

"""
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/models/resource.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8

import pprint
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/models/rest_data_point_v1.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8

"""
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/models/rest_data_source_instance_v1.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8

"""
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/models/rest_instance_properties_v1.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8

"""
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/models/rest_metrics_v1.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8
"""
LogicMonitor API-Ingest Rest API
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/models/rest_resource_properties_v1.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8

"""
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/rest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8
"""
LogicMonitor API-Ingest Rest API
Expand Down
7 changes: 7 additions & 0 deletions logicmonitor_data_sdk/version.py
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

__version__ = "0.0.1.beta1"
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

# coding: utf-8

from setuptools import setup, find_packages # noqa: H301
Expand Down
7 changes: 7 additions & 0 deletions test/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

7 changes: 7 additions & 0 deletions test/test_example.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

from __future__ import print_function

import sys
Expand Down
7 changes: 7 additions & 0 deletions test/test_one_requests.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
"""
=======
Copyright, 2021, LogicMonitor, Inc.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
=======
"""

import logging
import random
import sys
Expand Down
Loading

0 comments on commit 0a9639d

Please sign in to comment.