@@ -116,6 +116,8 @@ def classify(self, classifier_id, text, **kwargs):
116116 headers = {}
117117 if 'headers' in kwargs :
118118 headers .update (kwargs .get ('headers' ))
119+ headers [
120+ 'X-IBMCloud-SDK-Analytics' ] = 'service_name=natural_language_classifier;service_version=V1;operation_id=classify'
119121
120122 data = {'text' : text }
121123
@@ -153,6 +155,8 @@ def classify_collection(self, classifier_id, collection, **kwargs):
153155 headers = {}
154156 if 'headers' in kwargs :
155157 headers .update (kwargs .get ('headers' ))
158+ headers [
159+ 'X-IBMCloud-SDK-Analytics' ] = 'service_name=natural_language_classifier;service_version=V1;operation_id=classify_collection'
156160
157161 data = {'collection' : collection }
158162
@@ -207,6 +211,8 @@ def create_classifier(self,
207211 headers = {}
208212 if 'headers' in kwargs :
209213 headers .update (kwargs .get ('headers' ))
214+ headers [
215+ 'X-IBMCloud-SDK-Analytics' ] = 'service_name=natural_language_classifier;service_version=V1;operation_id=create_classifier'
210216
211217 form_data = {}
212218 if not metadata_filename and hasattr (metadata , 'name' ):
@@ -243,6 +249,8 @@ def delete_classifier(self, classifier_id, **kwargs):
243249 headers = {}
244250 if 'headers' in kwargs :
245251 headers .update (kwargs .get ('headers' ))
252+ headers [
253+ 'X-IBMCloud-SDK-Analytics' ] = 'service_name=natural_language_classifier;service_version=V1;operation_id=delete_classifier'
246254
247255 url = '/v1/classifiers/{0}' .format (
248256 * self ._encode_path_vars (classifier_id ))
@@ -268,6 +276,8 @@ def get_classifier(self, classifier_id, **kwargs):
268276 headers = {}
269277 if 'headers' in kwargs :
270278 headers .update (kwargs .get ('headers' ))
279+ headers [
280+ 'X-IBMCloud-SDK-Analytics' ] = 'service_name=natural_language_classifier;service_version=V1;operation_id=get_classifier'
271281
272282 url = '/v1/classifiers/{0}' .format (
273283 * self ._encode_path_vars (classifier_id ))
@@ -289,6 +299,8 @@ def list_classifiers(self, **kwargs):
289299 headers = {}
290300 if 'headers' in kwargs :
291301 headers .update (kwargs .get ('headers' ))
302+ headers [
303+ 'X-IBMCloud-SDK-Analytics' ] = 'service_name=natural_language_classifier;service_version=V1;operation_id=list_classifiers'
292304
293305 url = '/v1/classifiers'
294306 response = self .request (
0 commit comments